summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QImageFormatType.cpp
blob: 30e52698c86602f7d2751b127753c3bda13902e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqasyncimageio.h>

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

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

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