summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQDir.cpp
blob: 6b3c26c2b4b4d33b865d379d41cdbc5d5e42a585 (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
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
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdir.h>
#include <tqstrlist.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class TQDirJBridge : public TQDir
{
public:
	TQDirJBridge() : TQDir() {};
	TQDirJBridge(const TQString& arg1,const TQString& arg2,int arg3,int arg4) : TQDir(arg1,arg2,arg3,arg4) {};
	TQDirJBridge(const TQString& arg1,const TQString& arg2,int arg3) : TQDir(arg1,arg2,arg3) {};
	TQDirJBridge(const TQString& arg1,const TQString& arg2) : TQDir(arg1,arg2) {};
	TQDirJBridge(const TQString& arg1) : TQDir(arg1) {};
	TQDirJBridge(const TQDir& arg1) : TQDir(arg1) {};
	void public_convertToAbs() {
		TQDir::convertToAbs();
		return;
	}
	~TQDirJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_absFilePath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->absFilePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_absFilePath__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->absFilePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_cdUp(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->cdUp();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_cd__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->cd((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_cd__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring dirName, jboolean acceptAbsPath)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->cd((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_cleanDirPath(JNIEnv* env, jclass cls, jstring dirPath)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_dirPath = 0;
	_qstring = TQDirJBridge::cleanDirPath((const TQString&)*(TQString*) QtSupport::toTQString(env, dirPath, &_qstring_dirPath));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_convertSeparators(JNIEnv* env, jclass cls, jstring pathName)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_pathName = 0;
	_qstring = TQDirJBridge::convertSeparators((const TQString&)*(TQString*) QtSupport::toTQString(env, pathName, &_qstring_pathName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_convertToAbs(JNIEnv* env, jobject obj)
{
	((TQDirJBridge*) QtSupport::getQt(env, obj))->public_convertToAbs();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDir_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQDir*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_currentDirPath(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQDirJBridge::currentDirPath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_current(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDir(TQDirJBridge::current()), "org.kde.qt.TQDir", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QDir_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__(JNIEnv* env, jobject obj)
{
	TQStrList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList();
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__I(JNIEnv* env, jobject obj, jint filterSpec)
{
	TQStrList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__II(JNIEnv* env, jobject obj, jint filterSpec, jint sortSpec)
{
	TQStrList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilter)
{
	TQStrList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter));
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec)
{
	TQStrList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec, jint sortSpec)
{
	TQStrList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__I(JNIEnv* env, jobject obj, jint filterSpec)
{
	TQStringList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__II(JNIEnv* env, jobject obj, jint filterSpec, jint sortSpec)
{
	TQStringList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilter)
{
	TQStringList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec)
{
	TQStringList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec, jint sortSpec)
{
	TQStringList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_exists__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->exists();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_exists__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->exists((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_exists__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean acceptAbsPath)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->exists((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_filePath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->filePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_filePath__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->filePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDir_filter(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQDir*) QtSupport::getQt(env, obj))->filter();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_homeDirPath(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQDirJBridge::homeDirPath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_home(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDir(TQDirJBridge::home()), "org.kde.qt.TQDir", TRUE);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isReadable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->isReadable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isRelativePath(JNIEnv* env, jclass cls, jstring path)
{
	(void) cls;
static TQString* _qstring_path = 0;
	jboolean xret = (jboolean) TQDirJBridge::isRelativePath((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isRelative(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->isRelative();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isRoot(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->isRoot();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_matchAllDirs(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->matchAllDirs();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_match__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filter, jstring fileName)
{
	(void) cls;
static TQString* _qstring_filter = 0;
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) TQDirJBridge::match((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_match___3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray filters, jstring fileName)
{
	(void) cls;
static TQStringList* _qlist_filters = 0;
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) TQDirJBridge::match((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters), (const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_mkdir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->mkdir((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_mkdir__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring dirName, jboolean acceptAbsPath)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->mkdir((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName), (bool) acceptAbsPath);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newTQDir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDirJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newTQDir__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path, jstring nameFilter)
{
static TQString* _qstring_path = 0;
static TQString* _qstring_nameFilter = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDirJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newTQDir__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring path, jstring nameFilter, jint sortSpec)
{
static TQString* _qstring_path = 0;
static TQString* _qstring_nameFilter = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDirJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) sortSpec));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newTQDir__Ljava_lang_String_2Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring path, jstring nameFilter, jint sortSpec, jint filterSpec)
{
static TQString* _qstring_path = 0;
static TQString* _qstring_nameFilter = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDirJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) sortSpec, (int) filterSpec));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newTQDir__Lorg_kde_qt_QDir_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDirJBridge((const TQDir&)*(const TQDir*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_op_1at(JNIEnv* env, jobject obj, jint arg1)
{
	TQString  _qstring;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->operator[]((int) arg1);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->operator==((const TQDir&)*(const TQDir*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->operator!=((const TQDir&)*(const TQDir*) QtSupport::getQt(env, arg1));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_refresh(JNIEnv* env, jobject obj)
{
	((TQDir*) QtSupport::getQt(env, obj))->refresh();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_remove__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->remove((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_remove__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->remove((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rename__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring newName)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_newName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->rename((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, newName, &_qstring_newName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rename__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jstring newName, jboolean acceptAbsPaths)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_newName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->rename((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, newName, &_qstring_newName), (bool) acceptAbsPaths);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rmdir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->rmdir((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rmdir__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring dirName, jboolean acceptAbsPath)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->rmdir((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_rootDirPath(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQDirJBridge::rootDirPath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_root(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDir(TQDirJBridge::root()), "org.kde.qt.TQDir", TRUE);
	return xret;
}

JNIEXPORT jchar JNICALL
Java_org_kde_qt_QDir_separator(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jchar xret = (jchar) TQDirJBridge::separator();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_setCurrent(JNIEnv* env, jclass cls, jstring path)
{
	(void) cls;
static TQString* _qstring_path = 0;
	jboolean xret = (jboolean) TQDirJBridge::setCurrent((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setFilter(JNIEnv* env, jobject obj, jint filterSpec)
{
	((TQDir*) QtSupport::getQt(env, obj))->setFilter((int) filterSpec);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setMatchAllDirs(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQDir*) QtSupport::getQt(env, obj))->setMatchAllDirs((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setNameFilter(JNIEnv* env, jobject obj, jstring nameFilter)
{
static TQString* _qstring_nameFilter = 0;
	((TQDir*) QtSupport::getQt(env, obj))->setNameFilter((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setPath(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	((TQDir*) QtSupport::getQt(env, obj))->setPath((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setSorting(JNIEnv* env, jobject obj, jint sortSpec)
{
	((TQDir*) QtSupport::getQt(env, obj))->setSorting((int) sortSpec);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDir_sorting(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQDir*) QtSupport::getQt(env, obj))->sorting();
	return xret;
}