//Auto-generated by kalyptus. DO NOT EDIT.
#include <qmovie.h>
#include <qpixmap.h>
#include <qiconset.h>
#include <kicontheme.h>
#include <qstring.h>
#include <qstringlist.h>
#include <kiconloader.h>

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

class KIconLoaderJBridge : public KIconLoader
{
public:
	KIconLoaderJBridge(const QString& arg1,KStandardDirs* arg2) : KIconLoader(arg1,arg2) {};
	KIconLoaderJBridge(const QString& arg1) : KIconLoader(arg1) {};
	KIconLoaderJBridge() : KIconLoader() {};
	~KIconLoaderJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconLoader_addAppDir(JNIEnv* env, jobject obj, jstring appname)
{
static QString* _qstring_appname = 0;
	((KIconLoader*) QtSupport::getQt(env, obj))->addAppDir((const QString&)*(QString*) QtSupport::toQString(env, appname, &_qstring_appname));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconLoader_addExtraDesktopThemes(JNIEnv* env, jobject obj)
{
	((KIconLoader*) QtSupport::getQt(env, obj))->addExtraDesktopThemes();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KIconLoader_currentSize(JNIEnv* env, jobject obj, jint group)
{
	jint xret = (jint) ((KIconLoader*) QtSupport::getQt(env, obj))->currentSize((KIcon::Group) group);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconLoader_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KIconLoader_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconLoader_enableDelayedIconSetLoading(JNIEnv* env, jobject obj, jboolean enable)
{
	((KIconLoader*) QtSupport::getQt(env, obj))->enableDelayedIconSetLoading((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KIconLoader_extraDesktopThemesAdded(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KIconLoader*) QtSupport::getQt(env, obj))->extraDesktopThemesAdded();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_iconEffect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KIconLoader*) QtSupport::getQt(env, obj))->iconEffect(), "org.kde.koala.KIconEffect");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KIconLoader_iconPath__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jint group_or_size)
{
	QString  _qstring;
static QString* _qstring_name = 0;
	_qstring = ((KIconLoader*) QtSupport::getQt(env, obj))->iconPath((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (int) group_or_size);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KIconLoader_iconPath__Ljava_lang_String_2IZ(JNIEnv* env, jobject obj, jstring name, jint group_or_size, jboolean canReturnNull)
{
	QString  _qstring;
static QString* _qstring_name = 0;
	_qstring = ((KIconLoader*) QtSupport::getQt(env, obj))->iconPath((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (int) group_or_size, (bool) canReturnNull);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KIconLoader_isDelayedIconSetLoadingEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KIconLoader*) QtSupport::getQt(env, obj))->isDelayedIconSetLoadingEnabled();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadAnimated__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jint group)
{
	QStringList  _qlist;
static QString* _qstring_name = 0;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->loadAnimated((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadAnimated__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring name, jint group, jint size)
{
	QStringList  _qlist;
static QString* _qstring_name = 0;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->loadAnimated((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIconSet__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jint group)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KIconLoader*) QtSupport::getQt(env, obj))->loadIconSet((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group)), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIconSet__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring name, jint group, jint size)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KIconLoader*) QtSupport::getQt(env, obj))->loadIconSet((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size)), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIconSet__Ljava_lang_String_2IIZ(JNIEnv* env, jobject obj, jstring name, jint group, jint size, jboolean canReturnNull)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KIconLoader*) QtSupport::getQt(env, obj))->loadIconSet((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size, (bool) canReturnNull)), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIconSet__Ljava_lang_String_2IIZZ(JNIEnv* env, jobject obj, jstring name, jint group, jint size, jboolean canReturnNull, jboolean immediateExistenceCheck)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KIconLoader*) QtSupport::getQt(env, obj))->loadIconSet((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size, (bool) canReturnNull, (bool) immediateExistenceCheck)), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIcon__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jint group)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KIconLoader*) QtSupport::getQt(env, obj))->loadIcon((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIcon__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring name, jint group, jint size)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KIconLoader*) QtSupport::getQt(env, obj))->loadIcon((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIcon__Ljava_lang_String_2III(JNIEnv* env, jobject obj, jstring name, jint group, jint size, jint state)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KIconLoader*) QtSupport::getQt(env, obj))->loadIcon((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size, (int) state)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIcon__Ljava_lang_String_2IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring name, jint group, jint size, jint state, jobject path_store)
{
static QString* _qstring_name = 0;
static QString* _qstring_path_store = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KIconLoader*) QtSupport::getQt(env, obj))->loadIcon((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size, (int) state, (QString*) QtSupport::toQStringFromStringBuffer(env, path_store, &_qstring_path_store))), "org.kde.qt.QPixmap", TRUE);
	QtSupport::fromQStringToStringBuffer(env, _qstring_path_store, path_store);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadIcon__Ljava_lang_String_2IIILjava_lang_StringBuffer_2Z(JNIEnv* env, jobject obj, jstring name, jint group, jint size, jint state, jobject path_store, jboolean canReturnNull)
{
static QString* _qstring_name = 0;
static QString* _qstring_path_store = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KIconLoader*) QtSupport::getQt(env, obj))->loadIcon((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size, (int) state, (QString*) QtSupport::toQStringFromStringBuffer(env, path_store, &_qstring_path_store), (bool) canReturnNull)), "org.kde.qt.QPixmap", TRUE);
	QtSupport::fromQStringToStringBuffer(env, _qstring_path_store, path_store);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadMovie__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jint group)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QMovie(((KIconLoader*) QtSupport::getQt(env, obj))->loadMovie((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group)), "org.kde.qt.QMovie", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadMovie__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring name, jint group, jint size)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QMovie(((KIconLoader*) QtSupport::getQt(env, obj))->loadMovie((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size)), "org.kde.qt.QMovie", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KIconLoader_moviePath__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jint group)
{
	QString  _qstring;
static QString* _qstring_name = 0;
	_qstring = ((KIconLoader*) QtSupport::getQt(env, obj))->moviePath((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KIconLoader_moviePath__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring name, jint group, jint size)
{
	QString  _qstring;
static QString* _qstring_name = 0;
	_qstring = ((KIconLoader*) QtSupport::getQt(env, obj))->moviePath((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size);
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconLoader_newKIconLoader__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appname)
{
static QString* _qstring_appname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KIconLoaderJBridge((const QString&)*(QString*) QtSupport::toQString(env, appname, &_qstring_appname)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconLoader_newKIconLoader__Ljava_lang_String_2Lorg_kde_koala_KStandardDirs_2(JNIEnv* env, jobject obj, jstring appname, jobject dirs)
{
static QString* _qstring_appname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KIconLoaderJBridge((const QString&)*(QString*) QtSupport::toQString(env, appname, &_qstring_appname), (KStandardDirs*) QtSupport::getQt(env, dirs)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_queryIconsByContext__I(JNIEnv* env, jobject obj, jint group_or_size)
{
	QStringList  _qlist;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->queryIconsByContext((int) group_or_size);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_queryIconsByContext__II(JNIEnv* env, jobject obj, jint group_or_size, jint context)
{
	QStringList  _qlist;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->queryIconsByContext((int) group_or_size, (KIcon::Context) context);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_queryIconsByDir(JNIEnv* env, jobject obj, jstring iconsDir)
{
	QStringList  _qlist;
static QString* _qstring_iconsDir = 0;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->queryIconsByDir((const QString&)*(QString*) QtSupport::toQString(env, iconsDir, &_qstring_iconsDir));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_queryIcons__I(JNIEnv* env, jobject obj, jint group_or_size)
{
	QStringList  _qlist;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->queryIcons((int) group_or_size);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_queryIcons__II(JNIEnv* env, jobject obj, jint group_or_size, jint context)
{
	QStringList  _qlist;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->queryIcons((int) group_or_size, (KIcon::Context) context);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconLoader_reconfigure(JNIEnv* env, jobject obj, jstring _appname, jobject _dirs)
{
static QString* _qstring__appname = 0;
	((KIconLoader*) QtSupport::getQt(env, obj))->reconfigure((const QString&)*(QString*) QtSupport::toQString(env, _appname, &_qstring__appname), (KStandardDirs*) QtSupport::getQt(env, _dirs));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_unknown(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(KIconLoaderJBridge::unknown()), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

