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

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

class KMimeTypeJBridge : public KMimeType
{
public:
	KMimeTypeJBridge(const QString& arg1,const QString& arg2,const QString& arg3,const QString& arg4,const QStringList& arg5) : KMimeType(arg1,arg2,arg3,arg4,arg5) {};
	KMimeTypeJBridge(const QString& arg1) : KMimeType(arg1) {};
	KMimeTypeJBridge(KDesktopFile* arg1) : KMimeType(arg1) {};
	KMimeTypeJBridge(QDataStream& arg1,int arg2) : KMimeType(arg1,arg2) {};
	void protected_loadInternal(QDataStream& arg1) {
		KMimeType::loadInternal(arg1);
		return;
	}
	void protected_init(KDesktopFile* arg1) {
		KMimeType::init(arg1);
		return;
	}
	int protected_patternsAccuracy() {
		return (int) KMimeType::patternsAccuracy();
	}
	static void protected_errorMissingMimeType(const QString& 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_kde_koala_KMimeType_buildDefaultType(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KMimeTypeJBridge::protected_buildDefaultType();
	return;
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMimeType_defaultMimeType(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KMimeTypeJBridge::defaultMimeType();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMimeType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KMimeType_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KMimeType_iconForURL__Lorg_kde_koala_KURL_2(JNIEnv* env, jclass cls, jobject _url)
{
	QString  _qstring;
	(void) cls;
	_qstring = KMimeTypeJBridge::iconForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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 QString* _qstring__fullpath = 0;
static QString* _qstring__type = 0;
static QString* _qstring__icon = 0;
static QString* _qstring__comment = 0;
static QStringList* _qlist__patterns = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMimeTypeJBridge((const QString&)*(QString*) QtSupport::toQString(env, _fullpath, &_qstring__fullpath), (const QString&)*(QString*) QtSupport::toQString(env, _type, &_qstring__type), (const QString&)*(QString*) QtSupport::toQString(env, _icon, &_qstring__icon), (const QString&)*(QString*) QtSupport::toQString(env, _comment, &_qstring__comment), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, _patterns, &_qlist__patterns)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_pixmapForURL__Lorg_kde_koala_KURL_2JI(JNIEnv* env, jclass cls, jobject _url, jlong _mode, jint _group)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (KIcon::Group) _group)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_pixmapForURL__Lorg_kde_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 QPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (KIcon::Group) _group, (int) _force_size)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_pixmapForURL__Lorg_kde_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 QPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (KIcon::Group) _group, (int) _force_size, (int) _state)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_pixmapForURL__Lorg_kde_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 QString* _qstring__path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(KMimeTypeJBridge::pixmapForURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (mode_t) _mode, (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 jobject JNICALL
Java_org_kde_koala_KMimeType_pixmap__I(JNIEnv* env, jobject obj, jint group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((KIcon::Group) group)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_pixmap__II(JNIEnv* env, jobject obj, jint group, jint force_size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((KIcon::Group) group, (int) force_size)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_pixmap__III(JNIEnv* env, jobject obj, jint group, jint force_size, jint state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((KIcon::Group) group, (int) force_size, (int) state)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_pixmap__IIILjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jint group, jint force_size, jint state, jobject path)
{
static QString* _qstring_path = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KMimeType*) QtSupport::getQt(env, obj))->pixmap((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 jobject JNICALL
Java_org_kde_koala_KMimeType_pixmap__Lorg_kde_koala_KURL_2I(JNIEnv* env, jobject obj, jobject _url, jint _group)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KMimeType*) 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_KMimeType_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(((KMimeType*) 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_KMimeType_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(((KMimeType*) 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_KMimeType_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(((KMimeType*) 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 jobject JNICALL
Java_org_kde_koala_KMimeType_propertyNames(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KMimeType*) QtSupport::getQt(env, obj))->propertyNames();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMimeType_property(JNIEnv* env, jobject obj, jstring _name)
{
static QString* _qstring__name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QVariant(((KMimeType*) QtSupport::getQt(env, obj))->property((const QString&)*(QString*) QtSupport::toQString(env, _name, &_qstring__name))), "org.kde.qt.QVariant", TRUE);
	return xret;
}

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

