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

#include <qtjava/QtSupport.h>
#include <qtjava/QListBoxText.h>

class QListBoxTextJBridge : public QListBoxText
{
public:
	QListBoxTextJBridge(QListBox* arg1,const QString& arg2) : QListBoxText(arg1,arg2) {};
	QListBoxTextJBridge(QListBox* arg1) : QListBoxText(arg1) {};
	QListBoxTextJBridge(const QString& arg1) : QListBoxText(arg1) {};
	QListBoxTextJBridge() : QListBoxText() {};
	QListBoxTextJBridge(QListBox* arg1,const QString& arg2,QListBoxItem* arg3) : QListBoxText(arg1,arg2,arg3) {};
	void protected_paint(QPainter* arg1) {
		QListBoxText::paint(arg1);
		return;
	}
	~QListBoxTextJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxText_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QListBoxText_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxText_newQListBoxText__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 QListBoxTextJBridge((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxText_paint(JNIEnv* env, jobject obj, jobject arg1)
{
	((QListBoxTextJBridge*) QtSupport::getQt(env, obj))->protected_paint((QPainter*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QListBoxText_rtti(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QListBoxText*) QtSupport::getQt(env, obj))->rtti();
	return xret;
}

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

