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

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

class TQXmlAttributesJBridge : public TQXmlAttributes
{
public:
	TQXmlAttributesJBridge() : TQXmlAttributes() {};
	~TQXmlAttributesJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_append(JNIEnv* env, jobject obj, jstring qName, jstring uri, jstring localPart, jstring value)
{
static TQString* _qstring_qName = 0;
static TQString* _qstring_uri = 0;
static TQString* _qstring_localPart = 0;
static TQString* _qstring_value = 0;
	((TQXmlAttributes*) QtSupport::getQt(env, obj))->append((const TQString&)*(TQString*) QtSupport::toTQString(env, qName, &_qstring_qName), (const TQString&)*(TQString*) QtSupport::toTQString(env, uri, &_qstring_uri), (const TQString&)*(TQString*) QtSupport::toTQString(env, localPart, &_qstring_localPart), (const TQString&)*(TQString*) QtSupport::toTQString(env, value, &_qstring_value));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_clear(JNIEnv* env, jobject obj)
{
	((TQXmlAttributes*) QtSupport::getQt(env, obj))->clear();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QXmlAttributes_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_index__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring qName)
{
static TQString* _qstring_qName = 0;
	jint xret = (jint) ((TQXmlAttributes*) QtSupport::getQt(env, obj))->index((const TQString&)*(TQString*) QtSupport::toTQString(env, qName, &_qstring_qName));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_index__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring uri, jstring localPart)
{
static TQString* _qstring_uri = 0;
static TQString* _qstring_localPart = 0;
	jint xret = (jint) ((TQXmlAttributes*) QtSupport::getQt(env, obj))->index((const TQString&)*(TQString*) QtSupport::toTQString(env, uri, &_qstring_uri), (const TQString&)*(TQString*) QtSupport::toTQString(env, localPart, &_qstring_localPart));
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_localName(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->localName((int) index);
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_qName(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->qName((int) index);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_type__I(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->type((int) index);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_type__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring qName)
{
	TQString  _qstring;
static TQString* _qstring_qName = 0;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->type((const TQString&)*(TQString*) QtSupport::toTQString(env, qName, &_qstring_qName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_type__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring uri, jstring localName)
{
	TQString  _qstring;
static TQString* _qstring_uri = 0;
static TQString* _qstring_localName = 0;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->type((const TQString&)*(TQString*) QtSupport::toTQString(env, uri, &_qstring_uri), (const TQString&)*(TQString*) QtSupport::toTQString(env, localName, &_qstring_localName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_uri(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->uri((int) index);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_value__I(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->value((int) index);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_value__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring qName)
{
	TQString  _qstring;
static TQString* _qstring_qName = 0;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->value((const TQString&)*(TQString*) QtSupport::toTQString(env, qName, &_qstring_qName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlAttributes_value__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring uri, jstring localName)
{
	TQString  _qstring;
static TQString* _qstring_uri = 0;
static TQString* _qstring_localName = 0;
	_qstring = ((TQXmlAttributes*) QtSupport::getQt(env, obj))->value((const TQString&)*(TQString*) QtSupport::toTQString(env, uri, &_qstring_uri), (const TQString&)*(TQString*) QtSupport::toTQString(env, localName, &_qstring_localName));
	return QtSupport::fromTQString(env, &_qstring);
}

