//Auto-generated by kalyptus. DO NOT EDIT.
#include <kfilemetainfo.h>
#include <qstring.h>
#include <qvariant.h>
#include <qstringlist.h>
#include <kurl.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KFileMetaInfo.h>

class KFileMetaInfoJBridge : public KFileMetaInfo
{
public:
	KFileMetaInfoJBridge(const QString& arg1,const QString& arg2,uint arg3) : KFileMetaInfo(arg1,arg2,arg3) {};
	KFileMetaInfoJBridge(const QString& arg1,const QString& arg2) : KFileMetaInfo(arg1,arg2) {};
	KFileMetaInfoJBridge(const QString& arg1) : KFileMetaInfo(arg1) {};
	KFileMetaInfoJBridge(const KURL& arg1,const QString& arg2,uint arg3) : KFileMetaInfo(arg1,arg2,arg3) {};
	KFileMetaInfoJBridge(const KURL& arg1,const QString& arg2) : KFileMetaInfo(arg1,arg2) {};
	KFileMetaInfoJBridge(const KURL& arg1) : KFileMetaInfo(arg1) {};
	KFileMetaInfoJBridge() : KFileMetaInfo() {};
	KFileMetaInfoJBridge(const KFileMetaInfo& arg1) : KFileMetaInfo(arg1) {};
	KFileMetaInfoGroup protected_appendGroup(const QString& 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_kde_koala_KFileMetaInfo_addGroup(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((KFileMetaInfo*) QtSupport::getQt(env, obj))->addGroup((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileMetaInfo_appendGroup(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoGroup(((KFileMetaInfoJBridge*) QtSupport::getQt(env, obj))->protected_appendGroup((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name))), "org.kde.koala.KFileMetaInfoGroup", TRUE);
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileMetaInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFileMetaInfo_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KFileMetaInfo_group(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoGroup(((KFileMetaInfo*) QtSupport::getQt(env, obj))->group((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key))), "org.kde.koala.KFileMetaInfoGroup", TRUE);
	return xret;
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileMetaInfo_item(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfo*) QtSupport::getQt(env, obj))->item((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key))), "org.kde.koala.KFileMetaInfoItem", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KFileMetaInfo_newKFileMetaInfo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileMetaInfo_newKFileMetaInfo__Lorg_kde_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_kde_koala_KFileMetaInfo_newKFileMetaInfo__Lorg_kde_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_kde_koala_KFileMetaInfo_newKFileMetaInfo__Lorg_kde_koala_KURL_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject url, jstring mimeType)
{
static QString* _qstring_mimeType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileMetaInfoJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const QString&)*(QString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileMetaInfo_saveItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfo*) QtSupport::getQt(env, obj))->saveItem((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key))), "org.kde.koala.KFileMetaInfoItem", TRUE);
	return xret;
}

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileMetaInfo_value(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QVariant(((KFileMetaInfo*) QtSupport::getQt(env, obj))->value((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key))), "org.kde.qt.QVariant", TRUE);
	return xret;
}

