summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QFile.cpp')
-rw-r--r--qtjava/javalib/qtjava/QFile.cpp100
1 files changed, 50 insertions, 50 deletions
diff --git a/qtjava/javalib/qtjava/QFile.cpp b/qtjava/javalib/qtjava/QFile.cpp
index 53c811f8..b1197d90 100644
--- a/qtjava/javalib/qtjava/QFile.cpp
+++ b/qtjava/javalib/qtjava/QFile.cpp
@@ -11,10 +11,10 @@
class TQFileJBridge : public TQFile
{
public:
- TQFileJBridge() : TTQFile() {};
- TQFileJBridge(const TTQString& arg1) : TTQFile(arg1) {};
- void protected_setErrorString(const TTQString& arg1) {
- TTQFile::setErrorString(arg1);
+ TQFileJBridge() : TQFile() {};
+ TQFileJBridge(const TQString& arg1) : TQFile(arg1) {};
+ void protected_setErrorString(const TQString& arg1) {
+ TQFile::setErrorString(arg1);
return;
}
~TQFileJBridge() {QtSupport::qtKeyDeleted(this);}
@@ -23,38 +23,38 @@ public:
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_atEnd(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TTQFile*) QtSupport::getQt(env, obj))->atEnd();
+ 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) ((TTQFile*) QtSupport::getQt(env, obj))->at();
+ 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) ((TTQFile*) QtSupport::getQt(env, obj))->at((TTQIODevice::Offset) 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)
{
- ((TTQFile*) QtSupport::getQt(env, obj))->close();
+ ((TQFile*) QtSupport::getQt(env, obj))->close();
return;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_decodeName(JNIEnv* env, jclass cls, jstring localFileName)
{
- TTQString _qstring;
+ TQString _qstring;
(void) cls;
-static TTQCString* _qcstring_localFileName = 0;
- _qstring = TQFileJBridge::decodeName((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, localFileName, &_qcstring_localFileName));
+static TQCString* _qcstring_localFileName = 0;
+ _qstring = TQFileJBridge::decodeName((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, localFileName, &_qcstring_localFileName));
return QtSupport::fromTQString(env, &_qstring);
}
@@ -68,25 +68,25 @@ Java_org_kde_qt_QFile_dispose(JNIEnv* env, jobject obj)
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_encodeName(JNIEnv* env, jclass cls, jstring fileName)
{
- TTQCString _qstring;
+ TQCString _qstring;
(void) cls;
-static TTQString* _qstring_fileName = 0;
- _qstring = TQFileJBridge::encodeName((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
+static TQString* _qstring_fileName = 0;
+ _qstring = TQFileJBridge::encodeName((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
return QtSupport::fromTQCString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_errorString(JNIEnv* env, jobject obj)
{
- TTQString _qstring;
- _qstring = ((TTQFile*) QtSupport::getQt(env, obj))->errorString();
+ TQString _qstring;
+ _qstring = ((TQFile*) QtSupport::getQt(env, obj))->errorString();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_exists__(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((TTQFile*) QtSupport::getQt(env, obj))->exists();
+ jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->exists();
return xret;
}
@@ -94,8 +94,8 @@ JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_exists__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fileName)
{
(void) cls;
-static TTQString* _qstring_fileName = 0;
- jboolean xret = (jboolean) TQFileJBridge::exists((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
+static TQString* _qstring_fileName = 0;
+ jboolean xret = (jboolean) TQFileJBridge::exists((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
return xret;
}
@@ -103,7 +103,7 @@ JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
- delete (TTQFile*)QtSupport::getQt(env, obj);
+ delete (TQFile*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
@@ -112,21 +112,21 @@ Java_org_kde_qt_QFile_finalize(JNIEnv* env, jobject obj)
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_flush(JNIEnv* env, jobject obj)
{
- ((TTQFile*) QtSupport::getQt(env, obj))->flush();
+ ((TQFile*) QtSupport::getQt(env, obj))->flush();
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QFile_getch(JNIEnv* env, jobject obj)
{
- jint xret = (jint) ((TTQFile*) QtSupport::getQt(env, obj))->getch();
+ 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) ((TTQFile*) QtSupport::getQt(env, obj))->handle();
+ jint xret = (jint) ((TQFile*) QtSupport::getQt(env, obj))->handle();
return xret;
}
@@ -139,8 +139,8 @@ Java_org_kde_qt_QFile_isDisposed(JNIEnv* env, jobject obj)
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFile_name(JNIEnv* env, jobject obj)
{
- TTQString _qstring;
- _qstring = ((TTQFile*) QtSupport::getQt(env, obj))->name();
+ TQString _qstring;
+ _qstring = ((TQFile*) QtSupport::getQt(env, obj))->name();
return QtSupport::fromTQString(env, &_qstring);
}
@@ -157,9 +157,9 @@ Java_org_kde_qt_QFile_newTQFile__(JNIEnv* env, jobject obj)
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_newTQFile__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
-static TTQString* _qstring_name = 0;
+static TQString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new TQFileJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)));
+ QtSupport::setQt(env, obj, new TQFileJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -168,31 +168,31 @@ static TTQString* _qstring_name = 0;
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_open__I(JNIEnv* env, jobject obj, jint arg1)
{
- jboolean xret = (jboolean) ((TTQFile*) QtSupport::getQt(env, obj))->open((int) 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) ((TTQFile*) QtSupport::getQt(env, obj))->open((int) arg1, (int) 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) ((TTQFile*) QtSupport::getQt(env, obj))->putch((int) 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 TTQCString* _qstring_data = 0;
- if (_qstring_data == 0) { _qstring_data = new TTQCString(); }
+static TQCString* _qstring_data = 0;
+ if (_qstring_data == 0) { _qstring_data = new TQCString(); }
_qstring_data->resize((uint) len);
- jlong xret = (jlong) ((TTQFile*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) len);
+ jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) len);
QtSupport::fromTQCStringToStringBuffer(env, _qstring_data, data);
return xret;
}
@@ -200,8 +200,8 @@ static TTQCString* _qstring_data = 0;
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_readLine__Ljava_lang_StringBuffer_2J(JNIEnv* env, jobject obj, jobject arg1, jlong maxlen)
{
-static TTQString* _qstring_arg1 = 0;
- jlong xret = (jlong) ((TTQFile*) QtSupport::getQt(env, obj))->readLine((TTQString&)*(TTQString*) QtSupport::toTQStringFromStringBuffer(env, arg1, &_qstring_arg1), (Q_ULONG) maxlen);
+static TQString* _qstring_arg1 = 0;
+ jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->readLine((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, arg1, &_qstring_arg1), (Q_ULONG) maxlen);
QtSupport::fromTQStringToStringBuffer(env, _qstring_arg1, arg1);
return xret;
}
@@ -209,15 +209,15 @@ static TTQString* _qstring_arg1 = 0;
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_readLine__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong maxlen)
{
-static TTQCString* _qstring_data = 0;
- jlong xret = (jlong) ((TTQFile*) QtSupport::getQt(env, obj))->readLine((char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) 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) ((TTQFile*) QtSupport::getQt(env, obj))->remove();
+ jboolean xret = (jboolean) ((TQFile*) QtSupport::getQt(env, obj))->remove();
return xret;
}
@@ -225,54 +225,54 @@ JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFile_remove__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fileName)
{
(void) cls;
-static TTQString* _qstring_fileName = 0;
- jboolean xret = (jboolean) TQFileJBridge::remove((const TTQString&)*(TTQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
+static TQString* _qstring_fileName = 0;
+ jboolean xret = (jboolean) TQFileJBridge::remove((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_setErrorString(JNIEnv* env, jobject obj, jstring arg1)
{
-static TTQString* _qstring_arg1 = 0;
- ((TQFileJBridge*) QtSupport::getQt(env, obj))->protected_setErrorString((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
+static TQString* _qstring_arg1 = 0;
+ ((TQFileJBridge*) QtSupport::getQt(env, obj))->protected_setErrorString((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QFile_setName(JNIEnv* env, jobject obj, jstring name)
{
-static TTQString* _qstring_name = 0;
- ((TTQFile*) QtSupport::getQt(env, obj))->setName((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name));
+static TQString* _qstring_name = 0;
+ ((TQFile*) QtSupport::getQt(env, obj))->setName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
return;
}
JNIEXPORT jlong JNICALL
Java_org_kde_qt_QFile_size(JNIEnv* env, jobject obj)
{
- jlong xret = (jlong) ((TTQFile*) QtSupport::getQt(env, obj))->size();
+ 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) ((TTQFile*) QtSupport::getQt(env, obj))->ungetch((int) 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 TTQCString* _qstring_data = 0;
- jlong xret = (jlong) ((TTQFile*) QtSupport::getQt(env, obj))->writeBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) 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 TTQByteArray* _qbyteArray_data = 0;
- jlong xret = (jlong) ((TTQFile*) QtSupport::getQt(env, obj))->writeBlock((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
+static TQByteArray* _qbyteArray_data = 0;
+ jlong xret = (jlong) ((TQFile*) QtSupport::getQt(env, obj))->writeBlock((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
return xret;
}