blob: e5f69f6a11dcceb53a8a5d14e3815536cc52656a (
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 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);
}
|