summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQIODevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/TQIODevice.cpp')
-rw-r--r--qtjava/javalib/qtjava/TQIODevice.cpp254
1 files changed, 254 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQIODevice.cpp b/qtjava/javalib/qtjava/TQIODevice.cpp
new file mode 100644
index 00000000..d3e766b5
--- /dev/null
+++ b/qtjava/javalib/qtjava/TQIODevice.cpp
@@ -0,0 +1,254 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <tqglobal.h>
+#include <tqiodevice.h>
+#include <tqcstring.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/TQIODevice.h>
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_atEnd(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->atEnd();
+ return xret;
+}
+
+JNIEXPORT jlong JNICALL
+Java_org_kde_qt_QIODevice_at__(JNIEnv* env, jobject obj)
+{
+ jlong xret = (jlong) ((TQIODevice*) QtSupport::getQt(env, obj))->at();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_at__J(JNIEnv* env, jobject obj, jlong arg1)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->at((TQIODevice::Offset) arg1);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QIODevice_close(JNIEnv* env, jobject obj)
+{
+ ((TQIODevice*) QtSupport::getQt(env, obj))->close();
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QIODevice_flags(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQIODevice*) QtSupport::getQt(env, obj))->flags();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QIODevice_flush(JNIEnv* env, jobject obj)
+{
+ ((TQIODevice*) QtSupport::getQt(env, obj))->flush();
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QIODevice_getch(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQIODevice*) QtSupport::getQt(env, obj))->getch();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isAsynchronous(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isAsynchronous();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isBuffered(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isBuffered();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isCombinedAccess(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isCombinedAccess();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isDirectAccess(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isDirectAccess();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isInactive(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isInactive();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isOpen(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isOpen();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isRaw(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isRaw();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isReadWrite(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isReadWrite();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isReadable(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isReadable();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isSequentialAccess(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isSequentialAccess();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isSynchronous(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isSynchronous();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isTranslated(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isTranslated();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_isWritable(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->isWritable();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QIODevice_mode(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQIODevice*) QtSupport::getQt(env, obj))->mode();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_open(JNIEnv* env, jobject obj, jint mode)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->open((int) mode);
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QIODevice_putch(JNIEnv* env, jobject obj, jint arg1)
+{
+ jint xret = (jint) ((TQIODevice*) QtSupport::getQt(env, obj))->putch((int) arg1);
+ return xret;
+}
+
+JNIEXPORT jbyteArray JNICALL
+Java_org_kde_qt_QIODevice_readAll(JNIEnv* env, jobject obj)
+{
+ TQByteArray _qbyteArray;
+ _qbyteArray = ((TQIODevice*) QtSupport::getQt(env, obj))->readAll();
+ return QtSupport::fromTQByteArray(env, &_qbyteArray);
+}
+
+JNIEXPORT jlong JNICALL
+Java_org_kde_qt_QIODevice_readBlock(JNIEnv* env, jobject obj, jobject data, jlong maxlen)
+{
+static TQCString* _qstring_data = 0;
+ if (_qstring_data == 0) { _qstring_data = new TQCString(); }
+ _qstring_data->resize((uint) maxlen);
+ jlong xret = (jlong) ((TQIODevice*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) maxlen);
+ QtSupport::fromTQCStringToStringBuffer(env, _qstring_data, data);
+ return xret;
+}
+
+JNIEXPORT jlong JNICALL
+Java_org_kde_qt_QIODevice_readLine(JNIEnv* env, jobject obj, jstring data, jlong maxlen)
+{
+static TQCString* _qstring_data = 0;
+ jlong xret = (jlong) ((TQIODevice*) QtSupport::getQt(env, obj))->readLine((char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) maxlen);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QIODevice_resetStatus(JNIEnv* env, jobject obj)
+{
+ ((TQIODevice*) QtSupport::getQt(env, obj))->resetStatus();
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QIODevice_reset(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQIODevice*) QtSupport::getQt(env, obj))->reset();
+ return xret;
+}
+
+JNIEXPORT jlong JNICALL
+Java_org_kde_qt_QIODevice_size(JNIEnv* env, jobject obj)
+{
+ jlong xret = (jlong) ((TQIODevice*) QtSupport::getQt(env, obj))->size();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QIODevice_state(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQIODevice*) QtSupport::getQt(env, obj))->state();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QIODevice_status(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQIODevice*) QtSupport::getQt(env, obj))->status();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QIODevice_ungetch(JNIEnv* env, jobject obj, jint arg1)
+{
+ jint xret = (jint) ((TQIODevice*) QtSupport::getQt(env, obj))->ungetch((int) arg1);
+ return xret;
+}
+
+JNIEXPORT jlong JNICALL
+Java_org_kde_qt_QIODevice_writeBlock__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong len)
+{
+static TQCString* _qstring_data = 0;
+ jlong xret = (jlong) ((TQIODevice*) 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_QIODevice_writeBlock___3B(JNIEnv* env, jobject obj, jbyteArray data)
+{
+static TQByteArray* _qbyteArray_data = 0;
+ jlong xret = (jlong) ((TQIODevice*) QtSupport::getQt(env, obj))->writeBlock((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
+ return xret;
+}
+