//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <kmimemagic.h>

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

class KMimeMagicResultJBridge : public KMimeMagicResult
{
public:
	KMimeMagicResultJBridge() : KMimeMagicResult() {};
	~KMimeMagicResultJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KMimeMagicResult_accuracy(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KMimeMagicResult*) QtSupport::getQt(env, obj))->accuracy();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeMagicResult_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KMimeMagicResult_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KMimeMagicResult_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KMimeMagicResult*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeMagicResult_mimeType(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KMimeMagicResult*) QtSupport::getQt(env, obj))->mimeType();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeMagicResult_setAccuracy(JNIEnv* env, jobject obj, jint _accuracy)
{
	((KMimeMagicResult*) QtSupport::getQt(env, obj))->setAccuracy((int) _accuracy);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeMagicResult_setInvalid(JNIEnv* env, jobject obj)
{
	((KMimeMagicResult*) QtSupport::getQt(env, obj))->setInvalid();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeMagicResult_setMimeType(JNIEnv* env, jobject obj, jstring _mime)
{
static TQString* _qstring__mime = 0;
	((KMimeMagicResult*) QtSupport::getQt(env, obj))->setMimeType((const TQString&)*(TQString*) QtSupport::toTQString(env, _mime, &_qstring__mime));
	return;
}

