//Auto-generated by kalyptus. DO NOT EDIT.
#include <kpreviewwidgetbase.h>
#include <tqstringlist.h>
#include <kurl.h>

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KPreviewWidgetBase_clearPreview(JNIEnv* env, jobject obj)
{
	((KPreviewWidgetBase*) QtSupport::getQt(env, obj))->clearPreview();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KPreviewWidgetBase_showPreview(JNIEnv* env, jobject obj, jobject url)
{
	((KPreviewWidgetBase*) QtSupport::getQt(env, obj))->showPreview((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KPreviewWidgetBase_supportedMimeTypes(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KPreviewWidgetBase*) QtSupport::getQt(env, obj))->supportedMimeTypes();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

