summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/tdejava/TDEBufferedIO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/tdejava/TDEBufferedIO.cpp')
-rw-r--r--tdejava/koala/tdejava/TDEBufferedIO.cpp87
1 files changed, 87 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/TDEBufferedIO.cpp b/tdejava/koala/tdejava/TDEBufferedIO.cpp
new file mode 100644
index 00000000..a0bdf0a3
--- /dev/null
+++ b/tdejava/koala/tdejava/TDEBufferedIO.cpp
@@ -0,0 +1,87 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <kbufferedio.h>
+
+#include <qtjava/QtSupport.h>
+#include <tdejava/TDESupport.h>
+#include <tdejava/TDEBufferedIO.h>
+
+JNIEXPORT jint JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_bytesAvailable(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->bytesAvailable();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_bytesToWrite(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->bytesToWrite();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_canReadLine(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->canReadLine();
+ return xret;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_className(JNIEnv* env, jobject obj)
+{
+ const char* _qstring;
+ _qstring = ((TDEBufferedIO*) QtSupport::getQt(env, obj))->className();
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_closeNow(JNIEnv* env, jobject obj)
+{
+ ((TDEBufferedIO*) QtSupport::getQt(env, obj))->closeNow();
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_metaObject(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEBufferedIO*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_peekBlock(JNIEnv* env, jobject obj, jstring data, jint maxlen)
+{
+static TQCString* _qstring_data = 0;
+ jint xret = (jint) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->peekBlock((char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) maxlen);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_setBufferSize__I(JNIEnv* env, jobject obj, jint rsize)
+{
+ jboolean xret = (jboolean) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->setBufferSize((int) rsize);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_setBufferSize__II(JNIEnv* env, jobject obj, jint rsize, jint wsize)
+{
+ jboolean xret = (jboolean) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->setBufferSize((int) rsize, (int) wsize);
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_unreadBlock(JNIEnv* env, jobject obj, jstring data, jint len)
+{
+static TQCString* _qstring_data = 0;
+ jint xret = (jint) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->unreadBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) len);
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_trinitydesktop_koala_TDEBufferedIO_waitForMore(JNIEnv* env, jobject obj, jint msec)
+{
+ jint xret = (jint) ((TDEBufferedIO*) QtSupport::getQt(env, obj))->waitForMore((int) msec);
+ return xret;
+}
+