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

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

class CSSValueListJBridge : public DOM::CSSValueList
{
public:
	CSSValueListJBridge() : DOM::CSSValueList() {};
	CSSValueListJBridge(const DOM::CSSValueList& arg1) : DOM::CSSValueList(arg1) {};
	CSSValueListJBridge(const DOM::CSSValue& arg1) : DOM::CSSValueList(arg1) {};
};

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

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

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

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

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

