diff options
Diffstat (limited to 'kdejava/koala/kdejava/KStaticDeleterBase.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KStaticDeleterBase.cpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/kdejava/koala/kdejava/KStaticDeleterBase.cpp b/kdejava/koala/kdejava/KStaticDeleterBase.cpp new file mode 100644 index 00000000..e451f5dd --- /dev/null +++ b/kdejava/koala/kdejava/KStaticDeleterBase.cpp @@ -0,0 +1,58 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <kstaticdeleter.h> + +#include <qtjava/QtSupport.h> +#include <kdejava/KDESupport.h> +#include <kdejava/KStaticDeleterBase.h> + +class KStaticDeleterBaseJBridge : public KStaticDeleterBase +{ +public: + void public_destructObject() { + KStaticDeleterBase::destructObject(); + return; + } + KStaticDeleterBaseJBridge() : KStaticDeleterBase() {}; + ~KStaticDeleterBaseJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_kde_koala_KStaticDeleterBase_destructObject(JNIEnv* env, jobject obj) +{ + ((KStaticDeleterBaseJBridge*) QtSupport::getQt(env, obj))->public_destructObject(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_KStaticDeleterBase_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_koala_KStaticDeleterBase_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_KStaticDeleterBase_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (KStaticDeleterBase*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_KStaticDeleterBase_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_KStaticDeleterBase_newKStaticDeleterBase(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KStaticDeleterBaseJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + |