diff options
Diffstat (limited to 'kdejava/koala/kdejava/KImageIO.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KImageIO.cpp | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/kdejava/koala/kdejava/KImageIO.cpp b/kdejava/koala/kdejava/KImageIO.cpp new file mode 100644 index 00000000..4ac92db7 --- /dev/null +++ b/kdejava/koala/kdejava/KImageIO.cpp @@ -0,0 +1,188 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <kimageio.h> +#include <qstring.h> +#include <qstringlist.h> + +#include <qtjava/QtSupport.h> +#include <kdejava/KDESupport.h> +#include <kdejava/KImageIO.h> + +class KImageIOJBridge : public KImageIO +{ +public: + KImageIOJBridge() : KImageIO() {}; + ~KImageIOJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_KImageIO_canRead(JNIEnv* env, jclass cls, jstring type) +{ + (void) cls; +static QString* _qstring_type = 0; + jboolean xret = (jboolean) KImageIOJBridge::canRead((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_KImageIO_canWrite(JNIEnv* env, jclass cls, jstring type) +{ + (void) cls; +static QString* _qstring_type = 0; + jboolean xret = (jboolean) KImageIOJBridge::canWrite((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type)); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_KImageIO_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_koala_KImageIO_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_KImageIO_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (KImageIO*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_KImageIO_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_KImageIO_isSupported__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring _mimeType) +{ + (void) cls; +static QString* _qstring__mimeType = 0; + jboolean xret = (jboolean) KImageIOJBridge::isSupported((const QString&)*(QString*) QtSupport::toQString(env, _mimeType, &_qstring__mimeType)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_KImageIO_isSupported__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring _mimeType, jint _mode) +{ + (void) cls; +static QString* _qstring__mimeType = 0; + jboolean xret = (jboolean) KImageIOJBridge::isSupported((const QString&)*(QString*) QtSupport::toQString(env, _mimeType, &_qstring__mimeType), (KImageIO::Mode) _mode); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_KImageIO_mimeType(JNIEnv* env, jclass cls, jstring _filename) +{ + QString _qstring; + (void) cls; +static QString* _qstring__filename = 0; + _qstring = KImageIOJBridge::mimeType((const QString&)*(QString*) QtSupport::toQString(env, _filename, &_qstring__filename)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_KImageIO_mimeTypes__(JNIEnv* env, jclass cls) +{ + QStringList _qlist; + (void) cls; + _qlist = KImageIOJBridge::mimeTypes(); + return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_KImageIO_mimeTypes__I(JNIEnv* env, jclass cls, jint mode) +{ + QStringList _qlist; + (void) cls; + _qlist = KImageIOJBridge::mimeTypes((KImageIO::Mode) mode); + return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_KImageIO_newKImageIO(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KImageIOJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_KImageIO_pattern__(JNIEnv* env, jclass cls) +{ + QString _qstring; + (void) cls; + _qstring = KImageIOJBridge::pattern(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_KImageIO_pattern__I(JNIEnv* env, jclass cls, jint mode) +{ + QString _qstring; + (void) cls; + _qstring = KImageIOJBridge::pattern((KImageIO::Mode) mode); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_KImageIO_registerFormats(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + KImageIOJBridge::registerFormats(); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_KImageIO_suffix(JNIEnv* env, jclass cls, jstring type) +{ + QString _qstring; + (void) cls; +static QString* _qstring_type = 0; + _qstring = KImageIOJBridge::suffix((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_KImageIO_typeForMime(JNIEnv* env, jclass cls, jstring mimeType) +{ + QString _qstring; + (void) cls; +static QString* _qstring_mimeType = 0; + _qstring = KImageIOJBridge::typeForMime((const QString&)*(QString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_KImageIO_type(JNIEnv* env, jclass cls, jstring filename) +{ + QString _qstring; + (void) cls; +static QString* _qstring_filename = 0; + _qstring = KImageIOJBridge::type((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_KImageIO_types__(JNIEnv* env, jclass cls) +{ + QStringList _qlist; + (void) cls; + _qlist = KImageIOJBridge::types(); + return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_KImageIO_types__I(JNIEnv* env, jclass cls, jint mode) +{ + QStringList _qlist; + (void) cls; + _qlist = KImageIOJBridge::types((KImageIO::Mode) mode); + return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist); +} + |