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

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

class CSSStyleRuleJBridge : public DOM::CSSStyleRule
{
public:
	CSSStyleRuleJBridge() : DOM::CSSStyleRule() {};
	CSSStyleRuleJBridge(const DOM::CSSStyleRule& arg1) : DOM::CSSStyleRule(arg1) {};
	CSSStyleRuleJBridge(const DOM::CSSRule& arg1) : DOM::CSSStyleRule(arg1) {};
};

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_CSSStyleRule_setSelectorText(JNIEnv* env, jobject obj, jstring arg1)
{
static DOM::DOMString* _domstring_arg1 = 0;
	((DOM::CSSStyleRule*) QtSupport::getQt(env, obj))->setSelectorText((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_CSSStyleRule_style(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSStyleDeclaration(((DOM::CSSStyleRule*) QtSupport::getQt(env, obj))->style()), "org.kde.koala.CSSStyleDeclaration", TRUE);
	return xret;
}

