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

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

class QImageIOJBridge : public QImageIO
{
public:
	QImageIOJBridge() : QImageIO() {};
	QImageIOJBridge(QIODevice* arg1,const char* arg2) : QImageIO(arg1,arg2) {};
	QImageIOJBridge(const QString& arg1,const char* arg2) : QImageIO(arg1,arg2) {};
	~QImageIOJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_description(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QImageIO*) QtSupport::getQt(env, obj))->description();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QImageIO_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_fileName(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QImageIO*) QtSupport::getQt(env, obj))->fileName();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT jfloat JNICALL
Java_org_kde_qt_QImageIO_gamma(JNIEnv* env, jobject obj)
{
	jfloat xret = (jfloat) ((QImageIO*) QtSupport::getQt(env, obj))->gamma();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_imageFormat__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fileName)
{
	const char* _qstring;
	(void) cls;
static QString* _qstring_fileName = 0;
	_qstring = QImageIOJBridge::imageFormat((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QImageIO_imageFormat__Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jclass cls, jobject arg1)
{
	const char* _qstring;
	(void) cls;
	_qstring = QImageIOJBridge::imageFormat((QIODevice*) QtSupport::getQt(env, arg1));
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_image(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QImage *) &((QImageIO*) QtSupport::getQt(env, obj))->image(), "org.kde.qt.QImage");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_inputFormats(JNIEnv* env, jclass cls)
{
	QStrList  _qlist;
	(void) cls;
	_qlist = QImageIOJBridge::inputFormats();
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_ioDevice(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QImageIO*) QtSupport::getQt(env, obj))->ioDevice(), "org.kde.qt.QIODeviceInterface");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_newQImageIO__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageIOJBridge((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_newQImageIO__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject ioDevice, jstring format)
{
static QCString* _qstring_format = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QImageIOJBridge((QIODevice*) QtSupport::getQt(env, ioDevice), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QImageIO_outputFormats(JNIEnv* env, jclass cls)
{
	QStrList  _qlist;
	(void) cls;
	_qlist = QImageIOJBridge::outputFormats();
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImageIO_quality(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImageIO*) QtSupport::getQt(env, obj))->quality();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImageIO_read(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QImageIO*) QtSupport::getQt(env, obj))->read();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setFormat(JNIEnv* env, jobject obj, jstring arg1)
{
static QCString* _qstring_arg1 = 0;
	((QImageIO*) QtSupport::getQt(env, obj))->setFormat((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setGamma(JNIEnv* env, jobject obj, jfloat arg1)
{
	((QImageIO*) QtSupport::getQt(env, obj))->setGamma((float) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setIODevice(JNIEnv* env, jobject obj, jobject arg1)
{
	((QImageIO*) QtSupport::getQt(env, obj))->setIODevice((QIODevice*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setImage(JNIEnv* env, jobject obj, jobject arg1)
{
	((QImageIO*) QtSupport::getQt(env, obj))->setImage((const QImage&)*(const QImage*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setParameters(JNIEnv* env, jobject obj, jstring arg1)
{
static QCString* _qstring_arg1 = 0;
	((QImageIO*) QtSupport::getQt(env, obj))->setParameters((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setQuality(JNIEnv* env, jobject obj, jint arg1)
{
	((QImageIO*) QtSupport::getQt(env, obj))->setQuality((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageIO_setStatus(JNIEnv* env, jobject obj, jint arg1)
{
	((QImageIO*) QtSupport::getQt(env, obj))->setStatus((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QImageIO_status(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QImageIO*) QtSupport::getQt(env, obj))->status();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QImageIO_write(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QImageIO*) QtSupport::getQt(env, obj))->write();
	return xret;
}

