diff options
Diffstat (limited to 'kdejava/koala/kdejava/Event.cpp')
-rw-r--r-- | kdejava/koala/kdejava/Event.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/kdejava/koala/kdejava/Event.cpp b/kdejava/koala/kdejava/Event.cpp new file mode 100644 index 00000000..564374a9 --- /dev/null +++ b/kdejava/koala/kdejava/Event.cpp @@ -0,0 +1,49 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <kparts/event.h> + +#include <qtjava/QtSupport.h> +#include <kdejava/KDESupport.h> +#include <kdejava/Event.h> + +class EventJBridge : public KParts::Event +{ +public: + EventJBridge(const char* arg1) : KParts::Event(arg1) {}; +}; + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_Event_eventName(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((KParts::Event*) QtSupport::getQt(env, obj))->eventName(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_Event_newEvent(JNIEnv* env, jobject obj, jstring eventName) +{ +static QCString* _qstring_eventName = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new EventJBridge((const char*) QtSupport::toCharString(env, eventName, &_qstring_eventName))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_Event_test__Lorg_kde_qt_QEvent_2(JNIEnv* env, jclass cls, jobject event) +{ + (void) cls; + jboolean xret = (jboolean) EventJBridge::test((const QEvent*) QtSupport::getQt(env, event)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_Event_test__Lorg_kde_qt_QEvent_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject event, jstring name) +{ + (void) cls; +static QCString* _qstring_name = 0; + jboolean xret = (jboolean) EventJBridge::test((const QEvent*) QtSupport::getQt(env, event), (const char*) QtSupport::toCharString(env, name, &_qstring_name)); + return xret; +} + |