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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QImageFormatType_decoderFor(JNIEnv* env, jobject obj, jcharArray buffer, jint length)
{
static TQByteArray* _qbytearray_buffer = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQImageFormatType*) QtSupport::getQt(env, obj))->decoderFor((const uchar*) QtSupport::toUcharArray(env, buffer, &_qbytearray_buffer), (int) length), "org.trinitydesktop.qt.TQImageFormat");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QImageFormatType_formatName(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQImageFormatType*) QtSupport::getQt(env, obj))->formatName();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

