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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/StyleSheet.h>

class StyleSheetJBridge : public DOM::StyleSheet
{
public:
	StyleSheetJBridge() : DOM::StyleSheet() {};
	StyleSheetJBridge(const DOM::StyleSheet& arg1) : DOM::StyleSheet(arg1) {};
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_StyleSheet_disabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::StyleSheet*) QtSupport::getQt(env, obj))->disabled();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_StyleSheet_href(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::StyleSheet*) QtSupport::getQt(env, obj))->href();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_StyleSheet_isCSSStyleSheet(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::StyleSheet*) QtSupport::getQt(env, obj))->isCSSStyleSheet();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_StyleSheet_media(JNIEnv* env, jobject obj)
{
	DOM::MediaList  _qlist;
	_qlist = ((DOM::StyleSheet*) QtSupport::getQt(env, obj))->media();
	return (jobject) KDESupport::arrayWithMediaList(env, (DOM::MediaList *) &_qlist);
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_StyleSheet_ownerNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::StyleSheet*) QtSupport::getQt(env, obj))->ownerNode()), "org.trinitydesktop.koala.Node", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_StyleSheet_parentStyleSheet(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::StyleSheet(((DOM::StyleSheet*) QtSupport::getQt(env, obj))->parentStyleSheet()), "org.trinitydesktop.koala.StyleSheet", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_StyleSheet_setDisabled(JNIEnv* env, jobject obj, jboolean arg1)
{
	((DOM::StyleSheet*) QtSupport::getQt(env, obj))->setDisabled((bool) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_StyleSheet_title(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::StyleSheet*) QtSupport::getQt(env, obj))->title();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_StyleSheet_type(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::StyleSheet*) QtSupport::getQt(env, obj))->type();
	return KDESupport::fromDOMString(env, &_qstring);
}

