//Auto-generated by kalyptus. DO NOT EDIT.
#include <kparts/browserextension.h>
#include <qpixmap.h>
#include <qstring.h>
#include <qstringlist.h>
#include <kio/previewjob.h>

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_PreviewJob_availablePlugins(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = PreviewJobJBridge::availablePlugins();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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 QStringList* _qlist_enabledPlugins = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PreviewJobJBridge((const KFileItemList&)*(QStrList*) KDESupport::toKFileItemList(env, items, &_qlist_items), (int) width, (int) height, (int) iconSize, (int) iconAlpha, (bool) scale, (bool) save, (const QStringList*) QtSupport::toQStringList(env, enabledPlugins, &_qlist_enabledPlugins)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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 QStringList* _qlist_enabledPlugins = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PreviewJobJBridge((const KFileItemList&)*(QStrList*) KDESupport::toKFileItemList(env, items, &_qlist_items), (int) width, (int) height, (int) iconSize, (int) iconAlpha, (bool) scale, (bool) save, (const QStringList*) QtSupport::toQStringList(env, enabledPlugins, &_qlist_enabledPlugins), (bool) deleteItems));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_PreviewJob_supportedMimeTypes(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = PreviewJobJBridge::supportedMimeTypes();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

