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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/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 QString& arg1,const QVariant& 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_kde_koala_KFileMetaInfoGroup_addItem(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KFileMetaInfoItem(((KFileMetaInfoGroup*) QtSupport::getQt(env, obj))->addItem((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key))), "org.kde.koala.KFileMetaInfoItem", TRUE);
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileMetaInfoGroup_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFileMetaInfoGroup_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KFileMetaInfoGroup_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_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.kde.koala.KFileMetaInfoItem", TRUE);
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

