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

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

class KImageIOJBridge : public KImageIO
{
public:
	KImageIOJBridge() : KImageIO() {};
	~KImageIOJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KImageIO_canRead(JNIEnv* env, jclass cls, jstring type)
{
	(void) cls;
static TQString* _qstring_type = 0;
	jboolean xret = (jboolean) KImageIOJBridge::canRead((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KImageIO_canWrite(JNIEnv* env, jclass cls, jstring type)
{
	(void) cls;
static TQString* _qstring_type = 0;
	jboolean xret = (jboolean) KImageIOJBridge::canWrite((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KImageIO_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KImageIO_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KImageIO_isSupported__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring _mimeType)
{
	(void) cls;
static TQString* _qstring__mimeType = 0;
	jboolean xret = (jboolean) KImageIOJBridge::isSupported((const TQString&)*(TQString*) QtSupport::toTQString(env, _mimeType, &_qstring__mimeType));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KImageIO_isSupported__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring _mimeType, jint _mode)
{
	(void) cls;
static TQString* _qstring__mimeType = 0;
	jboolean xret = (jboolean) KImageIOJBridge::isSupported((const TQString&)*(TQString*) QtSupport::toTQString(env, _mimeType, &_qstring__mimeType), (KImageIO::Mode) _mode);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KImageIO_mimeType(JNIEnv* env, jclass cls, jstring _filename)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring__filename = 0;
	_qstring = KImageIOJBridge::mimeType((const TQString&)*(TQString*) QtSupport::toTQString(env, _filename, &_qstring__filename));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KImageIO_mimeTypes__(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::mimeTypes();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KImageIO_mimeTypes__I(JNIEnv* env, jclass cls, jint mode)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::mimeTypes((KImageIO::Mode) mode);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KImageIO_pattern__(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KImageIOJBridge::pattern();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KImageIO_pattern__I(JNIEnv* env, jclass cls, jint mode)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KImageIOJBridge::pattern((KImageIO::Mode) mode);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KImageIO_registerFormats(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KImageIOJBridge::registerFormats();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KImageIO_suffix(JNIEnv* env, jclass cls, jstring type)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_type = 0;
	_qstring = KImageIOJBridge::suffix((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KImageIO_typeForMime(JNIEnv* env, jclass cls, jstring mimeType)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_mimeType = 0;
	_qstring = KImageIOJBridge::typeForMime((const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KImageIO_type(JNIEnv* env, jclass cls, jstring filename)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_filename = 0;
	_qstring = KImageIOJBridge::type((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KImageIO_types__(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::types();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KImageIO_types__I(JNIEnv* env, jclass cls, jint mode)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KImageIOJBridge::types((KImageIO::Mode) mode);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

