summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/TQHttp.java
blob: a74ea7fa97ecd6861270691b43a25000eb21093a (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

/**
 See {@link TQHttpSignals} for signals emitted by TQHttp
*/
public class TQHttp extends TQNetworkProtocol  {
	protected TQHttp(Class dummy){super((Class) null);}
	public static final int Unconnected = 0;
	public static final int HostLookup = 1;
	public static final int Connecting = 2;
	public static final int Sending = 3;
	public static final int Reading = 4;
	public static final int Connected = 5;
	public static final int Closing = 6;

	public static final int NoError = 0;
	public static final int UnknownError = 1;
	public static final int HostNotFound = 2;
	public static final int ConnectionRefused = 3;
	public static final int UnexpectedClose = 4;
	public static final int InvalidResponseHeader = 5;
	public static final int WrongContentLength = 6;
	public static final int Aborted = 7;

	public native TQMetaObject metaObject();
	public native String className();
	public TQHttp() {
		super((Class) null);
		newTQHttp();
	}
	private native void newTQHttp();
	public TQHttp(TQObject parent, String name) {
		super((Class) null);
		newTQHttp(parent,name);
	}
	private native void newTQHttp(TQObject parent, String name);
	public TQHttp(TQObject parent) {
		super((Class) null);
		newTQHttp(parent);
	}
	private native void newTQHttp(TQObject parent);
	public TQHttp(String hostname, short port, TQObject parent, String name) {
		super((Class) null);
		newTQHttp(hostname,port,parent,name);
	}
	private native void newTQHttp(String hostname, short port, TQObject parent, String name);
	public TQHttp(String hostname, short port, TQObject parent) {
		super((Class) null);
		newTQHttp(hostname,port,parent);
	}
	private native void newTQHttp(String hostname, short port, TQObject parent);
	public TQHttp(String hostname, short port) {
		super((Class) null);
		newTQHttp(hostname,port);
	}
	private native void newTQHttp(String hostname, short port);
	public TQHttp(String hostname) {
		super((Class) null);
		newTQHttp(hostname);
	}
	private native void newTQHttp(String hostname);
	public native int supportedOperations();
	public native int setHost(String hostname, short port);
	public native int setHost(String hostname);
	public native int get(String path, TQIODeviceInterface to);
	public native int get(String path);
	public native int post(String path, TQIODeviceInterface data, TQIODeviceInterface to);
	public native int post(String path, TQIODeviceInterface data);
	public native int post(String path, byte[] data, TQIODeviceInterface to);
	public native int post(String path, byte[] data);
	public native int head(String path);
	public native int request(TQHttpRequestHeader header, TQIODeviceInterface device, TQIODeviceInterface to);
	public native int request(TQHttpRequestHeader header, TQIODeviceInterface device);
	public native int request(TQHttpRequestHeader header);
	public native int request(TQHttpRequestHeader header, byte[] data, TQIODeviceInterface to);
	public native int request(TQHttpRequestHeader header, byte[] data);
	public native int closeConnection();
	public native long bytesAvailable();
	public native long readBlock(StringBuffer data, long maxlen);
	public native byte[] readAll();
	public native int currentId();
	public native TQIODeviceInterface currentSourceDevice();
	public native TQIODeviceInterface currentDestinationDevice();
	public native TQHttpRequestHeader currentRequest();
	public native boolean hasPendingRequests();
	public native void clearPendingRequests();
	public native int state();
	public native int error();
	public native String errorString();
	public native void abort();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	protected native void operationGet(TQNetworkOperation op);
	protected native void operationPut(TQNetworkOperation op);
	protected native void timerEvent(TQTimerEvent arg1);
	/** 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();
}