//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsize.h>
#include <kurlbar.h>
#include <kicontheme.h>
#include <tqstring.h>
#include <kurl.h>

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

class KURLBarItemJBridge : public KURLBarItem
{
public:
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,bool arg3,const TQString& arg4,const TQString& arg5,TDEIcon::Group arg6) : KURLBarItem(arg1,arg2,arg3,arg4,arg5,arg6) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,bool arg3,const TQString& arg4,const TQString& arg5) : KURLBarItem(arg1,arg2,arg3,arg4,arg5) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,bool arg3,const TQString& arg4) : KURLBarItem(arg1,arg2,arg3,arg4) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,bool arg3) : KURLBarItem(arg1,arg2,arg3) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,const TQString& arg3,const TQString& arg4,TDEIcon::Group arg5) : KURLBarItem(arg1,arg2,arg3,arg4,arg5) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,const TQString& arg3,const TQString& arg4) : KURLBarItem(arg1,arg2,arg3,arg4) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,const TQString& arg3) : KURLBarItem(arg1,arg2,arg3) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2) : KURLBarItem(arg1,arg2) {};
	void protected_paint(TQPainter* arg1) {
		KURLBarItem::paint(arg1);
		return;
	}
	~KURLBarItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_applicationLocal(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KURLBarItem*) QtSupport::getQt(env, obj))->applicationLocal();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KURLBarItem_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_height(JNIEnv* env, jobject obj, jobject arg1)
{
	jint xret = (jint) ((KURLBarItem*) QtSupport::getQt(env, obj))->height((const TQListBox*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_iconGroup(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KURLBarItem*) QtSupport::getQt(env, obj))->iconGroup();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_isPersistent(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KURLBarItem*) QtSupport::getQt(env, obj))->isPersistent();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jobject obj, jobject parent, jobject url)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jstring description)
{
static TQString* _qstring_description = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, description, &_qstring_description)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jstring description, jstring icon)
{
static TQString* _qstring_description = 0;
static TQString* _qstring_icon = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, description, &_qstring_description), (const TQString&)*(TQString*) QtSupport::toTQString(env, icon, &_qstring_icon)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject parent, jobject url, jstring description, jstring icon, jint group)
{
static TQString* _qstring_description = 0;
static TQString* _qstring_icon = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, description, &_qstring_description), (const TQString&)*(TQString*) QtSupport::toTQString(env, icon, &_qstring_icon), (TDEIcon::Group) group));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject parent, jobject url, jboolean persistent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (bool) persistent));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2ZLjava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jboolean persistent, jstring description)
{
static TQString* _qstring_description = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (bool) persistent, (const TQString&)*(TQString*) QtSupport::toTQString(env, description, &_qstring_description)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2ZLjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jboolean persistent, jstring description, jstring icon)
{
static TQString* _qstring_description = 0;
static TQString* _qstring_icon = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (bool) persistent, (const TQString&)*(TQString*) QtSupport::toTQString(env, description, &_qstring_description), (const TQString&)*(TQString*) QtSupport::toTQString(env, icon, &_qstring_icon)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_newKURLBarItem__Lorg_trinitydesktop_koala_KURLBar_2Lorg_trinitydesktop_koala_KURL_2ZLjava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject parent, jobject url, jboolean persistent, jstring description, jstring icon, jint group)
{
static TQString* _qstring_description = 0;
static TQString* _qstring_icon = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KURLBarItemJBridge((KURLBar*) QtSupport::getQt(env, parent), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (bool) persistent, (const TQString&)*(TQString*) QtSupport::toTQString(env, description, &_qstring_description), (const TQString&)*(TQString*) QtSupport::toTQString(env, icon, &_qstring_icon), (TDEIcon::Group) group));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_paint(JNIEnv* env, jobject obj, jobject p)
{
	((KURLBarItemJBridge*) QtSupport::getQt(env, obj))->protected_paint((TQPainter*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_pixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KURLBarItem*) QtSupport::getQt(env, obj))->pixmap(), "org.trinitydesktop.qt.TQPixmap");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_setApplicationLocal(JNIEnv* env, jobject obj, jboolean local)
{
	((KURLBarItem*) QtSupport::getQt(env, obj))->setApplicationLocal((bool) local);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_setDescription(JNIEnv* env, jobject obj, jstring desc)
{
static TQString* _qstring_desc = 0;
	((KURLBarItem*) QtSupport::getQt(env, obj))->setDescription((const TQString&)*(TQString*) QtSupport::toTQString(env, desc, &_qstring_desc));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_setIcon__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring icon)
{
static TQString* _qstring_icon = 0;
	((KURLBarItem*) QtSupport::getQt(env, obj))->setIcon((const TQString&)*(TQString*) QtSupport::toTQString(env, icon, &_qstring_icon));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_setIcon__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring icon, jint group)
{
static TQString* _qstring_icon = 0;
	((KURLBarItem*) QtSupport::getQt(env, obj))->setIcon((const TQString&)*(TQString*) QtSupport::toTQString(env, icon, &_qstring_icon), (TDEIcon::Group) group);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_setToolTip(JNIEnv* env, jobject obj, jstring tip)
{
static TQString* _qstring_tip = 0;
	((KURLBarItem*) QtSupport::getQt(env, obj))->setToolTip((const TQString&)*(TQString*) QtSupport::toTQString(env, tip, &_qstring_tip));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_setURL(JNIEnv* env, jobject obj, jobject url)
{
	((KURLBarItem*) QtSupport::getQt(env, obj))->setURL((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((KURLBarItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KURL *) &((KURLBarItem*) QtSupport::getQt(env, obj))->url(), "org.trinitydesktop.koala.KURL");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KURLBarItem_width(JNIEnv* env, jobject obj, jobject arg1)
{
	jint xret = (jint) ((KURLBarItem*) QtSupport::getQt(env, obj))->width((const TQListBox*) QtSupport::getQt(env, arg1));
	return xret;
}

