//Auto-generated by kalyptus. DO NOT EDIT.
#include <qiconset.h>
#include <kicontheme.h>
#include <qstring.h>
#include <kguiitem.h>

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

class KGuiItemJBridge : public KGuiItem
{
public:
	KGuiItemJBridge() : KGuiItem() {};
	KGuiItemJBridge(const QString& arg1,const QString& arg2,const QString& arg3,const QString& arg4) : KGuiItem(arg1,arg2,arg3,arg4) {};
	KGuiItemJBridge(const QString& arg1,const QString& arg2,const QString& arg3) : KGuiItem(arg1,arg2,arg3) {};
	KGuiItemJBridge(const QString& arg1,const QString& arg2) : KGuiItem(arg1,arg2) {};
	KGuiItemJBridge(const QString& arg1) : KGuiItem(arg1) {};
	KGuiItemJBridge(const QString& arg1,const QIconSet& arg2,const QString& arg3,const QString& arg4) : KGuiItem(arg1,arg2,arg3,arg4) {};
	KGuiItemJBridge(const QString& arg1,const QIconSet& arg2,const QString& arg3) : KGuiItem(arg1,arg2,arg3) {};
	KGuiItemJBridge(const QString& arg1,const QIconSet& arg2) : KGuiItem(arg1,arg2) {};
	KGuiItemJBridge(const KGuiItem& arg1) : KGuiItem(arg1) {};
	~KGuiItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KGuiItem_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGuiItem_hasIconSet(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KGuiItem*) QtSupport::getQt(env, obj))->hasIconSet();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGuiItem_hasIcon(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KGuiItem*) QtSupport::getQt(env, obj))->hasIcon();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGuiItem_iconSet__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet()), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGuiItem_iconSet__I(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet((KIcon::Group) arg1)), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGuiItem_iconSet__II(JNIEnv* env, jobject obj, jint arg1, jint size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet((KIcon::Group) arg1, (int) size)), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGuiItem_iconSet__IILorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jobject obj, jint arg1, jint size, jobject instance)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet((KIcon::Group) arg1, (int) size, (KInstance*) QtSupport::getQt(env, instance))), "org.kde.qt.QIconSet", TRUE);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGuiItem_isEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KGuiItem*) QtSupport::getQt(env, obj))->isEnabled();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text, jstring iconName)
{
static QString* _qstring_text = 0;
static QString* _qstring_iconName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QString&)*(QString*) QtSupport::toQString(env, iconName, &_qstring_iconName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text, jstring iconName, jstring toolTip)
{
static QString* _qstring_text = 0;
static QString* _qstring_iconName = 0;
static QString* _qstring_toolTip = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QString&)*(QString*) QtSupport::toQString(env, iconName, &_qstring_iconName), (const QString&)*(QString*) QtSupport::toQString(env, toolTip, &_qstring_toolTip)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text, jstring iconName, jstring toolTip, jstring whatsThis)
{
static QString* _qstring_text = 0;
static QString* _qstring_iconName = 0;
static QString* _qstring_toolTip = 0;
static QString* _qstring_whatsThis = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QString&)*(QString*) QtSupport::toQString(env, iconName, &_qstring_iconName), (const QString&)*(QString*) QtSupport::toQString(env, toolTip, &_qstring_toolTip), (const QString&)*(QString*) QtSupport::toQString(env, whatsThis, &_qstring_whatsThis)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2(JNIEnv* env, jobject obj, jstring text, jobject iconSet)
{
static QString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QIconSet&)*(const QIconSet*) QtSupport::getQt(env, iconSet)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text, jobject iconSet, jstring toolTip)
{
static QString* _qstring_text = 0;
static QString* _qstring_toolTip = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QIconSet&)*(const QIconSet*) QtSupport::getQt(env, iconSet), (const QString&)*(QString*) QtSupport::toQString(env, toolTip, &_qstring_toolTip)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2Lorg_kde_qt_QIconSet_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text, jobject iconSet, jstring toolTip, jstring whatsThis)
{
static QString* _qstring_text = 0;
static QString* _qstring_toolTip = 0;
static QString* _qstring_whatsThis = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QIconSet&)*(const QIconSet*) QtSupport::getQt(env, iconSet), (const QString&)*(QString*) QtSupport::toQString(env, toolTip, &_qstring_toolTip), (const QString&)*(QString*) QtSupport::toQString(env, whatsThis, &_qstring_whatsThis)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_newKGuiItem__Lorg_kde_koala_KGuiItem_2(JNIEnv* env, jobject obj, jobject rhs)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const KGuiItem&)*(const KGuiItem*) QtSupport::getQt(env, rhs)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_setEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KGuiItem*) QtSupport::getQt(env, obj))->setEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_setIconName(JNIEnv* env, jobject obj, jstring iconName)
{
static QString* _qstring_iconName = 0;
	((KGuiItem*) QtSupport::getQt(env, obj))->setIconName((const QString&)*(QString*) QtSupport::toQString(env, iconName, &_qstring_iconName));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_setIconSet(JNIEnv* env, jobject obj, jobject iconset)
{
	((KGuiItem*) QtSupport::getQt(env, obj))->setIconSet((const QIconSet&)*(const QIconSet*) QtSupport::getQt(env, iconset));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_setText(JNIEnv* env, jobject obj, jstring text)
{
static QString* _qstring_text = 0;
	((KGuiItem*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_setToolTip(JNIEnv* env, jobject obj, jstring tooltip)
{
static QString* _qstring_tooltip = 0;
	((KGuiItem*) QtSupport::getQt(env, obj))->setToolTip((const QString&)*(QString*) QtSupport::toQString(env, tooltip, &_qstring_tooltip));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KGuiItem_setWhatsThis(JNIEnv* env, jobject obj, jstring whatsThis)
{
static QString* _qstring_whatsThis = 0;
	((KGuiItem*) QtSupport::getQt(env, obj))->setWhatsThis((const QString&)*(QString*) QtSupport::toQString(env, whatsThis, &_qstring_whatsThis));
	return;
}

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

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

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

