summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQSessionManager.cpp
blob: 848f2e646c9ba32a9921bcd839328129b01383d1 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqsessionmanager.h>

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSessionManager_allowsErrorInteraction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSessionManager*) QtSupport::getQt(env, obj))->allowsErrorInteraction();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSessionManager_allowsInteraction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSessionManager*) QtSupport::getQt(env, obj))->allowsInteraction();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_cancel(JNIEnv* env, jobject obj)
{
	((TQSessionManager*) QtSupport::getQt(env, obj))->cancel();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQSessionManager*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSessionManager_discardCommand(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQSessionManager*) QtSupport::getQt(env, obj))->discardCommand();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSessionManager_isPhase2(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSessionManager*) QtSupport::getQt(env, obj))->isPhase2();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSessionManager_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSessionManager*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_release(JNIEnv* env, jobject obj)
{
	((TQSessionManager*) QtSupport::getQt(env, obj))->release();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_requestPhase2(JNIEnv* env, jobject obj)
{
	((TQSessionManager*) QtSupport::getQt(env, obj))->requestPhase2();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSessionManager_restartCommand(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQSessionManager*) QtSupport::getQt(env, obj))->restartCommand();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSessionManager_restartHint(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSessionManager*) QtSupport::getQt(env, obj))->restartHint();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_sessionId(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSessionManager*) QtSupport::getQt(env, obj))->sessionId();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_sessionKey(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSessionManager*) QtSupport::getQt(env, obj))->sessionKey();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setDiscardCommand(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static TQStringList* _qlist_arg1 = 0;
	((TQSessionManager*) QtSupport::getQt(env, obj))->setDiscardCommand((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setManagerProperty__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring value)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_value = 0;
	((TQSessionManager*) QtSupport::getQt(env, obj))->setManagerProperty((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, value, &_qstring_value));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setManagerProperty__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jobjectArray value)
{
static TQString* _qstring_name = 0;
static TQStringList* _qlist_value = 0;
	((TQSessionManager*) QtSupport::getQt(env, obj))->setManagerProperty((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, value, &_qlist_value));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setRestartCommand(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static TQStringList* _qlist_arg1 = 0;
	((TQSessionManager*) QtSupport::getQt(env, obj))->setRestartCommand((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setRestartHint(JNIEnv* env, jobject obj, jint arg1)
{
	((TQSessionManager*) QtSupport::getQt(env, obj))->setRestartHint((TQSessionManager::RestartHint) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQSessionManager::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQSessionManager::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}