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

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

class HistoryProviderJBridge : public KParts::HistoryProvider
{
public:
	HistoryProviderJBridge(QObject* arg1,const char* arg2) : KParts::HistoryProvider(arg1,arg2) {};
	HistoryProviderJBridge(QObject* arg1) : KParts::HistoryProvider(arg1) {};
	HistoryProviderJBridge() : KParts::HistoryProvider() {};
	void public_clear() {
		KParts::HistoryProvider::clear();
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void clear() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.HistoryProvider","clear")) {
			HistoryProvider::clear();
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.HistoryProvider",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HistoryProvider_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KParts::HistoryProvider*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HistoryProvider_clear(JNIEnv* env, jobject obj)
{
	((HistoryProviderJBridge*) QtSupport::getQt(env, obj))->public_clear();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_HistoryProvider_contains(JNIEnv* env, jobject obj, jstring item)
{
static QString* _qstring_item = 0;
	jboolean xret = (jboolean) ((KParts::HistoryProvider*) QtSupport::getQt(env, obj))->contains((const QString&)*(QString*) QtSupport::toQString(env, item, &_qstring_item));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HistoryProvider_insert(JNIEnv* env, jobject obj, jstring item)
{
static QString* _qstring_item = 0;
	((KParts::HistoryProvider*) QtSupport::getQt(env, obj))->insert((const QString&)*(QString*) QtSupport::toQString(env, item, &_qstring_item));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HistoryProvider_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::HistoryProvider*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_HistoryProvider_newHistoryProvider__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new HistoryProviderJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HistoryProvider_remove(JNIEnv* env, jobject obj, jstring item)
{
static QString* _qstring_item = 0;
	((KParts::HistoryProvider*) QtSupport::getQt(env, obj))->remove((const QString&)*(QString*) QtSupport::toQString(env, item, &_qstring_item));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HistoryProvider_self(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)HistoryProviderJBridge::self(), "org.kde.koala.HistoryProvider");
	return xret;
}

