diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QClipboard.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QClipboard.cpp | 237 |
1 files changed, 237 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QClipboard.cpp b/qtjava/javalib/qtjava/QClipboard.cpp new file mode 100644 index 00000000..c655e4bb --- /dev/null +++ b/qtjava/javalib/qtjava/QClipboard.cpp @@ -0,0 +1,237 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <qclipboard.h> +#include <qpixmap.h> +#include <qimage.h> +#include <qstring.h> +#include <qcstring.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/QClipboard.h> + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QClipboard_className(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->className(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_clear__(JNIEnv* env, jobject obj) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->clear(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_clear__I(JNIEnv* env, jobject obj, jint mode) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->clear((QClipboard::Mode) mode); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QClipboard_data__(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QClipboard*) QtSupport::getQt(env, obj))->data(), "org.kde.qt.QMimeSourceInterface"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QClipboard_data__I(JNIEnv* env, jobject obj, jint mode) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QClipboard*) QtSupport::getQt(env, obj))->data((QClipboard::Mode) mode), "org.kde.qt.QMimeSourceInterface"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QClipboard_image__(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QClipboard*) QtSupport::getQt(env, obj))->image()), "org.kde.qt.QImage", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QClipboard_image__I(JNIEnv* env, jobject obj, jint mode) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new QImage(((QClipboard*) QtSupport::getQt(env, obj))->image((QClipboard::Mode) mode)), "org.kde.qt.QImage", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QClipboard_metaObject(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QClipboard*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject"); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QClipboard_ownsClipboard(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->ownsClipboard(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QClipboard_ownsSelection(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->ownsSelection(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QClipboard_pixmap__(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((QClipboard*) QtSupport::getQt(env, obj))->pixmap()), "org.kde.qt.QPixmap", TRUE); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QClipboard_pixmap__I(JNIEnv* env, jobject obj, jint mode) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((QClipboard*) QtSupport::getQt(env, obj))->pixmap((QClipboard::Mode) mode)), "org.kde.qt.QPixmap", TRUE); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QClipboard_selectionModeEnabled(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->selectionModeEnabled(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setData__Lorg_kde_qt_QMimeSourceInterface_2(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->setData((QMimeSource*) QtSupport::mimeSource(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setData__Lorg_kde_qt_QMimeSourceInterface_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->setData((QMimeSource*) QtSupport::mimeSource(env, arg1), (QClipboard::Mode) mode); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setImage__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->setImage((const QImage&)*(const QImage*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setImage__Lorg_kde_qt_QImage_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->setImage((const QImage&)*(const QImage*) QtSupport::getQt(env, arg1), (QClipboard::Mode) mode); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setPixmap__Lorg_kde_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject arg1) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->setPixmap((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setPixmap__Lorg_kde_qt_QPixmap_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->setPixmap((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, arg1), (QClipboard::Mode) mode); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setSelectionMode(JNIEnv* env, jobject obj, jboolean enable) +{ + ((QClipboard*) QtSupport::getQt(env, obj))->setSelectionMode((bool) enable); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setText__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1) +{ +static QString* _qstring_arg1 = 0; + ((QClipboard*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QClipboard_setText__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint mode) +{ +static QString* _qstring_arg1 = 0; + ((QClipboard*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (QClipboard::Mode) mode); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QClipboard_supportsSelection(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((QClipboard*) QtSupport::getQt(env, obj))->supportsSelection(); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QClipboard_text__(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QClipboard_text__I(JNIEnv* env, jobject obj, jint mode) +{ + QString _qstring; + _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text((QClipboard::Mode) mode); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QClipboard_text__Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject subtype) +{ + QString _qstring; +static QCString* _qcstring_subtype = 0; + if (_qcstring_subtype == 0) { + _qcstring_subtype = new QCString(); + } + _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text((QCString&)*(QCString*) _qcstring_subtype); + QtSupport::fromQCStringToStringBuffer(env, _qcstring_subtype, subtype); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QClipboard_text__Ljava_lang_StringBuffer_2I(JNIEnv* env, jobject obj, jobject subtype, jint mode) +{ + QString _qstring; +static QCString* _qcstring_subtype = 0; + if (_qcstring_subtype == 0) { + _qcstring_subtype = new QCString(); + } + _qstring = ((QClipboard*) QtSupport::getQt(env, obj))->text((QCString&)*(QCString*) _qcstring_subtype, (QClipboard::Mode) mode); + QtSupport::fromQCStringToStringBuffer(env, _qcstring_subtype, subtype); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QClipboard_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1) +{ + QString _qstring; + (void) cls; +static QCString* _qstring_arg1 = 0; + _qstring = QClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QClipboard_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2) +{ + QString _qstring; + (void) cls; +static QCString* _qstring_arg1 = 0; +static QCString* _qstring_arg2 = 0; + _qstring = QClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2)); + return QtSupport::fromQString(env, &_qstring); +} + |