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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFilePlugin_createValidator(JNIEnv* env, jobject obj, jstring mimeType, jstring group, jstring key, jobject parent, jstring name)
{
static QString* _qstring_mimeType = 0;
static QString* _qstring_group = 0;
static QString* _qstring_key = 0;
static QCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFilePlugin*) QtSupport::getQt(env, obj))->createValidator((const QString&)*(QString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.qt.QValidator");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFilePlugin_readInfo__Lorg_kde_koala_KFileMetaInfo_2(JNIEnv* env, jobject obj, jobject info)
{
	jboolean xret = (jboolean) ((KFilePlugin*) QtSupport::getQt(env, obj))->readInfo((KFileMetaInfo&)*(KFileMetaInfo*) QtSupport::getQt(env, info));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFilePlugin_readInfo__Lorg_kde_koala_KFileMetaInfo_2I(JNIEnv* env, jobject obj, jobject info, jint what)
{
	jboolean xret = (jboolean) ((KFilePlugin*) QtSupport::getQt(env, obj))->readInfo((KFileMetaInfo&)*(KFileMetaInfo*) QtSupport::getQt(env, info), (uint) what);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFilePlugin_writeInfo(JNIEnv* env, jobject obj, jobject info)
{
	jboolean xret = (jboolean) ((KFilePlugin*) QtSupport::getQt(env, obj))->writeInfo((const KFileMetaInfo&)*(const KFileMetaInfo*) QtSupport::getQt(env, info));
	return xret;
}

