diff options
Diffstat (limited to 'qtjava/javalib/org/kde/qt/QSocketDevice.java')
-rw-r--r-- | qtjava/javalib/org/kde/qt/QSocketDevice.java | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/qtjava/javalib/org/kde/qt/QSocketDevice.java b/qtjava/javalib/org/kde/qt/QSocketDevice.java new file mode 100644 index 00000000..c3e97910 --- /dev/null +++ b/qtjava/javalib/org/kde/qt/QSocketDevice.java @@ -0,0 +1,92 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.qt; + +import org.kde.qt.Qt; + +public class QSocketDevice extends QIODevice { + protected QSocketDevice(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 QSocketDevice(int type) { + super((Class) null); + newQSocketDevice(type); + } + private native void newQSocketDevice(int type); + public QSocketDevice() { + super((Class) null); + newQSocketDevice(); + } + private native void newQSocketDevice(); + public QSocketDevice(int type, int protocol, int dummy) { + super((Class) null); + newQSocketDevice(type,protocol,dummy); + } + private native void newQSocketDevice(int type, int protocol, int dummy); + public QSocketDevice(int socket, int type) { + super((Class) null); + newQSocketDevice(socket,type); + } + private native void newQSocketDevice(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(QHostAddress arg1, short arg2); + public native boolean bind(QHostAddress 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, QHostAddress 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 QHostAddress address(); + public native QHostAddress 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(); +} |