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

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

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_KPreviewWidgetBase_clearPreview(JNIEnv* env, jobject obj)
{
	((KPreviewWidgetBase*) QtSupport::getQt(env, obj))->clearPreview();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KPreviewWidgetBase_supportedMimeTypes(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KPreviewWidgetBase*) QtSupport::getQt(env, obj))->supportedMimeTypes();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

