/***************************************************************************
                            KIconLoader.cpp -  description
                             -------------------
    begin                : Wed Feb 13 15:00:20 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb 13 15:00:20 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <kiconloader.h>
#include <qstring.h>
#include <qcstring.h>

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

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


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((QString&) * (QString *) QtSupport::toQString(env, appname, &_qstring_appname), (KStandardDirs*) QtSupport::getQt(env, dirs)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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(QString::null, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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 void JNICALL
Java_org_kde_koala_KIconLoader_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KIconLoader_finalize(env, obj);
	return;
}

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

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((QString&) * (QString *) QtSupport::toQString(env, appname, &_qstring_appname));
	return;
}

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

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;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(((KIconLoader*) QtSupport::getQt(env, obj))->loadIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, 0, KIcon::DefaultState, 0L, false)), "org.kde.qt.QPixmap", TRUE);
}

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;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet (((KIconLoader*) QtSupport::getQt(env, obj))->loadIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size)), "org.kde.qt.QIconSet", TRUE);
}

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;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet(((KIconLoader*) QtSupport::getQt(env, obj))->loadIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, 0)), "org.kde.qt.QIconSet", TRUE);
}

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((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) group_or_size, (bool) canReturnNull);
	return QtSupport::fromQString(env, &_qstring);
}

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

//JNIEXPORT  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;
//	return () ((KIconLoader*) QtSupport::getQt(env, obj))->loadMovie((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size);
//}

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

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((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KIcon::Group) group, (int) size);
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_loadAnimated(JNIEnv *env, jobject obj, jstring name, jint group, jint size)
{
	QStringList  _qlist;
static QString * _qstring_name = 0;
	_qlist = ((KIconLoader*) QtSupport::getQt(env, obj))->loadAnimated((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_queryIcons(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 jobject JNICALL
Java_org_kde_koala_KIconLoader_queryIconsByContext(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 jint JNICALL
Java_org_kde_koala_KIconLoader_currentSize(JNIEnv *env, jobject obj, jint group)
{
	return (jint) ((KIconLoader*) QtSupport::getQt(env, obj))->currentSize((KIcon::Group) group);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_theme(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KIconLoader*) QtSupport::getQt(env, obj))->theme(), "org.kde.koala.KIconTheme");
}

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

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((QString&) * (QString *) QtSupport::toQString(env, _appname, &_qstring__appname), (KStandardDirs*) QtSupport::getQt(env, _dirs));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KIconLoader_alphaBlending(JNIEnv *env, jobject obj, jint group)
{
	return (jboolean) ((KIconLoader*) QtSupport::getQt(env, obj))->alphaBlending((KIcon::Group) group);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_DesktopIcon__Ljava_lang_String_2IILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jint state, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (DesktopIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (int) state, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_DesktopIcon__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(DesktopIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KIcon::DefaultState, KGlobal::instance())), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_DesktopIcon__Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (DesktopIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_DesktopIconSet__Ljava_lang_String_2ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QIconSet (DesktopIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_DesktopIconSet__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet(DesktopIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KGlobal::instance())), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_BarIcon__Ljava_lang_String_2IILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jint state, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (BarIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (int) state, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_BarIcon__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(BarIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KIcon::DefaultState, KGlobal::instance())), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_BarIcon__Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (BarIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_BarIconSet__Ljava_lang_String_2ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QIconSet (BarIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_BarIconSet__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet(BarIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KGlobal::instance())), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_SmallIcon__Ljava_lang_String_2IILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jint state, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (SmallIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (int) state, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_SmallIcon__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(SmallIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KIcon::DefaultState, KGlobal::instance())), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_SmallIcon__Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (SmallIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_SmallIconSet__Ljava_lang_String_2ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QIconSet (SmallIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_SmallIconSet__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet(SmallIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KGlobal::instance())), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_MainBarIcon__Ljava_lang_String_2IILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jint state, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (MainBarIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (int) state, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_MainBarIcon__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(MainBarIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KIcon::DefaultState, KGlobal::instance())), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_MainBarIcon__Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (MainBarIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_MainBarIconSet__Ljava_lang_String_2ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint size, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QIconSet (MainBarIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) size, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_MainBarIconSet__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet(MainBarIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), 0, KGlobal::instance())), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_UserIcon__Ljava_lang_String_2ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jint state, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (UserIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (int) state, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_UserIcon__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(UserIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), KIcon::DefaultState, KGlobal::instance())), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_UserIcon__Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (UserIcon((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_UserIconSet__Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jstring name, jobject instance)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QIconSet (UserIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconLoader_UserIconSet__Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet(UserIconSet((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), KGlobal::instance())), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KIconLoader_IconSize__ILorg_kde_koala_KInstanceInterface_2(JNIEnv *env, jclass obj, jint group, jobject instance)
{
	return (jint) IconSize((KIcon::Group) group, (KInstance*) QtSupport::getQt(env, instance));
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KIconLoader_IconSize__I(JNIEnv *env, jclass obj, jint group)
{
	return (jint) IconSize((KIcon::Group) group, KGlobal::instance());
}

