summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KNotifyClient.cpp
blob: 6b5a81642b1adbd8fa0df18b44be5b40053edff9 (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
167
168
169
170
171
172
173
174
175
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <knotifyclient.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KNotifyClient.h>

JNIEXPORT void JNICALL
Java_org_kde_koala_KNotifyClient_beep__(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KNotifyClient::beep();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KNotifyClient_beep__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring reason)
{
	(void) cls;
static TQString* _qstring_reason = 0;
	KNotifyClient::beep((const TQString&)*(TQString*) QtSupport::toQString(env, reason, &_qstring_reason));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_event__II(JNIEnv* env, jclass cls, jint winId, jint event)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KNotifyClient::event((int) winId, (KNotifyClient::StandardEvent) event);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_event__IILjava_lang_String_2(JNIEnv* env, jclass cls, jint winId, jint event, jstring text)
{
	(void) cls;
static TQString* _qstring_text = 0;
	jint xret = (jint) KNotifyClient::event((int) winId, (KNotifyClient::StandardEvent) event, (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_event__ILjava_lang_String_2(JNIEnv* env, jclass cls, jint winId, jstring message)
{
	(void) cls;
static TQString* _qstring_message = 0;
	jint xret = (jint) KNotifyClient::event((int) winId, (const TQString&)*(TQString*) QtSupport::toQString(env, message, &_qstring_message));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_event__ILjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jint winId, jstring message, jstring text)
{
	(void) cls;
static TQString* _qstring_message = 0;
static TQString* _qstring_text = 0;
	jint xret = (jint) KNotifyClient::event((int) winId, (const TQString&)*(TQString*) QtSupport::toQString(env, message, &_qstring_message), (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KNotifyClient_getDefaultFile(JNIEnv* env, jclass cls, jstring eventname, jint present)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_eventname = 0;
	_qstring = KNotifyClient::getDefaultFile((const TQString&)*(TQString*) QtSupport::toQString(env, eventname, &_qstring_eventname), (int) present);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_getDefaultPresentation(JNIEnv* env, jclass cls, jstring eventname)
{
	(void) cls;
static TQString* _qstring_eventname = 0;
	jint xret = (jint) KNotifyClient::getDefaultPresentation((const TQString&)*(TQString*) QtSupport::toQString(env, eventname, &_qstring_eventname));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KNotifyClient_getFile(JNIEnv* env, jclass cls, jstring eventname, jint present)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_eventname = 0;
	_qstring = KNotifyClient::getFile((const TQString&)*(TQString*) QtSupport::toQString(env, eventname, &_qstring_eventname), (int) present);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_getPresentation(JNIEnv* env, jclass cls, jstring eventname)
{
	(void) cls;
static TQString* _qstring_eventname = 0;
	jint xret = (jint) KNotifyClient::getPresentation((const TQString&)*(TQString*) QtSupport::toQString(env, eventname, &_qstring_eventname));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KNotifyClient_instance(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KNotifyClient::instance(), "org.kde.koala.KInstanceInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KNotifyClient_startDaemon(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KNotifyClient::startDaemon();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_userEvent__I(JNIEnv* env, jclass cls, jint winId)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KNotifyClient::userEvent((int) winId);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_userEvent__ILjava_lang_String_2(JNIEnv* env, jclass cls, jint winId, jstring text)
{
	(void) cls;
static TQString* _qstring_text = 0;
	jint xret = (jint) KNotifyClient::userEvent((int) winId, (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_userEvent__ILjava_lang_String_2I(JNIEnv* env, jclass cls, jint winId, jstring text, jint present)
{
	(void) cls;
static TQString* _qstring_text = 0;
	jint xret = (jint) KNotifyClient::userEvent((int) winId, (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text), (int) present);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_userEvent__ILjava_lang_String_2II(JNIEnv* env, jclass cls, jint winId, jstring text, jint present, jint level)
{
	(void) cls;
static TQString* _qstring_text = 0;
	jint xret = (jint) KNotifyClient::userEvent((int) winId, (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text), (int) present, (int) level);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_userEvent__ILjava_lang_String_2IILjava_lang_String_2(JNIEnv* env, jclass cls, jint winId, jstring text, jint present, jint level, jstring sound)
{
	(void) cls;
static TQString* _qstring_text = 0;
static TQString* _qstring_sound = 0;
	jint xret = (jint) KNotifyClient::userEvent((int) winId, (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text), (int) present, (int) level, (const TQString&)*(TQString*) QtSupport::toQString(env, sound, &_qstring_sound));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KNotifyClient_userEvent__ILjava_lang_String_2IILjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jint winId, jstring text, jint present, jint level, jstring sound, jstring file)
{
	(void) cls;
static TQString* _qstring_text = 0;
static TQString* _qstring_sound = 0;
static TQString* _qstring_file = 0;
	jint xret = (jint) KNotifyClient::userEvent((int) winId, (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text), (int) present, (int) level, (const TQString&)*(TQString*) QtSupport::toQString(env, sound, &_qstring_sound), (const TQString&)*(TQString*) QtSupport::toQString(env, file, &_qstring_file));
	return xret;
}