//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeparts/browserextension.h>
#include <tqpixmap.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tdeio/previewjob.h>

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

class PreviewJobJBridge : public TDEIO::PreviewJob
{
public:
	PreviewJobJBridge(const KFileItemList& arg1,int arg2,int arg3,int arg4,int arg5,bool arg6,bool arg7,const TQStringList* arg8,bool arg9) : TDEIO::PreviewJob(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) {};
	PreviewJobJBridge(const KFileItemList& arg1,int arg2,int arg3,int arg4,int arg5,bool arg6,bool arg7,const TQStringList* arg8) : TDEIO::PreviewJob(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {};
	void protected_getOrCreateThumbnail() {
		TDEIO::PreviewJob::getOrCreateThumbnail();
		return;
	}
	bool protected_statResultThumbnail() {
		return (bool) TDEIO::PreviewJob::statResultThumbnail();
	}
	void protected_createThumbnail(TQString arg1) {
		TDEIO::PreviewJob::createThumbnail(arg1);
		return;
	}
	void protected_slotResult(TDEIO::Job* arg1) {
		TDEIO::PreviewJob::slotResult(arg1);
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		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 slotResult(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotResult",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			PreviewJob::slotResult(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.PreviewJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_PreviewJob_availablePlugins(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = PreviewJobJBridge::availablePlugins();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_createThumbnail(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((PreviewJobJBridge*) QtSupport::getQt(env, obj))->protected_createThumbnail((TQString)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_getOrCreateThumbnail(JNIEnv* env, jobject obj)
{
	((PreviewJobJBridge*) QtSupport::getQt(env, obj))->protected_getOrCreateThumbnail();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_newPreviewJob__Ljava_util_ArrayList_2IIIIZZ_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray items, jint width, jint height, jint iconSize, jint iconAlpha, jboolean scale, jboolean save, jobjectArray enabledPlugins)
{
static KFileItemList* _qlist_items = 0;
static TQStringList* _qlist_enabledPlugins = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PreviewJobJBridge((const KFileItemList&)*(TQStrList*) KDESupport::toKFileItemList(env, items, &_qlist_items), (int) width, (int) height, (int) iconSize, (int) iconAlpha, (bool) scale, (bool) save, (const TQStringList*) QtSupport::toTQStringList(env, enabledPlugins, &_qlist_enabledPlugins)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_newPreviewJob__Ljava_util_ArrayList_2IIIIZZ_3Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobjectArray items, jint width, jint height, jint iconSize, jint iconAlpha, jboolean scale, jboolean save, jobjectArray enabledPlugins, jboolean deleteItems)
{
static KFileItemList* _qlist_items = 0;
static TQStringList* _qlist_enabledPlugins = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PreviewJobJBridge((const KFileItemList&)*(TQStrList*) KDESupport::toKFileItemList(env, items, &_qlist_items), (int) width, (int) height, (int) iconSize, (int) iconAlpha, (bool) scale, (bool) save, (const TQStringList*) QtSupport::toTQStringList(env, enabledPlugins, &_qlist_enabledPlugins), (bool) deleteItems));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_removeItem(JNIEnv* env, jobject obj, jobject item)
{
	((TDEIO::PreviewJob*) QtSupport::getQt(env, obj))->removeItem((const KFileItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_setIgnoreMaximumSize__(JNIEnv* env, jobject obj)
{
	((TDEIO::PreviewJob*) QtSupport::getQt(env, obj))->setIgnoreMaximumSize();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_setIgnoreMaximumSize__Z(JNIEnv* env, jobject obj, jboolean ignoreSize)
{
	((TDEIO::PreviewJob*) QtSupport::getQt(env, obj))->setIgnoreMaximumSize((bool) ignoreSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PreviewJob_slotResult(JNIEnv* env, jobject obj, jobject job)
{
	((PreviewJobJBridge*) QtSupport::getQt(env, obj))->protected_slotResult((TDEIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_PreviewJob_statResultThumbnail(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((PreviewJobJBridge*) QtSupport::getQt(env, obj))->protected_statResultThumbnail();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_PreviewJob_supportedMimeTypes(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = PreviewJobJBridge::supportedMimeTypes();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

