summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QImageFormat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QImageFormat.cpp')
-rw-r--r--qtjava/javalib/qtjava/QImageFormat.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QImageFormat.cpp b/qtjava/javalib/qtjava/QImageFormat.cpp
new file mode 100644
index 00000000..de23777a
--- /dev/null
+++ b/qtjava/javalib/qtjava/QImageFormat.cpp
@@ -0,0 +1,15 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <qasyncimageio.h>
+#include <qimage.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/QImageFormat.h>
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImageFormat_decode(JNIEnv* env, jobject obj, jobject img, jobject consumer, jcharArray buffer, jint length)
+{
+static QByteArray* _qbytearray_buffer = 0;
+ jint xret = (jint) ((QImageFormat*) QtSupport::getQt(env, obj))->decode((QImage&)*(QImage*) QtSupport::getQt(env, img), (QImageConsumer*) QtSupport::getQt(env, consumer), (const uchar*) QtSupport::toUcharArray(env, buffer, &_qbytearray_buffer), (int) length);
+ return xret;
+}
+