//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tdeparts/historyprovider.h>
#include <tqstringlist.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/HistoryProvider.h>

class HistoryProviderJBridge : public KParts::HistoryProvider
{
public:
	HistoryProviderJBridge(TQObject* arg1,const char* arg2) : KParts::HistoryProvider(arg1,arg2) {};
	HistoryProviderJBridge(TQObject* arg1) : KParts::HistoryProvider(arg1) {};
	HistoryProviderJBridge() : KParts::HistoryProvider() {};
	void public_clear() {
		KParts::HistoryProvider::clear();
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void clear() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.HistoryProvider","clear")) {
			HistoryProvider::clear();
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.HistoryProvider",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_HistoryProvider_clear(JNIEnv* env, jobject obj)
{
	((HistoryProviderJBridge*) QtSupport::getQt(env, obj))->public_clear();
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_HistoryProvider_newHistoryProvider__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new HistoryProviderJBridge((TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_HistoryProvider_newHistoryProvider__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new HistoryProviderJBridge((TQObject*) 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_trinitydesktop_koala_HistoryProvider_remove(JNIEnv* env, jobject obj, jstring item)
{
static TQString* _qstring_item = 0;
	((KParts::HistoryProvider*) QtSupport::getQt(env, obj))->remove((const TQString&)*(TQString*) QtSupport::toTQString(env, item, &_qstring_item));
	return;
}

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

