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

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

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

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

