summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/TQSocket.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/org/kde/qt/TQSocket.java')
-rw-r--r--qtjava/javalib/org/kde/qt/TQSocket.java108
1 files changed, 108 insertions, 0 deletions
diff --git a/qtjava/javalib/org/kde/qt/TQSocket.java b/qtjava/javalib/org/kde/qt/TQSocket.java
new file mode 100644
index 00000000..e5f69f6a
--- /dev/null
+++ b/qtjava/javalib/org/kde/qt/TQSocket.java
@@ -0,0 +1,108 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.qt;
+
+import org.kde.qt.Qt;
+
+/**
+ See {@link TQSocketSignals} for signals emitted by TQSocket
+*/
+public class TQSocket extends TQObject implements TQIODeviceInterface {
+ protected TQSocket(Class dummy){super((Class) null);}
+ public static final int ErrConnectionRefused = 0;
+ public static final int ErrHostNotFound = 1;
+ public static final int ErrSocketRead = 2;
+
+ public static final int Idle = 0;
+ public static final int HostLookup = 1;
+ public static final int Connecting = 2;
+ public static final int Connected = 3;
+ public static final int Closing = 4;
+ public static final int Connection = Connected;
+
+ public native TQMetaObject metaObject();
+ public native String className();
+ public TQSocket(TQObject parent, String name) {
+ super((Class) null);
+ newTQSocket(parent,name);
+ }
+ private native void newTQSocket(TQObject parent, String name);
+ public TQSocket(TQObject parent) {
+ super((Class) null);
+ newTQSocket(parent);
+ }
+ private native void newTQSocket(TQObject parent);
+ public TQSocket() {
+ super((Class) null);
+ newTQSocket();
+ }
+ private native void newTQSocket();
+ public native int state();
+ public native int socket();
+ public native void setSocket(int arg1);
+ public native TQSocketDevice socketDevice();
+ public native void setSocketDevice(TQSocketDevice arg1);
+ public native void connectToHost(String host, short port);
+ public native String peerName();
+ 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 long bytesAvailable();
+ public native long waitForMore(int msecs, boolean[] timeout);
+ public native long waitForMore(int msecs);
+ public native long bytesToWrite();
+ public native void clearPendingData();
+ public native long readBlock(StringBuffer data, long maxlen);
+ public native long writeBlock(String data, long len);
+ public native long readLine(String data, long maxlen);
+ public native int getch();
+ public native int putch(int arg1);
+ public native int ungetch(int arg1);
+ public native boolean canReadLine();
+ public native String readLine();
+ public native short port();
+ public native short peerPort();
+ public native TQHostAddress address();
+ public native TQHostAddress peerAddress();
+ public native void setReadBufferSize(long arg1);
+ public native long readBufferSize();
+ public static native String tr(String arg1, String arg2);
+ public static native String tr(String arg1);
+ protected native void sn_read(boolean force);
+ protected native void sn_read();
+ protected native void sn_write();
+ /** 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();
+ public native int flags();
+ public native int mode();
+ public native boolean isDirectAccess();
+ public native boolean isSequentialAccess();
+ public native boolean isCombinedAccess();
+ public native boolean isBuffered();
+ public native boolean isRaw();
+ public native boolean isSynchronous();
+ public native boolean isAsynchronous();
+ public native boolean isTranslated();
+ public native boolean isReadable();
+ public native boolean isWritable();
+ public native boolean isReadWrite();
+ public native boolean isInactive();
+ public native boolean isOpen();
+ public native int status();
+ public native void resetStatus();
+ public native boolean reset();
+ public native long writeBlock(byte[] data);
+ public native byte[] readAll();
+ protected native void setFlags(int f);
+ protected native void setType(int arg1);
+ protected native void setMode(int arg1);
+ public native void setState(int arg1);
+ public native void setStatus(int arg1);
+}