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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KGuiItem.h>

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KGuiItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KGuiItem_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KGuiItem_hasIconSet(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KGuiItem*) QtSupport::getQt(env, obj))->hasIconSet();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KGuiItem_iconSet__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet()), "org.trinitydesktop.qt.TQIconSet", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KGuiItem_iconSet__I(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet((TDEIcon::Group) arg1)), "org.trinitydesktop.qt.TQIconSet", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KGuiItem_iconSet__II(JNIEnv* env, jobject obj, jint arg1, jint size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet((TDEIcon::Group) arg1, (int) size)), "org.trinitydesktop.qt.TQIconSet", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KGuiItem_iconSet__IILorg_trinitydesktop_koala_TDEInstanceInterface_2(JNIEnv* env, jobject obj, jint arg1, jint size, jobject instance)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQIconSet(((KGuiItem*) QtSupport::getQt(env, obj))->iconSet((TDEIcon::Group) arg1, (int) size, (TDEInstance*) QtSupport::getQt(env, instance))), "org.trinitydesktop.qt.TQIconSet", true);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KGuiItem_newKGuiItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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 TQString* _qstring_text = 0;
static TQString* _qstring_iconName = 0;
static TQString* _qstring_toolTip = 0;
static TQString* _qstring_whatsThis = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KGuiItemJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQString&)*(TQString*) QtSupport::toTQString(env, iconName, &_qstring_iconName), (const TQString&)*(TQString*) QtSupport::toTQString(env, toolTip, &_qstring_toolTip), (const TQString&)*(TQString*) QtSupport::toTQString(env, whatsThis, &_qstring_whatsThis)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KGuiItem_newKGuiItem__Lorg_trinitydesktop_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_trinitydesktop_koala_KGuiItem_plainText(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KGuiItem*) QtSupport::getQt(env, obj))->plainText();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

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

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

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

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

