//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdatastream.h>
#include <kmimetype.h>

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

class KExecMimeTypeJBridge : public KExecMimeType
{
public:
	KExecMimeTypeJBridge(KDesktopFile* arg1) : KExecMimeType(arg1) {};
	KExecMimeTypeJBridge(QDataStream& arg1,int arg2) : KExecMimeType(arg1,arg2) {};
	~KExecMimeTypeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KExecMimeType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KExecMimeType_finalize(env, obj);
	return;
}

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

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

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

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

