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

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

class KURLBarItemJBridge : public KURLBarItem
{
public:
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,bool arg3,const QString& arg4,const QString& arg5,KIcon::Group arg6) : KURLBarItem(arg1,arg2,arg3,arg4,arg5,arg6) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,bool arg3,const QString& arg4,const QString& arg5) : KURLBarItem(arg1,arg2,arg3,arg4,arg5) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,bool arg3,const QString& 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 QString& arg3,const QString& arg4,KIcon::Group arg5) : KURLBarItem(arg1,arg2,arg3,arg4,arg5) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,const QString& arg3,const QString& arg4) : KURLBarItem(arg1,arg2,arg3,arg4) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2,const QString& arg3) : KURLBarItem(arg1,arg2,arg3) {};
	KURLBarItemJBridge(KURLBar* arg1,const KURL& arg2) : KURLBarItem(arg1,arg2) {};
	void protected_paint(QPainter* arg1) {
		KURLBarItem::paint(arg1);
		return;
	}
	~KURLBarItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLBarItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KURLBarItem_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KURLBarItem_height(JNIEnv* env, jobject obj, jobject arg1)
{
	jint xret = (jint) ((KURLBarItem*) QtSupport::getQt(env, obj))->height((const QListBox*) QtSupport::getQt(env, arg1));
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_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_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_koala_KURL_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jstring description)
{
static QString* _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 QString&)*(QString*) QtSupport::toQString(env, description, &_qstring_description)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_koala_KURL_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jstring description, jstring icon)
{
static QString* _qstring_description = 0;
static QString* _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 QString&)*(QString*) QtSupport::toQString(env, description, &_qstring_description), (const QString&)*(QString*) QtSupport::toQString(env, icon, &_qstring_icon)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_koala_KURL_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject parent, jobject url, jstring description, jstring icon, jint group)
{
static QString* _qstring_description = 0;
static QString* _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 QString&)*(QString*) QtSupport::toQString(env, description, &_qstring_description), (const QString&)*(QString*) QtSupport::toQString(env, icon, &_qstring_icon), (KIcon::Group) group));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_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_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_koala_KURL_2ZLjava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jboolean persistent, jstring description)
{
static QString* _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 QString&)*(QString*) QtSupport::toQString(env, description, &_qstring_description)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_koala_KURL_2ZLjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jobject url, jboolean persistent, jstring description, jstring icon)
{
static QString* _qstring_description = 0;
static QString* _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 QString&)*(QString*) QtSupport::toQString(env, description, &_qstring_description), (const QString&)*(QString*) QtSupport::toQString(env, icon, &_qstring_icon)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KURLBarItem_newKURLBarItem__Lorg_kde_koala_KURLBar_2Lorg_kde_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 QString* _qstring_description = 0;
static QString* _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 QString&)*(QString*) QtSupport::toQString(env, description, &_qstring_description), (const QString&)*(QString*) QtSupport::toQString(env, icon, &_qstring_icon), (KIcon::Group) group));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KURLBarItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((KURLBarItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

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

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

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

