summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java')
-rw-r--r--qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java92
1 files changed, 92 insertions, 0 deletions
diff --git a/qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java b/qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java
new file mode 100644
index 00000000..06353dbe
--- /dev/null
+++ b/qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java
@@ -0,0 +1,92 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.qt;
+
+import org.trinitydesktop.qt.Qt;
+
+public class TQSocketDevice extends TQIODevice {
+ protected TQSocketDevice(Class dummy){super((Class) null);}
+ public static final int Stream = 0;
+ public static final int Datagram = 1;
+
+ public static final int IPv4 = 0;
+ public static final int IPv6 = 1;
+ public static final int Unknown = 2;
+
+ public static final int NoError = 0;
+ public static final int AlreadyBound = 1;
+ public static final int Inaccessible = 2;
+ public static final int NoResources = 3;
+ public static final int InternalError = 4;
+ public static final int Bug = InternalError;
+ public static final int Impossible = 5;
+ public static final int NoFiles = 6;
+ public static final int ConnectionRefused = 7;
+ public static final int NetworkFailure = 8;
+ public static final int UnknownError = 9;
+
+ public TQSocketDevice(int type) {
+ super((Class) null);
+ newTQSocketDevice(type);
+ }
+ private native void newTQSocketDevice(int type);
+ public TQSocketDevice() {
+ super((Class) null);
+ newTQSocketDevice();
+ }
+ private native void newTQSocketDevice();
+ public TQSocketDevice(int type, int protocol, int dummy) {
+ super((Class) null);
+ newTQSocketDevice(type,protocol,dummy);
+ }
+ private native void newTQSocketDevice(int type, int protocol, int dummy);
+ public TQSocketDevice(int socket, int type) {
+ super((Class) null);
+ newTQSocketDevice(socket,type);
+ }
+ private native void newTQSocketDevice(int socket, int type);
+ public native boolean isValid();
+ public native int type();
+ public native int protocol();
+ public native int socket();
+ public native void setSocket(int socket, int type);
+ public native boolean open(int mode);
+ public native void close();
+ public native void flush();
+ public native long size();
+ public native long at();
+ public native boolean at(long arg1);
+ public native boolean atEnd();
+ public native boolean blocking();
+ public native void setBlocking(boolean arg1);
+ public native boolean addressReusable();
+ public native void setAddressReusable(boolean arg1);
+ public native int receiveBufferSize();
+ public native void setReceiveBufferSize(int arg1);
+ public native int sendBufferSize();
+ public native void setSendBufferSize(int arg1);
+ public native boolean connect(TQHostAddress arg1, short arg2);
+ public native boolean bind(TQHostAddress arg1, short arg2);
+ public native boolean listen(int backlog);
+ public native int accept();
+ public native long bytesAvailable();
+ public native long waitForMore(int msecs, boolean[] timeout);
+ public native long waitForMore(int msecs);
+ public native long readBlock(StringBuffer data, long maxlen);
+ public native long writeBlock(String data, long len);
+ public native long writeBlock(String data, long len, TQHostAddress host, short port);
+ public native int getch();
+ public native int putch(int arg1);
+ public native int ungetch(int arg1);
+ public native short port();
+ public native short peerPort();
+ public native TQHostAddress address();
+ public native TQHostAddress peerAddress();
+ public native int error();
+ protected native void setError(int err);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}