summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQHttp.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/org/trinitydesktop/qt/TQHttp.java')
-rw-r--r--qtjava/javalib/org/trinitydesktop/qt/TQHttp.java105
1 files changed, 105 insertions, 0 deletions
diff --git a/qtjava/javalib/org/trinitydesktop/qt/TQHttp.java b/qtjava/javalib/org/trinitydesktop/qt/TQHttp.java
new file mode 100644
index 00000000..43169445
--- /dev/null
+++ b/qtjava/javalib/org/trinitydesktop/qt/TQHttp.java
@@ -0,0 +1,105 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.qt;
+
+import org.trinitydesktop.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();
+}