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

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

class KFileMetaInfoJBridge : public KFileMetaInfo
{
public:
	KFileMetaInfoJBridge(const TQString& arg1,const TQString& arg2,uint arg3) : KFileMetaInfo(arg1,arg2,arg3) {};
	KFileMetaInfoJBridge(const TQString& arg1,const TQString& arg2) : KFileMetaInfo(arg1,arg2) {};
	KFileMetaInfoJBridge(const TQString& arg1) : KFileMetaInfo(arg1) {};
	KFileMetaInfoJBridge(const KURL& arg1,const TQString& arg2,uint arg3) : KFileMetaInfo(arg1,arg2,arg3) {};
	KFileMetaInfoJBridge(const KURL& arg1,const TQString& arg2) : KFileMetaInfo(arg1,arg2) {};
	KFileMetaInfoJBridge(const KURL& arg1) : KFileMetaInfo(arg1) {};
	KFileMetaInfoJBridge() : KFileMetaInfo() {};
	KFileMetaInfoJBridge(const KFileMetaInfo& arg1) : KFileMetaInfo(arg1) {};
	KFileMetaInfoGroup protected_appendGroup(const TQString& arg1) {
		return (KFileMetaInfoGroup) KFileMetaInfo::appendGroup(arg1);
	}
	void protected_ref() {
		KFileMetaInfo::ref();
		return;
	}
	void protected_deref() {
		KFileMetaInfo::deref();
		return;
	}
	~KFileMetaInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_appendGroup(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoGroup(((KFileMetaInfoJBridge*) QtSupport::getQt(env, obj))->protected_appendGroup((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.trinitydesktop.koala.KFileMetaInfoGroup", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_applyChanges(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileMetaInfo*) QtSupport::getQt(env, obj))->applyChanges();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFileMetaInfo_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_newKFileMetaInfo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_newKFileMetaInfo__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path, jstring mimeType)
{
static TQString* _qstring_path = 0;
static TQString* _qstring_mimeType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_newKFileMetaInfo__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring path, jstring mimeType, jint what)
{
static TQString* _qstring_path = 0;
static TQString* _qstring_mimeType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType), (uint) what));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_newKFileMetaInfo__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jobject obj, jobject url)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_newKFileMetaInfo__Lorg_trinitydesktop_koala_KURL_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject url, jstring mimeType)
{
static TQString* _qstring_mimeType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_newKFileMetaInfo__Lorg_trinitydesktop_koala_KURL_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject url, jstring mimeType, jint what)
{
static TQString* _qstring_mimeType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType), (uint) what));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_saveItem__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring key, jstring preferredGroup, jboolean createGroup)
{
static TQString* _qstring_key = 0;
static TQString* _qstring_preferredGroup = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfo*) QtSupport::getQt(env, obj))->saveItem((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferredGroup, &_qstring_preferredGroup), (bool) createGroup)), "org.trinitydesktop.koala.KFileMetaInfoItem", true);
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFileMetaInfo_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KFileMetaInfo*) QtSupport::getQt(env, obj))->url()), "org.trinitydesktop.koala.KURL", true);
	return xret;
}

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

