diff options
Diffstat (limited to 'tdejava/koala/tdejava/DomShared.cpp')
-rw-r--r-- | tdejava/koala/tdejava/DomShared.cpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/DomShared.cpp b/tdejava/koala/tdejava/DomShared.cpp new file mode 100644 index 00000000..3a542c01 --- /dev/null +++ b/tdejava/koala/tdejava/DomShared.cpp @@ -0,0 +1,58 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <dom/dom_misc.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/DomShared.h> + +class DomSharedJBridge : public DOM::DomShared +{ +public: + DomSharedJBridge() : DOM::DomShared() {}; +}; + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_DomShared_deleteMe(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((DOM::DomShared*) QtSupport::getQt(env, obj))->deleteMe(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_DomShared_deref(JNIEnv* env, jobject obj) +{ + ((DOM::DomShared*) QtSupport::getQt(env, obj))->deref(); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_DomShared_hasOneRef(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((DOM::DomShared*) QtSupport::getQt(env, obj))->hasOneRef(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_DomShared_newDomShared(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new DomSharedJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_DomShared_refCount(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((DOM::DomShared*) QtSupport::getQt(env, obj))->refCount(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_DomShared_ref(JNIEnv* env, jobject obj) +{ + ((DOM::DomShared*) QtSupport::getQt(env, obj))->ref(); + return; +} + |