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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeSourceFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KMimeSourceFactory_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KMimeSourceFactory_newKMimeSourceFactory__Lorg_trinitydesktop_koala_TDEIconLoader_2(JNIEnv* env, jobject obj, jobject loader)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMimeSourceFactoryJBridge((TDEIconLoader*) QtSupport::getQt(env, loader)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

