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

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

class QTabJBridge : public QTab
{
public:
	QTabJBridge() : QTab() {};
	QTabJBridge(const QString& arg1) : QTab(arg1) {};
	QTabJBridge(const QIconSet& arg1,const QString& arg2) : QTab(arg1,arg2) {};
	QTabJBridge(const QIconSet& arg1) : QTab(arg1) {};
	~QTabJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QTab_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTab_identifier(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTab*) QtSupport::getQt(env, obj))->identifier();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_newQTab__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 QTabJBridge((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_QTab_newQTab__Lorg_kde_qt_QIconSet_2(JNIEnv* env, jobject obj, jobject icon)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTabJBridge((const QIconSet&)*(const QIconSet*) QtSupport::getQt(env, icon)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTab_rect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QTab*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.QRect", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_setIdentifier(JNIEnv* env, jobject obj, jint i)
{
	((QTab*) QtSupport::getQt(env, obj))->setIdentifier((int) i);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_setRect(JNIEnv* env, jobject obj, jobject rect)
{
	((QTab*) QtSupport::getQt(env, obj))->setRect((const QRect&)*(const QRect*) QtSupport::getQt(env, rect));
	return;
}

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

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

