diff options
Diffstat (limited to 'qtjava/javalib/qtjava/TQEvent.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/TQEvent.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQEvent.cpp b/qtjava/javalib/qtjava/TQEvent.cpp new file mode 100644 index 00000000..43c40add --- /dev/null +++ b/qtjava/javalib/qtjava/TQEvent.cpp @@ -0,0 +1,60 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <tqevent.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/TQEvent.h> + +class TQEventJBridge : public TQEvent +{ +public: + TQEventJBridge(TQEvent::Type arg1) : TQEvent(arg1) {}; + ~TQEventJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_kde_qt_QEvent_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_qt_QEvent_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QEvent_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (TQEvent*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QEvent_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QEvent_newTQEvent(JNIEnv* env, jobject obj, jint type) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQEventJBridge((TQEvent::Type) type)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QEvent_spontaneous(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQEvent*) QtSupport::getQt(env, obj))->spontaneous(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QEvent_type(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQEvent*) QtSupport::getQt(env, obj))->type(); + return xret; +} + |