//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qstringlist.h>
#include <qpixmap.h>
#include <qimage.h>
#include <qmime.h>

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

class QMimeSourceFactoryJBridge : public QMimeSourceFactory
{
public:
	QMimeSourceFactoryJBridge() : QMimeSourceFactory() {};
	~QMimeSourceFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_addFactory(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	QMimeSourceFactoryJBridge::addFactory((QMimeSourceFactory*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_addFilePath(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	((QMimeSourceFactory*) QtSupport::getQt(env, obj))->addFilePath((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMimeSourceFactory_data__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring abs_name)
{
static QString* _qstring_abs_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMimeSourceFactory*) QtSupport::getQt(env, obj))->data((const QString&)*(QString*) QtSupport::toQString(env, abs_name, &_qstring_abs_name)), "org.kde.qt.QMimeSourceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMimeSourceFactory_data__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring abs_or_rel_name, jstring context)
{
static QString* _qstring_abs_or_rel_name = 0;
static QString* _qstring_context = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMimeSourceFactory*) QtSupport::getQt(env, obj))->data((const QString&)*(QString*) QtSupport::toQString(env, abs_or_rel_name, &_qstring_abs_or_rel_name), (const QString&)*(QString*) QtSupport::toQString(env, context, &_qstring_context)), "org.kde.qt.QMimeSourceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMimeSourceFactory_defaultFactory(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QMimeSourceFactoryJBridge::defaultFactory(), "org.kde.qt.QMimeSourceFactory");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QMimeSourceFactory_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMimeSourceFactory_filePath(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QMimeSourceFactory*) QtSupport::getQt(env, obj))->filePath();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_removeFactory(JNIEnv* env, jclass cls, jobject f)
{
	(void) cls;
	QMimeSourceFactoryJBridge::removeFactory((QMimeSourceFactory*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_setData(JNIEnv* env, jobject obj, jstring abs_name, jobject data)
{
static QString* _qstring_abs_name = 0;
	((QMimeSourceFactory*) QtSupport::getQt(env, obj))->setData((const QString&)*(QString*) QtSupport::toQString(env, abs_name, &_qstring_abs_name), (QMimeSource*) QtSupport::mimeSource(env, data));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_setDefaultFactory(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QMimeSourceFactoryJBridge::setDefaultFactory((QMimeSourceFactory*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_setExtensionType(JNIEnv* env, jobject obj, jstring ext, jstring mimetype)
{
static QString* _qstring_ext = 0;
static QCString* _qstring_mimetype = 0;
	((QMimeSourceFactory*) QtSupport::getQt(env, obj))->setExtensionType((const QString&)*(QString*) QtSupport::toQString(env, ext, &_qstring_ext), (const char*) QtSupport::toCharString(env, mimetype, &_qstring_mimetype));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_setFilePath(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static QStringList* _qlist_arg1 = 0;
	((QMimeSourceFactory*) QtSupport::getQt(env, obj))->setFilePath((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_setImage(JNIEnv* env, jobject obj, jstring abs_name, jobject im)
{
static QString* _qstring_abs_name = 0;
	((QMimeSourceFactory*) QtSupport::getQt(env, obj))->setImage((const QString&)*(QString*) QtSupport::toQString(env, abs_name, &_qstring_abs_name), (const QImage&)*(const QImage*) QtSupport::getQt(env, im));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_setPixmap(JNIEnv* env, jobject obj, jstring abs_name, jobject pm)
{
static QString* _qstring_abs_name = 0;
	((QMimeSourceFactory*) QtSupport::getQt(env, obj))->setPixmap((const QString&)*(QString*) QtSupport::toQString(env, abs_name, &_qstring_abs_name), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, pm));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMimeSourceFactory_setText(JNIEnv* env, jobject obj, jstring abs_name, jstring text)
{
static QString* _qstring_abs_name = 0;
static QString* _qstring_text = 0;
	((QMimeSourceFactory*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, abs_name, &_qstring_abs_name), (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMimeSourceFactory_takeDefaultFactory(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QMimeSourceFactoryJBridge::takeDefaultFactory(), "org.kde.qt.QMimeSourceFactory");
	return xret;
}

