//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdatastream.h>
#include <tqpixmap.h>
#include <kicontheme.h>
#include <kmimetype.h>
#include <tqstring.h>
#include <tqvariant.h>
#include <tqstringlist.h>
#include <kurl.h>
#include <tqcstring.h>

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

class KMimeTypeJBridge : public KMimeType
{
public:
	KMimeTypeJBridge(const TQString& arg1,const TQString& arg2,const TQString& arg3,const TQString& arg4,const TQStringList& arg5) : KMimeType(arg1,arg2,arg3,arg4,arg5) {};
	KMimeTypeJBridge(const TQString& arg1) : KMimeType(arg1) {};
	KMimeTypeJBridge(TDEDesktopFile* arg1) : KMimeType(arg1) {};
	KMimeTypeJBridge(TQDataStream& arg1,int arg2) : KMimeType(arg1,arg2) {};
	void protected_loadInternal(TQDataStream& arg1) {
		KMimeType::loadInternal(arg1);
		return;
	}
	void protected_init(TDEDesktopFile* arg1) {
		KMimeType::init(arg1);
		return;
	}
	int protected_patternsAccuracy() {
		return (int) KMimeType::patternsAccuracy();
	}
	static void protected_errorMissingMimeType(const TQString& arg1) {
		KMimeType::errorMissingMimeType(arg1);
		return;
	}
	static void protected_buildDefaultType() {
		KMimeType::buildDefaultType();
		return;
	}
	static void protected_checkEssentialMimeTypes() {
		KMimeType::checkEssentialMimeTypes();
		return;
	}
	~KMimeTypeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_buildDefaultType(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KMimeTypeJBridge::protected_buildDefaultType();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_checkEssentialMimeTypes(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KMimeTypeJBridge::protected_checkEssentialMimeTypes();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_comment__(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KMimeType*) QtSupport::getQt(env, obj))->comment();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_comment__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2)
{
	TQString  _qstring;
static TQString* _qstring_arg1 = 0;
	_qstring = ((KMimeType*) QtSupport::getQt(env, obj))->comment((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool) arg2);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_comment__Lorg_trinitydesktop_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject arg1, jboolean arg2)
{
	TQString  _qstring;
	_qstring = ((KMimeType*) QtSupport::getQt(env, obj))->comment((const KURL&)*(const KURL*) QtSupport::getQt(env, arg1), (bool) arg2);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_defaultMimeType(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KMimeTypeJBridge::defaultMimeType();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KMimeType_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_errorMissingMimeType(JNIEnv* env, jclass cls, jstring _type)
{
	(void) cls;
static TQString* _qstring__type = 0;
	KMimeTypeJBridge::protected_errorMissingMimeType((const TQString&)*(TQString*) QtSupport::toTQString(env, _type, &_qstring__type));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_favIconForURL(JNIEnv* env, jclass cls, jobject url)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KMimeTypeJBridge::favIconForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KMimeType*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_iconForURL__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject _url)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KMimeTypeJBridge::iconForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_iconForURL__Lorg_trinitydesktop_koala_KURL_2J(JNIEnv* env, jclass cls, jobject _url, jlong _mode)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KMimeTypeJBridge::iconForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_icon__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2)
{
	TQString  _qstring;
static TQString* _qstring_arg1 = 0;
	_qstring = ((KMimeType*) QtSupport::getQt(env, obj))->icon((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool) arg2);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_icon__Lorg_trinitydesktop_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject arg1, jboolean arg2)
{
	TQString  _qstring;
	_qstring = ((KMimeType*) QtSupport::getQt(env, obj))->icon((const KURL&)*(const KURL*) QtSupport::getQt(env, arg1), (bool) arg2);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_init(JNIEnv* env, jobject obj, jobject arg1)
{
	((KMimeTypeJBridge*) QtSupport::getQt(env, obj))->protected_init((TDEDesktopFile*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KMimeType_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KMimeType_is(JNIEnv* env, jobject obj, jstring mimeTypeName)
{
static TQString* _qstring_mimeTypeName = 0;
	jboolean xret = (jboolean) ((KMimeType*) QtSupport::getQt(env, obj))->is((const TQString&)*(TQString*) QtSupport::toTQString(env, mimeTypeName, &_qstring_mimeTypeName));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_loadInternal(JNIEnv* env, jobject obj, jobject arg1)
{
	((KMimeTypeJBridge*) QtSupport::getQt(env, obj))->protected_loadInternal((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_load(JNIEnv* env, jobject obj, jobject qs)
{
	((KMimeType*) QtSupport::getQt(env, obj))->load((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, qs));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_newKMimeType__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _fullpath)
{
static TQString* _qstring__fullpath = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMimeTypeJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, _fullpath, &_qstring__fullpath)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_newKMimeType__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _fullpath, jstring _type, jstring _icon, jstring _comment, jobjectArray _patterns)
{
static TQString* _qstring__fullpath = 0;
static TQString* _qstring__type = 0;
static TQString* _qstring__icon = 0;
static TQString* _qstring__comment = 0;
static TQStringList* _qlist__patterns = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMimeTypeJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, _fullpath, &_qstring__fullpath), (const TQString&)*(TQString*) QtSupport::toTQString(env, _type, &_qstring__type), (const TQString&)*(TQString*) QtSupport::toTQString(env, _icon, &_qstring__icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, _comment, &_qstring__comment), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, _patterns, &_qlist__patterns)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_newKMimeType__Lorg_trinitydesktop_koala_TDEDesktopFile_2(JNIEnv* env, jobject obj, jobject config)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMimeTypeJBridge((TDEDesktopFile*) QtSupport::getQt(env, config)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_newKMimeType__Lorg_trinitydesktop_qt_QDataStream_2I(JNIEnv* env, jobject obj, jobject _str, jint offset)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMimeTypeJBridge((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, _str), (int) offset));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeType_parentMimeType(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KMimeType*) QtSupport::getQt(env, obj))->parentMimeType();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KMimeType_patternsAccuracy(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KMimeTypeJBridge*) QtSupport::getQt(env, obj))->protected_patternsAccuracy();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmapForURL__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject _url)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url))), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmapForURL__Lorg_trinitydesktop_koala_KURL_2J(JNIEnv* env, jclass cls, jobject _url, jlong _mode)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmapForURL__Lorg_trinitydesktop_koala_KURL_2JI(JNIEnv* env, jclass cls, jobject _url, jlong _mode, jint _group)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (TDEIcon::Group) _group)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmapForURL__Lorg_trinitydesktop_koala_KURL_2JII(JNIEnv* env, jclass cls, jobject _url, jlong _mode, jint _group, jint _force_size)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (TDEIcon::Group) _group, (int) _force_size)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmapForURL__Lorg_trinitydesktop_koala_KURL_2JIII(JNIEnv* env, jclass cls, jobject _url, jlong _mode, jint _group, jint _force_size, jint _state)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (TDEIcon::Group) _group, (int) _force_size, (int) _state)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmapForURL__Lorg_trinitydesktop_koala_KURL_2JIIILjava_lang_StringBuffer_2(JNIEnv* env, jclass cls, jobject _url, jlong _mode, jint _group, jint _force_size, jint _state, jobject _path)
{
	(void) cls;
static TQString* _qstring__path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (TDEIcon::Group) _group, (int) _force_size, (int) _state, (TQString*) QtSupport::toTQStringFromStringBuffer(env, _path, &_qstring__path))), "org.trinitydesktop.qt.TQPixmap", true);
	QtSupport::fromTQStringToStringBuffer(env, _qstring__path, _path);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__I(JNIEnv* env, jobject obj, jint group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) group)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__II(JNIEnv* env, jobject obj, jint group, jint force_size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) group, (int) force_size)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__III(JNIEnv* env, jobject obj, jint group, jint force_size, jint state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) group, (int) force_size, (int) state)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jint group, jint force_size, jint state, jobject path)
{
static TQString* _qstring_path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((TDEIcon::Group) group, (int) force_size, (int) state, (TQString*) QtSupport::toTQStringFromStringBuffer(env, path, &_qstring_path))), "org.trinitydesktop.qt.TQPixmap", true);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_path, path);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__Lorg_trinitydesktop_koala_KURL_2I(JNIEnv* env, jobject obj, jobject _url, jint _group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (TDEIcon::Group) _group)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__Lorg_trinitydesktop_koala_KURL_2II(JNIEnv* env, jobject obj, jobject _url, jint _group, jint _force_size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (TDEIcon::Group) _group, (int) _force_size)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__Lorg_trinitydesktop_koala_KURL_2III(JNIEnv* env, jobject obj, jobject _url, jint _group, jint _force_size, jint _state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (TDEIcon::Group) _group, (int) _force_size, (int) _state)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_pixmap__Lorg_trinitydesktop_koala_KURL_2IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject _url, jint _group, jint _force_size, jint _state, jobject _path)
{
static TQString* _qstring__path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (TDEIcon::Group) _group, (int) _force_size, (int) _state, (TQString*) QtSupport::toTQStringFromStringBuffer(env, _path, &_qstring__path))), "org.trinitydesktop.qt.TQPixmap", true);
	QtSupport::fromTQStringToStringBuffer(env, _qstring__path, _path);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeType_property(JNIEnv* env, jobject obj, jstring _name)
{
static TQString* _qstring__name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((KMimeType*) QtSupport::getQt(env, obj))->property((const TQString&)*(TQString*) QtSupport::toTQString(env, _name, &_qstring__name))), "org.trinitydesktop.qt.TQVariant", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeType_save(JNIEnv* env, jobject obj, jobject qs)
{
	((KMimeType*) QtSupport::getQt(env, obj))->save((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, qs));
	return;
}

