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

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

class DOMImplementationJBridge : public DOM::DOMImplementation
{
public:
	DOMImplementationJBridge() : DOM::DOMImplementation() {};
	DOMImplementationJBridge(const DOM::DOMImplementation& arg1) : DOM::DOMImplementation(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DOMImplementation_createCSSStyleSheet(JNIEnv* env, jobject obj, jstring title, jstring media)
{
static DOM::DOMString* _domstring_title = 0;
static DOM::DOMString* _domstring_media = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSStyleSheet(((DOM::DOMImplementation*) QtSupport::getQt(env, obj))->createCSSStyleSheet((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, title, &_domstring_title), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, media, &_domstring_media))), "org.trinitydesktop.koala.CSSStyleSheet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DOMImplementation_createDocumentType(JNIEnv* env, jobject obj, jstring qualifiedName, jstring publicId, jstring systemId)
{
static DOM::DOMString* _domstring_qualifiedName = 0;
static DOM::DOMString* _domstring_publicId = 0;
static DOM::DOMString* _domstring_systemId = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::DocumentType(((DOM::DOMImplementation*) QtSupport::getQt(env, obj))->createDocumentType((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, qualifiedName, &_domstring_qualifiedName), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, publicId, &_domstring_publicId), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, systemId, &_domstring_systemId))), "org.trinitydesktop.koala.DocumentType", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DOMImplementation_createDocument(JNIEnv* env, jobject obj, jstring namespaceURI, jstring qualifiedName, jobject doctype)
{
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_qualifiedName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Document(((DOM::DOMImplementation*) QtSupport::getQt(env, obj))->createDocument((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, qualifiedName, &_domstring_qualifiedName), (const DOM::DocumentType&)*(const DOM::DocumentType*) QtSupport::getQt(env, doctype))), "org.trinitydesktop.koala.Document", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DOMImplementation_createHTMLDocument(JNIEnv* env, jobject obj, jstring title)
{
static DOM::DOMString* _domstring_title = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLDocument(((DOM::DOMImplementation*) QtSupport::getQt(env, obj))->createHTMLDocument((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, title, &_domstring_title))), "org.trinitydesktop.koala.HTMLDocument", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DOMImplementation_getInterface(JNIEnv* env, jobject obj, jstring feature)
{
static DOM::DOMString* _domstring_feature = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::DOMImplementation(((DOM::DOMImplementation*) QtSupport::getQt(env, obj))->getInterface((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, feature, &_domstring_feature))), "org.trinitydesktop.koala.DOMImplementation", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_DOMImplementation_hasFeature(JNIEnv* env, jobject obj, jstring feature, jstring version)
{
static DOM::DOMString* _domstring_feature = 0;
static DOM::DOMString* _domstring_version = 0;
	jboolean xret = (jboolean) ((DOM::DOMImplementation*) QtSupport::getQt(env, obj))->hasFeature((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, feature, &_domstring_feature), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, version, &_domstring_version));
	return xret;
}

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

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

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

