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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
|
//Auto-generated by kalyptus. DO NOT EDIT.
#include <kprocess.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqcstring.h>
#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KProcess.h>
class KProcessJBridge : public KProcess
{
public:
KProcessJBridge(TTQObject* arg1,const char* arg2) : KProcess(arg1,arg2) {};
KProcessJBridge(TTQObject* arg1) : KProcess(arg1) {};
KProcessJBridge() : KProcess() {};
void protected_setupEnvironment() {
KProcess::setupEnvironment();
return;
}
int protected_setupCommunication(KProcess::Communication arg1) {
return (int) KProcess::setupCommunication(arg1);
}
int protected_commSetupDoneP() {
return (int) KProcess::commSetupDoneP();
}
int protected_commSetupDoneC() {
return (int) KProcess::commSetupDoneC();
}
void protected_processHasExited(int arg1) {
KProcess::processHasExited(arg1);
return;
}
void protected_commClose() {
KProcess::commClose();
return;
}
void protected_setBinaryExecutable(const char* arg1) {
KProcess::setBinaryExecutable(arg1);
return;
}
int protected_childOutput(int arg1) {
return (int) KProcess::childOutput(arg1);
}
int protected_childError(int arg1) {
return (int) KProcess::childError(arg1);
}
void protected_slotChildOutput(int arg1) {
KProcess::slotChildOutput(arg1);
return;
}
void protected_slotChildError(int arg1) {
KProcess::slotChildError(arg1);
return;
}
void protected_slotSendData(int arg1) {
KProcess::slotSendData(arg1);
return;
}
~KProcessJBridge() {QtSupport::qtKeyDeleted(this);}
void removeChild(TTQObject* arg1) {
if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TTQObject")) {
TTQObject::removeChild(arg1);
}
return;
}
void customEvent(TTQCustomEvent* arg1) {
if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TTQCustomEvent")) {
TTQObject::customEvent(arg1);
}
return;
}
void timerEvent(TTQTimerEvent* arg1) {
if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TTQTimerEvent")) {
TTQObject::timerEvent(arg1);
}
return;
}
void childEvent(TTQChildEvent* arg1) {
if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TTQChildEvent")) {
TTQObject::childEvent(arg1);
}
return;
}
void insertChild(TTQObject* arg1) {
if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TTQObject")) {
TTQObject::insertChild(arg1);
}
return;
}
void commClose() {
if (!QtSupport::voidDelegate(this,"org.kde.koala.KProcess","commClose")) {
KProcess::commClose();
}
return;
}
bool eventFilter(TTQObject* object,TTQEvent* event) {
if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KProcess",object,event)) {
return TTQObject::eventFilter(object,event);
} else {
return TRUE;
}
}
};
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_childError(JNIEnv* env, jobject obj, jint fdno)
{
jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_childError((int) fdno);
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_childOutput(JNIEnv* env, jobject obj, jint fdno)
{
jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_childOutput((int) fdno);
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProcess_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
_qstring = ((KProcess*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_clearArguments(JNIEnv* env, jobject obj)
{
((KProcess*) QtSupport::getQt(env, obj))->clearArguments();
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_closeAll(JNIEnv* env, jobject obj)
{
((KProcess*) QtSupport::getQt(env, obj))->closeAll();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closePty(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closePty();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closeStderr(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closeStderr();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closeStdin(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closeStdin();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closeStdout(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closeStdout();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_commClose(JNIEnv* env, jobject obj)
{
((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_commClose();
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_commSetupDoneC(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_commSetupDoneC();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_commSetupDoneP(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_commSetupDoneP();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_coreDumped(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->coreDumped();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_detach(JNIEnv* env, jobject obj)
{
((KProcess*) QtSupport::getQt(env, obj))->detach();
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_dispose(JNIEnv* env, jobject obj)
{
Java_org_kde_koala_KProcess_finalize(env, obj);
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_exitSignal(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((KProcess*) QtSupport::getQt(env, obj))->exitSignal();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_exitStatus(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((KProcess*) QtSupport::getQt(env, obj))->exitStatus();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj) && ((KProcess*)QtSupport::getQt(env, obj))->parent() == 0) {
delete (KProcess*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_isRunning(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->isRunning();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_kill__(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->kill();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_kill__I(JNIEnv* env, jobject obj, jint signo)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->kill((int) signo);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KProcess_metaObject(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((KProcess*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject");
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_newKProcess__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KProcessJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_newKProcess__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KProcessJBridge((TTQObject*) QtSupport::getQt(env, parent)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_newKProcess__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TTQCString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new KProcessJBridge((TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_normalExit(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->normalExit();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KProcess_op_1write__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg)
{
static TTQString* _qstring_arg = 0;
jobject xret = QtSupport::objectForQtKey(env, (void*)(KProcess *) &((KProcess*) QtSupport::getQt(env, obj))->operator<<((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg, &_qstring_arg)), "org.kde.koala.KProcess");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KProcess_op_1write___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray args)
{
static TTQStringList* _qlist_args = 0;
jobject xret = QtSupport::objectForQtKey(env, (void*)(KProcess *) &((KProcess*) QtSupport::getQt(env, obj))->operator<<((const TTQStringList&)*(TTQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args)), "org.kde.koala.KProcess");
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_pid(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((KProcess*) QtSupport::getQt(env, obj))->pid();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_processHasExited(JNIEnv* env, jobject obj, jint state)
{
((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_processHasExited((int) state);
return;
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProcess_quote(JNIEnv* env, jclass cls, jstring arg)
{
TTQString _qstring;
(void) cls;
static TTQString* _qstring_arg = 0;
_qstring = KProcessJBridge::quote((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg, &_qstring_arg));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_resume(JNIEnv* env, jobject obj)
{
((KProcess*) QtSupport::getQt(env, obj))->resume();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_runPrivileged(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->runPrivileged();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setBinaryExecutable(JNIEnv* env, jobject obj, jstring filename)
{
static TTQCString* _qstring_filename = 0;
((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_setBinaryExecutable((const char*) QtSupport::toCharString(env, filename, &_qstring_filename));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setEnvironment(JNIEnv* env, jobject obj, jstring name, jstring value)
{
static TTQString* _qstring_name = 0;
static TTQString* _qstring_value = 0;
((KProcess*) QtSupport::getQt(env, obj))->setEnvironment((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, value, &_qstring_value));
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_setPriority(JNIEnv* env, jobject obj, jint prio)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->setPriority((int) prio);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setRunPrivileged(JNIEnv* env, jobject obj, jboolean keepPrivileges)
{
((KProcess*) QtSupport::getQt(env, obj))->setRunPrivileged((bool) keepPrivileges);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setUseShell__Z(JNIEnv* env, jobject obj, jboolean useShell)
{
((KProcess*) QtSupport::getQt(env, obj))->setUseShell((bool) useShell);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setUseShell__ZLjava_lang_String_2(JNIEnv* env, jobject obj, jboolean useShell, jstring shell)
{
static TTQCString* _qstring_shell = 0;
((KProcess*) QtSupport::getQt(env, obj))->setUseShell((bool) useShell, (const char*) QtSupport::toCharString(env, shell, &_qstring_shell));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setWorkingDirectory(JNIEnv* env, jobject obj, jstring dir)
{
static TTQString* _qstring_dir = 0;
((KProcess*) QtSupport::getQt(env, obj))->setWorkingDirectory((const TTQString&)*(TTQString*) QtSupport::toTQString(env, dir, &_qstring_dir));
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_setupCommunication(JNIEnv* env, jobject obj, jint comm)
{
jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_setupCommunication((KProcess::Communication) comm);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setupEnvironment(JNIEnv* env, jobject obj)
{
((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_setupEnvironment();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_signalled(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->signalled();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_slotChildError(JNIEnv* env, jobject obj, jint fdno)
{
((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_slotChildError((int) fdno);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_slotChildOutput(JNIEnv* env, jobject obj, jint fdno)
{
((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_slotChildOutput((int) fdno);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_slotSendData(JNIEnv* env, jobject obj, jint dummy)
{
((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_slotSendData((int) dummy);
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_start__(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->start();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_start__I(JNIEnv* env, jobject obj, jint runmode)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->start((KProcess::RunMode) runmode);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_start__II(JNIEnv* env, jobject obj, jint runmode, jint comm)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->start((KProcess::RunMode) runmode, (KProcess::Communication) comm);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_suspend(JNIEnv* env, jobject obj)
{
((KProcess*) QtSupport::getQt(env, obj))->suspend();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_waitThread__(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->wait();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_waitThread__I(JNIEnv* env, jobject obj, jint timeout)
{
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->wait((int) timeout);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_writeStdin(JNIEnv* env, jobject obj, jstring buffer, jint buflen)
{
static TTQCString* _qstring_buffer = 0;
jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->writeStdin((const char*) QtSupport::toCharString(env, buffer, &_qstring_buffer), (int) buflen);
return xret;
}
|