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

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

class QWhatsThisJBridge : public QWhatsThis
{
public:
	QWhatsThisJBridge(QWidget* arg1) : QWhatsThis(arg1) {};
	~QWhatsThisJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_add(JNIEnv* env, jclass cls, jobject arg1, jstring arg2)
{
	(void) cls;
static QString* _qstring_arg2 = 0;
	QWhatsThisJBridge::add((QWidget*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWhatsThis_clicked(JNIEnv* env, jobject obj, jstring href)
{
static QString* _qstring_href = 0;
	jboolean xret = (jboolean) ((QWhatsThis*) QtSupport::getQt(env, obj))->clicked((const QString&)*(QString*) QtSupport::toQString(env, href, &_qstring_href));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_display__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text)
{
	(void) cls;
static QString* _qstring_text = 0;
	QWhatsThisJBridge::display((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_display__Ljava_lang_String_2Lorg_kde_qt_QPoint_2(JNIEnv* env, jclass cls, jstring text, jobject pos)
{
	(void) cls;
static QString* _qstring_text = 0;
	QWhatsThisJBridge::display((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_display__Ljava_lang_String_2Lorg_kde_qt_QPoint_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jstring text, jobject pos, jobject w)
{
	(void) cls;
static QString* _qstring_text = 0;
	QWhatsThisJBridge::display((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QWhatsThis_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_enterWhatsThisMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QWhatsThisJBridge::enterWhatsThisMode();
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QWhatsThis_inWhatsThisMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) QWhatsThisJBridge::inWhatsThisMode();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_leaveWhatsThisMode__(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QWhatsThisJBridge::leaveWhatsThisMode();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_leaveWhatsThisMode__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	QWhatsThisJBridge::leaveWhatsThisMode((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_leaveWhatsThisMode__Ljava_lang_String_2Lorg_kde_qt_QPoint_2(JNIEnv* env, jclass cls, jstring arg1, jobject pos)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	QWhatsThisJBridge::leaveWhatsThisMode((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_leaveWhatsThisMode__Ljava_lang_String_2Lorg_kde_qt_QPoint_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jstring arg1, jobject pos, jobject w)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	QWhatsThisJBridge::leaveWhatsThisMode((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (QWidget*) QtSupport::getQt(env, w));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_remove(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QWhatsThisJBridge::remove((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QWhatsThis_setFont(JNIEnv* env, jclass cls, jobject font)
{
	(void) cls;
	QWhatsThisJBridge::setFont((const QFont&)*(const QFont*) QtSupport::getQt(env, font));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QWhatsThis_textFor__Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
	QString  _qstring;
	(void) cls;
	_qstring = QWhatsThisJBridge::textFor((QWidget*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QWhatsThis_textFor__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1, jobject pos)
{
	QString  _qstring;
	(void) cls;
	_qstring = QWhatsThisJBridge::textFor((QWidget*) QtSupport::getQt(env, arg1), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QWhatsThis_textFor__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QPoint_2Z(JNIEnv* env, jclass cls, jobject arg1, jobject pos, jboolean includeParents)
{
	QString  _qstring;
	(void) cls;
	_qstring = QWhatsThisJBridge::textFor((QWidget*) QtSupport::getQt(env, arg1), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (bool) includeParents);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QWhatsThis_text(JNIEnv* env, jobject obj, jobject arg1)
{
	QString  _qstring;
	_qstring = ((QWhatsThis*) QtSupport::getQt(env, obj))->text((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QWhatsThis_whatsThisButton(JNIEnv* env, jclass cls, jobject parent)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QWhatsThisJBridge::whatsThisButton((QWidget*) QtSupport::getQt(env, parent)), "org.kde.qt.QToolButton");
	return xret;
}

