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

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

class KDEDesktopMimeTypeJBridge : public KDEDesktopMimeType
{
public:
	KDEDesktopMimeTypeJBridge(TDEDesktopFile* arg1) : KDEDesktopMimeType(arg1) {};
	KDEDesktopMimeTypeJBridge(TQDataStream& arg1,int arg2) : KDEDesktopMimeType(arg1,arg2) {};
	TQPixmap protected_pixmap(TDEIcon::Group arg1,int arg2,int arg3,TQString* arg4) {
		return (TQPixmap) KDEDesktopMimeType::pixmap(arg1,arg2,arg3,arg4);
	}
	TQPixmap protected_pixmap(TDEIcon::Group arg1,int arg2,int arg3) {
		return (TQPixmap) KDEDesktopMimeType::pixmap(arg1,arg2,arg3);
	}
	TQPixmap protected_pixmap(TDEIcon::Group arg1,int arg2) {
		return (TQPixmap) KDEDesktopMimeType::pixmap(arg1,arg2);
	}
	TQPixmap protected_pixmap(TDEIcon::Group arg1) {
		return (TQPixmap) KDEDesktopMimeType::pixmap(arg1);
	}
	static pid_t protected_runFSDevice(const KURL& arg1,const TDESimpleConfig& arg2) {
		return (pid_t) KDEDesktopMimeType::runFSDevice(arg1,arg2);
	}
	static pid_t protected_runApplication(const KURL& arg1,const TQString& arg2) {
		return (pid_t) KDEDesktopMimeType::runApplication(arg1,arg2);
	}
	static pid_t protected_runLink(const KURL& arg1,const TDESimpleConfig& arg2) {
		return (pid_t) KDEDesktopMimeType::runLink(arg1,arg2);
	}
	static pid_t protected_runMimeType(const KURL& arg1,const TDESimpleConfig& arg2) {
		return (pid_t) KDEDesktopMimeType::runMimeType(arg1,arg2);
	}
	~KDEDesktopMimeTypeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_comment__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _url, jboolean _is_local)
{
	TQString  _qstring;
static TQString* _qstring__url = 0;
	_qstring = ((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->comment((const TQString&)*(TQString*) QtSupport::toTQString(env, _url, &_qstring__url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_comment__Lorg_trinitydesktop_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject _url, jboolean _is_local)
{
	TQString  _qstring;
	_qstring = ((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->comment((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KDEDesktopMimeType_finalize(env, obj);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_icon__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _url, jboolean _is_local)
{
	TQString  _qstring;
static TQString* _qstring__url = 0;
	_qstring = ((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->icon((const TQString&)*(TQString*) QtSupport::toTQString(env, _url, &_qstring__url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_icon__Lorg_trinitydesktop_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject _url, jboolean _is_local)
{
	TQString  _qstring;
	_qstring = ((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->icon((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_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(((KDEDesktopMimeTypeJBridge*) QtSupport::getQt(env, obj))->protected_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_KDEDesktopMimeType_pixmap__Lorg_trinitydesktop_koala_KURL_2I(JNIEnv* env, jobject obj, jobject _url, jint _group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((KDEDesktopMimeType*) 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_KDEDesktopMimeType_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(((KDEDesktopMimeType*) 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_KDEDesktopMimeType_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(((KDEDesktopMimeType*) 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_KDEDesktopMimeType_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(((KDEDesktopMimeType*) 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 jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_runApplication(JNIEnv* env, jclass cls, jobject _url, jstring _serviceFile)
{
	(void) cls;
static TQString* _qstring__serviceFile = 0;
	jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runApplication((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const TQString&)*(TQString*) QtSupport::toTQString(env, _serviceFile, &_qstring__serviceFile));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_runFSDevice(JNIEnv* env, jclass cls, jobject _url, jobject cfg)
{
	(void) cls;
	jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runFSDevice((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const TDESimpleConfig&)*(const TDESimpleConfig*) QtSupport::getQt(env, cfg));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_runLink(JNIEnv* env, jclass cls, jobject _url, jobject cfg)
{
	(void) cls;
	jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runLink((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const TDESimpleConfig&)*(const TDESimpleConfig*) QtSupport::getQt(env, cfg));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_runMimeType(JNIEnv* env, jclass cls, jobject _url, jobject cfg)
{
	(void) cls;
	jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runMimeType((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const TDESimpleConfig&)*(const TDESimpleConfig*) QtSupport::getQt(env, cfg));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDEDesktopMimeType_run(JNIEnv* env, jclass cls, jobject _url, jboolean _is_local)
{
	(void) cls;
	jint xret = (jint) KDEDesktopMimeTypeJBridge::run((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _is_local);
	return xret;
}

