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

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

class CSSCharsetRuleJBridge : public DOM::CSSCharsetRule
{
public:
	CSSCharsetRuleJBridge() : DOM::CSSCharsetRule() {};
	CSSCharsetRuleJBridge(const DOM::CSSCharsetRule& arg1) : DOM::CSSCharsetRule(arg1) {};
	CSSCharsetRuleJBridge(const DOM::CSSRule& arg1) : DOM::CSSCharsetRule(arg1) {};
};

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_CSSCharsetRule_newCSSCharsetRule__Lorg_kde_koala_CSSRule_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new CSSCharsetRuleJBridge((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_CSSCharsetRule_setEncoding(JNIEnv* env, jobject obj, jstring arg1)
{
static DOM::DOMString* _domstring_arg1 = 0;
	((DOM::CSSCharsetRule*) QtSupport::getQt(env, obj))->setEncoding((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

