blob: 3696750722525e35add1900c09b4604421f57af7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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);
}
|