summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QHttp.java
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit90825e2392b2d70e43c7a25b8a3752299a933894 (patch)
treee33aa27f02b74604afbfd0ea4f1cfca8833d882a /qtjava/javalib/org/kde/qt/QHttp.java
downloadtdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz
tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtjava/javalib/org/kde/qt/QHttp.java')
-rw-r--r--qtjava/javalib/org/kde/qt/QHttp.java105
1 files changed, 105 insertions, 0 deletions
diff --git a/qtjava/javalib/org/kde/qt/QHttp.java b/qtjava/javalib/org/kde/qt/QHttp.java
new file mode 100644
index 00000000..ff15f879
--- /dev/null
+++ b/qtjava/javalib/org/kde/qt/QHttp.java
@@ -0,0 +1,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();
+}