diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /qtjava/javalib/qtjava/QImageFormatType.cpp | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtjava/javalib/qtjava/QImageFormatType.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QImageFormatType.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QImageFormatType.cpp b/qtjava/javalib/qtjava/QImageFormatType.cpp new file mode 100644 index 00000000..90d274e2 --- /dev/null +++ b/qtjava/javalib/qtjava/QImageFormatType.cpp @@ -0,0 +1,22 @@ +//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); +} + |