diff options
Diffstat (limited to 'tdejava/koala/tdejava/KAsyncIO.cpp')
-rw-r--r-- | tdejava/koala/tdejava/KAsyncIO.cpp | 285 |
1 files changed, 285 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/KAsyncIO.cpp b/tdejava/koala/tdejava/KAsyncIO.cpp new file mode 100644 index 00000000..a823be59 --- /dev/null +++ b/tdejava/koala/tdejava/KAsyncIO.cpp @@ -0,0 +1,285 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <tqiodevice.h> +#include <kasyncio.h> +#include <tqglobal.h> +#include <tqcstring.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/KAsyncIO.h> + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_atEnd(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->atEnd(); + return xret; +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_at__(JNIEnv* env, jobject obj) +{ + jlong xret = (jlong) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->at(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_at__J(JNIEnv* env, jobject obj, jlong arg1) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->at((TQIODevice::Offset) arg1); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_className(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((KAsyncIO*) QtSupport::getQt(env, obj))->className(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_close(JNIEnv* env, jobject obj) +{ + ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->close(); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_enableRead(JNIEnv* env, jobject obj, jboolean enable) +{ + ((KAsyncIO*) QtSupport::getQt(env, obj))->enableRead((bool) enable); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_enableWrite(JNIEnv* env, jobject obj, jboolean enable) +{ + ((KAsyncIO*) QtSupport::getQt(env, obj))->enableWrite((bool) enable); + return; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_flags(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->flags(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_flush(JNIEnv* env, jobject obj) +{ + ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->flush(); + return; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_getch(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->getch(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isAsynchronous(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isAsynchronous(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isBuffered(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isBuffered(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isCombinedAccess(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isCombinedAccess(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isDirectAccess(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isDirectAccess(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isInactive(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isInactive(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isOpen(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isOpen(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isRaw(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isRaw(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isReadWrite(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isReadWrite(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isReadable(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isReadable(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isSequentialAccess(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isSequentialAccess(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isSynchronous(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isSynchronous(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isTranslated(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isTranslated(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_isWritable(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isWritable(); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_metaObject(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((KAsyncIO*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject"); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_mode(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->mode(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_open(JNIEnv* env, jobject obj, jint mode) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->open((int) mode); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_putch(JNIEnv* env, jobject obj, jint arg1) +{ + jint xret = (jint) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->putch((int) arg1); + return xret; +} + +JNIEXPORT jbyteArray JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_readAll(JNIEnv* env, jobject obj) +{ + TQByteArray _qbyteArray; + _qbyteArray = ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->readAll(); + return QtSupport::fromTQByteArray(env, &_qbyteArray); +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_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*)(KAsyncIO*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (TQ_ULONG) maxlen); + QtSupport::fromTQCStringToStringBuffer(env, _qstring_data, data); + return xret; +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_readLine(JNIEnv* env, jobject obj, jstring data, jlong maxlen) +{ +static TQCString* _qstring_data = 0; + jlong xret = (jlong) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->readLine((char*) QtSupport::toCharString(env, data, &_qstring_data), (TQ_ULONG) maxlen); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_resetStatus(JNIEnv* env, jobject obj) +{ + ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->resetStatus(); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_reset(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->reset(); + return xret; +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_size(JNIEnv* env, jobject obj) +{ + jlong xret = (jlong) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->size(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_state(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->state(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_status(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->status(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_ungetch(JNIEnv* env, jobject obj, jint arg1) +{ + jint xret = (jint) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->ungetch((int) arg1); + return xret; +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_writeBlock__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong len) +{ +static TQCString* _qstring_data = 0; + jlong xret = (jlong) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->writeBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (TQ_ULONG) len); + return xret; +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KAsyncIO_writeBlock___3B(JNIEnv* env, jobject obj, jbyteArray data) +{ +static TQByteArray* _qbyteArray_data = 0; + jlong xret = (jlong) ((TQIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->writeBlock((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data)); + return xret; +} + |