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

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

class KFileMetaInfoGroupJBridge : public KFileMetaInfoGroup
{
public:
	KFileMetaInfoGroupJBridge(const KFileMetaInfoGroup& arg1) : KFileMetaInfoGroup(arg1) {};
	KFileMetaInfoGroupJBridge() : KFileMetaInfoGroup() {};
	void protected_setAdded() {
		KFileMetaInfoGroup::setAdded();
		return;
	}
	KFileMetaInfoItem protected_appendItem(const TQString& arg1,const TQVariant& arg2) {
		return (KFileMetaInfoItem) KFileMetaInfoGroup::appendItem(arg1,arg2);
	}
	void protected_ref() {
		KFileMetaInfoGroup::ref();
		return;
	}
	void protected_deref() {
		KFileMetaInfoGroup::deref();
		return;
	}
	~KFileMetaInfoGroupJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_addItem(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->addItem((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key))), "org.trinitydesktop.koala.KFileMetaInfoItem", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_appendItem(JNIEnv* env, jobject obj, jstring key, jobject value)
{
static TQString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfoGroupJBridge*) QtSupport::getQt(env, obj))->protected_appendItem((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key), (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, value))), "org.trinitydesktop.koala.KFileMetaInfoItem", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_attributes(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->attributes();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_contains(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jboolean xret = (jboolean) ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->contains((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_deref(JNIEnv* env, jobject obj)
{
	((KFileMetaInfoGroupJBridge*) QtSupport::getQt(env, obj))->protected_deref();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFileMetaInfoGroup_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_isModified(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->isModified();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_item__I(JNIEnv* env, jobject obj, jint hint)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->item((uint) hint)), "org.trinitydesktop.koala.KFileMetaInfoItem", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_item__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->item((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key))), "org.trinitydesktop.koala.KFileMetaInfoItem", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_keys(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->keys();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_name(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_newKFileMetaInfoGroup__Lorg_trinitydesktop_koala_KFileMetaInfoGroup_2(JNIEnv* env, jobject obj, jobject original)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoGroupJBridge((const KFileMetaInfoGroup&)*(const KFileMetaInfoGroup*) QtSupport::getQt(env, original)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_op_1at(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->operator[]((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key))), "org.trinitydesktop.koala.KFileMetaInfoItem", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_preferredKeys(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->preferredKeys();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_ref(JNIEnv* env, jobject obj)
{
	((KFileMetaInfoGroupJBridge*) QtSupport::getQt(env, obj))->protected_ref();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_removeItem(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jboolean xret = (jboolean) ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->removeItem((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_removedItems(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->removedItems();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_setAdded(JNIEnv* env, jobject obj)
{
	((KFileMetaInfoGroupJBridge*) QtSupport::getQt(env, obj))->protected_setAdded();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_supportedKeys(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->supportedKeys();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_supportsVariableKeys(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->supportsVariableKeys();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_translatedName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->translatedName();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfoGroup_value(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->value((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key))), "org.trinitydesktop.qt.TQVariant", true);
	return xret;
}

