diff options
Diffstat (limited to 'qtjava/javalib/org/kde/qt/QSocket.java')
-rw-r--r-- | qtjava/javalib/org/kde/qt/QSocket.java | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/qtjava/javalib/org/kde/qt/QSocket.java b/qtjava/javalib/org/kde/qt/QSocket.java new file mode 100644 index 00000000..36967507 --- /dev/null +++ b/qtjava/javalib/org/kde/qt/QSocket.java @@ -0,0 +1,108 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.qt; + +import org.kde.qt.Qt; + +/** + See {@link QSocketSignals} for signals emitted by QSocket +*/ +public class QSocket extends QObject implements QIODeviceInterface { + protected QSocket(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 QMetaObject metaObject(); + public native String className(); + public QSocket(QObject parent, String name) { + super((Class) null); + newQSocket(parent,name); + } + private native void newQSocket(QObject parent, String name); + public QSocket(QObject parent) { + super((Class) null); + newQSocket(parent); + } + private native void newQSocket(QObject parent); + public QSocket() { + super((Class) null); + newQSocket(); + } + private native void newQSocket(); + public native int state(); + public native int socket(); + public native void setSocket(int arg1); + public native QSocketDevice socketDevice(); + public native void setSocketDevice(QSocketDevice 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 QHostAddress address(); + public native QHostAddress 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); +} |