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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KExecMimeType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KExecMimeType_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KExecMimeType_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

