//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqdom.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQDomNamedNodeMap.h>

class TQDomNamedNodeMapJBridge : public TQDomNamedNodeMap
{
public:
	TQDomNamedNodeMapJBridge() : TQDomNamedNodeMap() {};
	TQDomNamedNodeMapJBridge(const TQDomNamedNodeMap& arg1) : TQDomNamedNodeMap(arg1) {};
	~TQDomNamedNodeMapJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_contains(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->contains((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDomNamedNodeMap_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQDomNamedNodeMap*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_item(JNIEnv* env, jobject obj, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->item((int) index)), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_length(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->length();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_namedItemNS(JNIEnv* env, jobject obj, jstring nsURI, jstring localName)
{
static TQString* _qstring_nsURI = 0;
static TQString* _qstring_localName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->namedItemNS((const TQString&)*(TQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toTQString(env, localName, &_qstring_localName))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_namedItem(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->namedItem((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_newTQDomNamedNodeMap__Lorg_trinitydesktop_qt_QDomNamedNodeMap_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDomNamedNodeMapJBridge((const TQDomNamedNodeMap&)*(const TQDomNamedNodeMap*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->operator==((const TQDomNamedNodeMap&)*(const TQDomNamedNodeMap*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->operator!=((const TQDomNamedNodeMap&)*(const TQDomNamedNodeMap*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_removeNamedItemNS(JNIEnv* env, jobject obj, jstring nsURI, jstring localName)
{
static TQString* _qstring_nsURI = 0;
static TQString* _qstring_localName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->removeNamedItemNS((const TQString&)*(TQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toTQString(env, localName, &_qstring_localName))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_removeNamedItem(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->removeNamedItem((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_setNamedItemNS(JNIEnv* env, jobject obj, jobject newNode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->setNamedItemNS((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, newNode))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNamedNodeMap_setNamedItem(JNIEnv* env, jobject obj, jobject newNode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNamedNodeMap*) QtSupport::getQt(env, obj))->setNamedItem((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, newNode))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

