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

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

class KMimeSourceFactoryJBridge : public KMimeSourceFactory
{
public:
	KMimeSourceFactoryJBridge(KIconLoader* arg1) : KMimeSourceFactory(arg1) {};
	KMimeSourceFactoryJBridge() : KMimeSourceFactory() {};
	~KMimeSourceFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KMimeSourceFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KMimeSourceFactory_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMimeSourceFactory_makeAbsolute(JNIEnv* env, jobject obj, jstring abs_or_rel_name, jstring context)
{
	QString  _qstring;
static QString* _qstring_abs_or_rel_name = 0;
static QString* _qstring_context = 0;
	_qstring = ((KMimeSourceFactory*) QtSupport::getQt(env, obj))->makeAbsolute((const QString&)*(QString*) QtSupport::toQString(env, abs_or_rel_name, &_qstring_abs_or_rel_name), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

