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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KFilePlugin_createValidator(JNIEnv* env, jobject obj, jstring mimeType, jstring group, jstring key, jobject parent, jstring name)
{
static TQString* _qstring_mimeType = 0;
static TQString* _qstring_group = 0;
static TQString* _qstring_key = 0;
static TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFilePlugin*) QtSupport::getQt(env, obj))->createValidator((const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.trinitydesktop.qt.TQValidator");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFilePlugin_readInfo__Lorg_trinitydesktop_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_trinitydesktop_koala_KFilePlugin_readInfo__Lorg_trinitydesktop_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_trinitydesktop_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;
}

