//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/css_rule.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/CSSRuleList.h>

class CSSRuleListJBridge : public DOM::CSSRuleList
{
public:
	CSSRuleListJBridge() : DOM::CSSRuleList() {};
	CSSRuleListJBridge(const DOM::CSSRuleList& arg1) : DOM::CSSRuleList(arg1) {};
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_CSSRuleList_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::CSSRuleList*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_CSSRuleList_item(JNIEnv* env, jobject obj, jlong index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSRule(((DOM::CSSRuleList*) QtSupport::getQt(env, obj))->item((unsigned long) index)), "org.kde.koala.CSSRule", TRUE);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_CSSRuleList_length(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::CSSRuleList*) QtSupport::getQt(env, obj))->length();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_CSSRuleList_newCSSRuleList__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new CSSRuleListJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_CSSRuleList_newCSSRuleList__Lorg_kde_koala_CSSRuleList_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new CSSRuleListJBridge((const DOM::CSSRuleList&)*(const DOM::CSSRuleList*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

