diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-08 20:06:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-01-08 20:06:00 +0100 |
commit | 636f509299122d02087c6fd62e1e4a46dbd22026 (patch) | |
tree | 70e43efceeb5b00e7f19cdac8da44928bd2fb459 /qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java | |
parent | 719b61750c08343f530068ed4127623aeac71cf0 (diff) | |
download | tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip |
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java')
-rw-r--r-- | qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java | 92 |
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(); +} |