summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QSqlPropertyMap.cpp
blob: 5f42834bd1f692e62a6bc2c7c94dceed4c929a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqvariant.h>
#include <tqsqlpropertymap.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQSqlPropertyMap.h>

class TQSqlPropertyMapJBridge : public TQSqlPropertyMap
{
public:
	TQSqlPropertyMapJBridge() : TTQSqlPropertyMap() {};
	~TQSqlPropertyMapJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlPropertyMap_defaultMap(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlPropertyMapJBridge::defaultMap(), "org.kde.qt.TTQSqlPropertyMap");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSqlPropertyMap_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TTQSqlPropertyMap*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_insert(JNIEnv* env, jobject obj, jstring classname, jstring property)
{
static TTQString* _qstring_classname = 0;
static TTQString* _qstring_property = 0;
	((TTQSqlPropertyMap*) QtSupport::getQt(env, obj))->insert((const TTQString&)*(TTQString*) QtSupport::toTQString(env, classname, &_qstring_classname), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, property, &_qstring_property));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_installDefaultMap(JNIEnv* env, jclass cls, jobject map)
{
	(void) cls;
	TQSqlPropertyMapJBridge::installDefaultMap((TTQSqlPropertyMap*) QtSupport::getQt(env, map));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlPropertyMap_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_newTQSqlPropertyMap(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlPropertyMapJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlPropertyMap_property(JNIEnv* env, jobject obj, jobject widget)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQVariant(((TTQSqlPropertyMap*) QtSupport::getQt(env, obj))->property((TTQWidget*) QtSupport::getQt(env, widget))), "org.kde.qt.TTQVariant", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_remove(JNIEnv* env, jobject obj, jstring classname)
{
static TTQString* _qstring_classname = 0;
	((TTQSqlPropertyMap*) QtSupport::getQt(env, obj))->remove((const TTQString&)*(TTQString*) QtSupport::toTQString(env, classname, &_qstring_classname));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlPropertyMap_setProperty(JNIEnv* env, jobject obj, jobject widget, jobject value)
{
	((TTQSqlPropertyMap*) QtSupport::getQt(env, obj))->setProperty((TTQWidget*) QtSupport::getQt(env, widget), (const TTQVariant&)*(const TTQVariant*) QtSupport::getQt(env, value));
	return;
}