summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/TQLibrary.cpp')
-rw-r--r--qtjava/javalib/qtjava/TQLibrary.cpp91
1 files changed, 91 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQLibrary.cpp b/qtjava/javalib/qtjava/TQLibrary.cpp
new file mode 100644
index 00000000..2b087f8a
--- /dev/null
+++ b/qtjava/javalib/qtjava/TQLibrary.cpp
@@ -0,0 +1,91 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <tqlibrary.h>
+#include <tqstring.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/TQLibrary.h>
+
+class TQLibraryJBridge : public TQLibrary
+{
+public:
+ TQLibraryJBridge(const TQString& arg1) : TQLibrary(arg1) {};
+ ~TQLibraryJBridge() {QtSupport::qtKeyDeleted(this);}
+};
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QLibrary_autoUnload(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQLibrary*) QtSupport::getQt(env, obj))->autoUnload();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QLibrary_dispose(JNIEnv* env, jobject obj)
+{
+ Java_org_kde_qt_QLibrary_finalize(env, obj);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QLibrary_finalize(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::allocatedInJavaWorld(env, obj)) {
+ delete (TQLibrary*)QtSupport::getQt(env, obj);
+ QtSupport::setQt(env, obj, 0);
+ }
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QLibrary_isDisposed(JNIEnv* env, jobject obj)
+{
+ return (QtSupport::getQt(env, obj) == 0);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QLibrary_isLoaded(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQLibrary*) QtSupport::getQt(env, obj))->isLoaded();
+ return xret;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QLibrary_library(JNIEnv* env, jobject obj)
+{
+ TQString _qstring;
+ _qstring = ((TQLibrary*) QtSupport::getQt(env, obj))->library();
+ return QtSupport::fromTQString(env, &_qstring);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QLibrary_load(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQLibrary*) QtSupport::getQt(env, obj))->load();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QLibrary_newTQLibrary(JNIEnv* env, jobject obj, jstring filename)
+{
+static TQString* _qstring_filename = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQLibraryJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QLibrary_setAutoUnload(JNIEnv* env, jobject obj, jboolean enable)
+{
+ ((TQLibrary*) QtSupport::getQt(env, obj))->setAutoUnload((bool) enable);
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QLibrary_unload(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQLibrary*) QtSupport::getQt(env, obj))->unload();
+ return xret;
+}
+