//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdatastream.h>
#include <qpixmap.h>
#include <kicontheme.h>
#include <kmimetype.h>
#include <qstring.h>
#include <ksimpleconfig.h>
#include <kurl.h>
#include <kconfig.h>

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

class KDEDesktopMimeTypeJBridge : public KDEDesktopMimeType
{
public:
	KDEDesktopMimeTypeJBridge(KDesktopFile* arg1) : KDEDesktopMimeType(arg1) {};
	KDEDesktopMimeTypeJBridge(QDataStream& arg1,int arg2) : KDEDesktopMimeType(arg1,arg2) {};
	QPixmap protected_pixmap(KIcon::Group arg1,int arg2,int arg3,QString* arg4) {
		return (QPixmap) KDEDesktopMimeType::pixmap(arg1,arg2,arg3,arg4);
	}
	static pid_t protected_runFSDevice(const KURL& arg1,const KSimpleConfig& arg2) {
		return (pid_t) KDEDesktopMimeType::runFSDevice(arg1,arg2);
	}
	static pid_t protected_runApplication(const KURL& arg1,const QString& arg2) {
		return (pid_t) KDEDesktopMimeType::runApplication(arg1,arg2);
	}
	static pid_t protected_runLink(const KURL& arg1,const KSimpleConfig& arg2) {
		return (pid_t) KDEDesktopMimeType::runLink(arg1,arg2);
	}
	static pid_t protected_runMimeType(const KURL& arg1,const KSimpleConfig& arg2) {
		return (pid_t) KDEDesktopMimeType::runMimeType(arg1,arg2);
	}
	~KDEDesktopMimeTypeJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDEDesktopMimeType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KDEDesktopMimeType_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KDEDesktopMimeType_icon__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _url, jboolean _is_local)
{
	QString  _qstring;
static QString* _qstring__url = 0;
	_qstring = ((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->icon((const QString&)*(QString*) QtSupport::toQString(env, _url, &_qstring__url), (bool) _is_local);
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDEDesktopMimeType_pixmap__IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jint a, jint b, jint c, jobject d)
{
static QString* _qstring_d = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KDEDesktopMimeTypeJBridge*) QtSupport::getQt(env, obj))->protected_pixmap((KIcon::Group) a, (int) b, (int) c, (QString*) QtSupport::toQStringFromStringBuffer(env, d, &_qstring_d))), "org.kde.qt.QPixmap", TRUE);
	QtSupport::fromQStringToStringBuffer(env, _qstring_d, d);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDEDesktopMimeType_pixmap__Lorg_kde_koala_KURL_2I(JNIEnv* env, jobject obj, jobject _url, jint _group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (KIcon::Group) _group)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDEDesktopMimeType_pixmap__Lorg_kde_koala_KURL_2II(JNIEnv* env, jobject obj, jobject _url, jint _group, jint _force_size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (KIcon::Group) _group, (int) _force_size)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDEDesktopMimeType_pixmap__Lorg_kde_koala_KURL_2III(JNIEnv* env, jobject obj, jobject _url, jint _group, jint _force_size, jint _state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (KIcon::Group) _group, (int) _force_size, (int) _state)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDEDesktopMimeType_pixmap__Lorg_kde_koala_KURL_2IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject _url, jint _group, jint _force_size, jint _state, jobject _path)
{
static QString* _qstring__path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KDEDesktopMimeType*) QtSupport::getQt(env, obj))->pixmap((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (KIcon::Group) _group, (int) _force_size, (int) _state, (QString*) QtSupport::toQStringFromStringBuffer(env, _path, &_qstring__path))), "org.kde.qt.QPixmap", TRUE);
	QtSupport::fromQStringToStringBuffer(env, _qstring__path, _path);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KDEDesktopMimeType_runApplication(JNIEnv* env, jclass cls, jobject _url, jstring _serviceFile)
{
	(void) cls;
static QString* _qstring__serviceFile = 0;
	jint xret = (jint) KDEDesktopMimeTypeJBridge::protected_runApplication((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (const QString&)*(QString*) QtSupport::toQString(env, _serviceFile, &_qstring__serviceFile));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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 KSimpleConfig&)*(const KSimpleConfig*) QtSupport::getQt(env, cfg));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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 KSimpleConfig&)*(const KSimpleConfig*) QtSupport::getQt(env, cfg));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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 KSimpleConfig&)*(const KSimpleConfig*) QtSupport::getQt(env, cfg));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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;
}

