summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QHttp.java
blob: ff15f8797bcd0e320c93cf6af628e28e08fa254f (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 QHttpSignals} for signals emitted by QHttp
*/
public class QHttp extends QNetworkProtocol  {
	protected QHttp(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 QMetaObject metaObject();
	public native String className();
	public QHttp() {
		super((Class) null);
		newQHttp();
	}
	private native void newQHttp();
	public QHttp(QObject parent, String name) {
		super((Class) null);
		newQHttp(parent,name);
	}
	private native void newQHttp(QObject parent, String name);
	public QHttp(QObject parent) {
		super((Class) null);
		newQHttp(parent);
	}
	private native void newQHttp(QObject parent);
	public QHttp(String hostname, short port, QObject parent, String name) {
		super((Class) null);
		newQHttp(hostname,port,parent,name);
	}
	private native void newQHttp(String hostname, short port, QObject parent, String name);
	public QHttp(String hostname, short port, QObject parent) {
		super((Class) null);
		newQHttp(hostname,port,parent);
	}
	private native void newQHttp(String hostname, short port, QObject parent);
	public QHttp(String hostname, short port) {
		super((Class) null);
		newQHttp(hostname,port);
	}
	private native void newQHttp(String hostname, short port);
	public QHttp(String hostname) {
		super((Class) null);
		newQHttp(hostname);
	}
	private native void newQHttp(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, QIODeviceInterface to);
	public native int get(String path);
	public native int post(String path, QIODeviceInterface data, QIODeviceInterface to);
	public native int post(String path, QIODeviceInterface data);
	public native int post(String path, byte[] data, QIODeviceInterface to);
	public native int post(String path, byte[] data);
	public native int head(String path);
	public native int request(QHttpRequestHeader header, QIODeviceInterface device, QIODeviceInterface to);
	public native int request(QHttpRequestHeader header, QIODeviceInterface device);
	public native int request(QHttpRequestHeader header);
	public native int request(QHttpRequestHeader header, byte[] data, QIODeviceInterface to);
	public native int request(QHttpRequestHeader 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 QIODeviceInterface currentSourceDevice();
	public native QIODeviceInterface currentDestinationDevice();
	public native QHttpRequestHeader 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(QNetworkOperation op);
	protected native void operationPut(QNetworkOperation op);
	protected native void timerEvent(QTimerEvent 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();
}