diff options
Diffstat (limited to 'tdejava/koala/tdejava/KRandomSequence.cpp')
-rw-r--r-- | tdejava/koala/tdejava/KRandomSequence.cpp | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/KRandomSequence.cpp b/tdejava/koala/tdejava/KRandomSequence.cpp new file mode 100644 index 00000000..c4709865 --- /dev/null +++ b/tdejava/koala/tdejava/KRandomSequence.cpp @@ -0,0 +1,111 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <krandomsequence.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/KRandomSequence.h> + +class KRandomSequenceJBridge : public KRandomSequence +{ +public: + KRandomSequenceJBridge(long arg1) : KRandomSequence(arg1) {}; + KRandomSequenceJBridge() : KRandomSequence() {}; + KRandomSequenceJBridge(const KRandomSequence& arg1) : KRandomSequence(arg1) {}; + ~KRandomSequenceJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_dispose(JNIEnv* env, jobject obj) +{ + Java_org_trinitydesktop_koala_KRandomSequence_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (KRandomSequence*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_getBool(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((KRandomSequence*) QtSupport::getQt(env, obj))->getBool(); + return xret; +} + +JNIEXPORT jdouble JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_getDouble(JNIEnv* env, jobject obj) +{ + jdouble xret = (jdouble) ((KRandomSequence*) QtSupport::getQt(env, obj))->getDouble(); + return xret; +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_getLong(JNIEnv* env, jobject obj, jlong max) +{ + jlong xret = (jlong) ((KRandomSequence*) QtSupport::getQt(env, obj))->getLong((unsigned long) max); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_modulate(JNIEnv* env, jobject obj, jint i) +{ + ((KRandomSequence*) QtSupport::getQt(env, obj))->modulate((int) i); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_newKRandomSequence__(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KRandomSequenceJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_newKRandomSequence__J(JNIEnv* env, jobject obj, jlong lngSeed) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KRandomSequenceJBridge((long) lngSeed)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_newKRandomSequence__Lorg_trinitydesktop_koala_KRandomSequence_2(JNIEnv* env, jobject obj, jobject a) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KRandomSequenceJBridge((const KRandomSequence&)*(const KRandomSequence*) QtSupport::getQt(env, a))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_setSeed__(JNIEnv* env, jobject obj) +{ + ((KRandomSequence*) QtSupport::getQt(env, obj))->setSeed(); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRandomSequence_setSeed__J(JNIEnv* env, jobject obj, jlong lngSeed) +{ + ((KRandomSequence*) QtSupport::getQt(env, obj))->setSeed((long) lngSeed); + return; +} + |