//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqmime.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQMimeSourceFactory.h>

class TQMimeSourceFactoryJBridge : public TQMimeSourceFactory
{
public:
	TQMimeSourceFactoryJBridge() : TQMimeSourceFactory() {};
	~TQMimeSourceFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_addFactory(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	TQMimeSourceFactoryJBridge::addFactory((TQMimeSourceFactory*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_addFilePath(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->addFilePath((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_data__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring abs_name)
{
static TQString* _qstring_abs_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->data((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name)), "org.trinitydesktop.qt.TQMimeSourceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_data__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring abs_or_rel_name, jstring context)
{
static TQString* _qstring_abs_or_rel_name = 0;
static TQString* _qstring_context = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->data((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_or_rel_name, &_qstring_abs_or_rel_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, context, &_qstring_context)), "org.trinitydesktop.qt.TQMimeSourceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_defaultFactory(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQMimeSourceFactoryJBridge::defaultFactory(), "org.trinitydesktop.qt.TQMimeSourceFactory");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QMimeSourceFactory_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_filePath(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->filePath();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_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 = ((TQMimeSourceFactory*) 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_qt_QMimeSourceFactory_newTQMimeSourceFactory(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMimeSourceFactoryJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_removeFactory(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	TQMimeSourceFactoryJBridge::removeFactory((TQMimeSourceFactory*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_setData(JNIEnv* env, jobject obj, jstring abs_name, jobject data)
{
static TQString* _qstring_abs_name = 0;
	((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->setData((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name), (TQMimeSource*) QtSupport::mimeSource(env, data));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_setDefaultFactory(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQMimeSourceFactoryJBridge::setDefaultFactory((TQMimeSourceFactory*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_setExtensionType(JNIEnv* env, jobject obj, jstring ext, jstring mimetype)
{
static TQString* _qstring_ext = 0;
static TQCString* _qstring_mimetype = 0;
	((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->setExtensionType((const TQString&)*(TQString*) QtSupport::toTQString(env, ext, &_qstring_ext), (const char*) QtSupport::toCharString(env, mimetype, &_qstring_mimetype));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_setFilePath(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static TQStringList* _qlist_arg1 = 0;
	((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->setFilePath((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_setImage(JNIEnv* env, jobject obj, jstring abs_name, jobject im)
{
static TQString* _qstring_abs_name = 0;
	((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->setImage((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name), (const TQImage&)*(const TQImage*) QtSupport::getQt(env, im));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_setPixmap(JNIEnv* env, jobject obj, jstring abs_name, jobject pm)
{
static TQString* _qstring_abs_name = 0;
	((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->setPixmap((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pm));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_setText(JNIEnv* env, jobject obj, jstring abs_name, jstring text)
{
static TQString* _qstring_abs_name = 0;
static TQString* _qstring_text = 0;
	((TQMimeSourceFactory*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMimeSourceFactory_takeDefaultFactory(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQMimeSourceFactoryJBridge::takeDefaultFactory(), "org.trinitydesktop.qt.TQMimeSourceFactory");
	return xret;
}

