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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KMimeMagicResult_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KMimeMagicResult_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KMimeMagicResult_setAccuracy(JNIEnv* env, jobject obj, jint _accuracy)
{
	((KMimeMagicResult*) QtSupport::getQt(env, obj))->setAccuracy((int) _accuracy);
	return;
}

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

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

