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

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

class CSSImportRuleJBridge : public DOM::CSSImportRule
{
public:
	CSSImportRuleJBridge() : DOM::CSSImportRule() {};
	CSSImportRuleJBridge(const DOM::CSSImportRule& arg1) : DOM::CSSImportRule(arg1) {};
	CSSImportRuleJBridge(const DOM::CSSRule& arg1) : DOM::CSSImportRule(arg1) {};
};

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

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

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

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

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

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

