summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QMetaProperty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QMetaProperty.cpp')
-rw-r--r--qtjava/javalib/qtjava/QMetaProperty.cpp208
1 files changed, 208 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QMetaProperty.cpp b/qtjava/javalib/qtjava/QMetaProperty.cpp
new file mode 100644
index 00000000..190e0569
--- /dev/null
+++ b/qtjava/javalib/qtjava/QMetaProperty.cpp
@@ -0,0 +1,208 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <qstrlist.h>
+#include <qmetaobject.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/QMetaProperty.h>
+
+class QMetaPropertyJBridge : public QMetaProperty
+{
+public:
+ QMetaPropertyJBridge() : QMetaProperty() {};
+ ~QMetaPropertyJBridge() {QtSupport::qtKeyDeleted(this);}
+};
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QMetaProperty_clear(JNIEnv* env, jobject obj)
+{
+ ((QMetaProperty*) QtSupport::getQt(env, obj))->clear();
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_designable__(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->designable();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_designable__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->designable((QObject*) QtSupport::getQt(env, arg1));
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QMetaProperty_dispose(JNIEnv* env, jobject obj)
+{
+ Java_org_kde_qt_QMetaProperty_finalize(env, obj);
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QMetaProperty_enumKeys(JNIEnv* env, jobject obj)
+{
+ QStrList _qlist;
+ _qlist = ((QMetaProperty*) QtSupport::getQt(env, obj))->enumKeys();
+ return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QMetaProperty_finalize(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::allocatedInJavaWorld(env, obj)) {
+ delete (QMetaProperty*)QtSupport::getQt(env, obj);
+ QtSupport::setQt(env, obj, 0);
+ }
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QMetaProperty_id(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QMetaProperty*) QtSupport::getQt(env, obj))->id();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_isDisposed(JNIEnv* env, jobject obj)
+{
+ return (QtSupport::getQt(env, obj) == 0);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_isEnumType(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->isEnumType();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_isSetType(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->isSetType();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_isValid(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->isValid();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QMetaProperty_keyToValue(JNIEnv* env, jobject obj, jstring key)
+{
+static QCString* _qstring_key = 0;
+ jint xret = (jint) ((QMetaProperty*) QtSupport::getQt(env, obj))->keyToValue((const char*) QtSupport::toCharString(env, key, &_qstring_key));
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QMetaProperty_keysToValue(JNIEnv* env, jobject obj, jobjectArray keys)
+{
+static QStrList* _qlist_keys = 0;
+ jint xret = (jint) ((QMetaProperty*) QtSupport::getQt(env, obj))->keysToValue((const QStrList&)*(QStrList*) QtSupport::toQStrList(env, keys, &_qlist_keys));
+ return xret;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QMetaProperty_name(JNIEnv* env, jobject obj)
+{
+ const char* _qstring;
+ _qstring = ((QMetaProperty*) QtSupport::getQt(env, obj))->name();
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QMetaProperty_newQMetaProperty(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QMetaPropertyJBridge());
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_reset(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->reset((QObject*) QtSupport::getQt(env, arg1));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_scriptable__(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->scriptable();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_scriptable__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->scriptable((QObject*) QtSupport::getQt(env, arg1));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_stdSet(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->stdSet();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_stored__(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->stored();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_stored__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->stored((QObject*) QtSupport::getQt(env, arg1));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_testFlags(JNIEnv* env, jobject obj, jint f)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->testFlags((uint) f);
+ return xret;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QMetaProperty_type(JNIEnv* env, jobject obj)
+{
+ const char* _qstring;
+ _qstring = ((QMetaProperty*) QtSupport::getQt(env, obj))->type();
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QMetaProperty_valueToKey(JNIEnv* env, jobject obj, jint value)
+{
+ const char* _qstring;
+ _qstring = ((QMetaProperty*) QtSupport::getQt(env, obj))->valueToKey((int) value);
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QMetaProperty_valueToKeys(JNIEnv* env, jobject obj, jint value)
+{
+ QStrList _qlist;
+ _qlist = ((QMetaProperty*) QtSupport::getQt(env, obj))->valueToKeys((int) value);
+ return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QMetaProperty_writable(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QMetaProperty*) QtSupport::getQt(env, obj))->writable();
+ return xret;
+}
+