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
|
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqfile.h>
#include <tqglobal.h>
#include <tqiodevice.h>
#include <tqstring.h>
#include <tqcstring.h>
#include <qtjava/QtSupport.h>
#include <qtjava/QFile.h>
class QFileJBridge : public QFile
{
public:
QFileJBridge() : TQFile() {};
QFileJBridge(const TQString& arg1) : TQFile(arg1) {};
void protected_setErrorString(const TQString& arg1) {
TQFile::setErrorString(arg1);
return;
}
~QFileJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_atEnd(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->atEnd();
return xret;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_at__(JNIEnv* env, jobject obj)
{
jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->at();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_at__J(JNIEnv* env, jobject obj, jlong arg1)
{
jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->at((TQIODevice::Offset) arg1);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_close(JNIEnv* env, jobject obj)
{
((TQFile*) QtSupport::getQt(env, obj))->close();
return;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_decodeName(JNIEnv* env, jclass cls, jstring localFileName)
{
TQString _qstring;
(void) cls;
static TQCString* _qcstring_localFileName = 0;
_qstring = QFileJBridge::decodeName((const TQCString&)*(TQCString*) QtSupport::toQCString(env, localFileName, &_qcstring_localFileName));
return QtSupport::fromQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_dispose(JNIEnv* env, jobject obj)
{
Java_org_kde_qt_QFile_finalize(env, obj);
return;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_encodeName(JNIEnv* env, jclass cls, jstring fileName)
{
TQCString _qstring;
(void) cls;
static TQString* _qstring_fileName = 0;
_qstring = QFileJBridge::encodeName((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
return QtSupport::fromQCString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_errorString(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQFile*) QtSupport::getQt(env, obj))->errorString();
return QtSupport::fromQString(env, &_qstring);
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_exists__(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->exists();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_exists__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fileName)
{
(void) cls;
static TQString* _qstring_fileName = 0;
jboolean xret = (jboolean) QFileJBridge::exists((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
delete (TQFile*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_flush(JNIEnv* env, jobject obj)
{
((TQFile*) QtSupport::getQt(env, obj))->flush();
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QFile_getch(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQFile*) QtSupport::getQt(env, obj))->getch();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QFile_handle(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQFile*) QtSupport::getQt(env, obj))->handle();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_name(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQFile*) QtSupport::getQt(env, obj))->name();
return QtSupport::fromQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_newQFile__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new QFileJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_newQFile__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new QFileJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_open__I(JNIEnv* env, jobject obj, jint arg1)
{
jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->open((int) arg1);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_open__II(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->open((int) arg1, (int) arg2);
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QFile_putch(JNIEnv* env, jobject obj, jint arg1)
{
jint xret = (jint) ((TQFile*) QtSupport::getQt(env, obj))->putch((int) arg1);
return xret;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_readBlock(JNIEnv* env, jobject obj, jobject data, jlong len)
{
static TQCString* _qstring_data = 0;
if (_qstring_data == 0) { _qstring_data = new TQCString(); }
_qstring_data->resize((uint) len);
jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) len);
QtSupport::fromQCStringToStringBuffer(env, _qstring_data, data);
return xret;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_readLine__Ljava_lang_StringBuffer_2J(JNIEnv* env, jobject obj, jobject arg1, jlong maxlen)
{
static TQString* _qstring_arg1 = 0;
jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->readLine((TQString&)*(TQString*) QtSupport::toQStringFromStringBuffer(env, arg1, &_qstring_arg1), (Q_ULONG) maxlen);
QtSupport::fromQStringToStringBuffer(env, _qstring_arg1, arg1);
return xret;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_readLine__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong maxlen)
{
static TQCString* _qstring_data = 0;
jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->readLine((char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) maxlen);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_remove__(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->remove();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_remove__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fileName)
{
(void) cls;
static TQString* _qstring_fileName = 0;
jboolean xret = (jboolean) QFileJBridge::remove((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_setErrorString(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
((QFileJBridge*) QtSupport::getQt(env, obj))->protected_setErrorString((const TQString&)*(TQString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_setName(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
((TQFile*) QtSupport::getQt(env, obj))->setName((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name));
return;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_size(JNIEnv* env, jobject obj)
{
jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->size();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QFile_ungetch(JNIEnv* env, jobject obj, jint arg1)
{
jint xret = (jint) ((TQFile*) QtSupport::getQt(env, obj))->ungetch((int) arg1);
return xret;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_writeBlock__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong len)
{
static TQCString* _qstring_data = 0;
jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->writeBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) len);
return xret;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_writeBlock___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->writeBlock((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
return xret;
}
|