org.kde.qt

Class QHttp

public class QHttp extends QNetworkProtocol

See QHttpSignals for signals emitted by QHttp
Field Summary
static intAborted
static intClosing
static intConnected
static intConnecting
static intConnectionRefused
static intHostLookup
static intHostNotFound
static intInvalidResponseHeader
static intNoError
static intReading
static intSending
static intUnconnected
static intUnexpectedClose
static intUnknownError
static intWrongContentLength
Constructor Summary
protected QHttp(Class dummy)
QHttp()
QHttp(QObject parent, String name)
QHttp(QObject parent)
QHttp(String hostname, short port, QObject parent, String name)
QHttp(String hostname, short port, QObject parent)
QHttp(String hostname, short port)
QHttp(String hostname)
Method Summary
voidabort()
longbytesAvailable()
StringclassName()
voidclearPendingRequests()
intcloseConnection()
QIODeviceInterfacecurrentDestinationDevice()
intcurrentId()
QHttpRequestHeadercurrentRequest()
QIODeviceInterfacecurrentSourceDevice()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
interror()
StringerrorString()
protected voidfinalize()
Deletes the wrapped C++ instance
intget(String path, QIODeviceInterface to)
intget(String path)
booleanhasPendingRequests()
inthead(String path)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
protected voidoperationGet(QNetworkOperation op)
protected voidoperationPut(QNetworkOperation op)
intpost(String path, QIODeviceInterface data, QIODeviceInterface to)
intpost(String path, QIODeviceInterface data)
intpost(String path, byte[] data, QIODeviceInterface to)
intpost(String path, byte[] data)
byte[]readAll()
longreadBlock(StringBuffer data, long maxlen)
intrequest(QHttpRequestHeader header, QIODeviceInterface device, QIODeviceInterface to)
intrequest(QHttpRequestHeader header, QIODeviceInterface device)
intrequest(QHttpRequestHeader header)
intrequest(QHttpRequestHeader header, byte[] data, QIODeviceInterface to)
intrequest(QHttpRequestHeader header, byte[] data)
intsetHost(String hostname, short port)
intsetHost(String hostname)
intstate()
intsupportedOperations()
protected voidtimerEvent(QTimerEvent arg1)
static Stringtr(String arg1, String arg2)
static Stringtr(String arg1)

Field Detail

Aborted

public static final int Aborted

Closing

public static final int Closing

Connected

public static final int Connected

Connecting

public static final int Connecting

ConnectionRefused

public static final int ConnectionRefused

HostLookup

public static final int HostLookup

HostNotFound

public static final int HostNotFound

InvalidResponseHeader

public static final int InvalidResponseHeader

NoError

public static final int NoError

Reading

public static final int Reading

Sending

public static final int Sending

Unconnected

public static final int Unconnected

UnexpectedClose

public static final int UnexpectedClose

UnknownError

public static final int UnknownError

WrongContentLength

public static final int WrongContentLength

Constructor Detail

QHttp

protected QHttp(Class dummy)

QHttp

public QHttp()

QHttp

public QHttp(QObject parent, String name)

QHttp

public QHttp(QObject parent)

QHttp

public QHttp(String hostname, short port, QObject parent, String name)

QHttp

public QHttp(String hostname, short port, QObject parent)

QHttp

public QHttp(String hostname, short port)

QHttp

public QHttp(String hostname)

Method Detail

abort

public void abort()

bytesAvailable

public long bytesAvailable()

className

public String className()

clearPendingRequests

public void clearPendingRequests()

closeConnection

public int closeConnection()

currentDestinationDevice

public QIODeviceInterface currentDestinationDevice()

currentId

public int currentId()

currentRequest

public QHttpRequestHeader currentRequest()

currentSourceDevice

public QIODeviceInterface currentSourceDevice()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

error

public int error()

errorString

public String errorString()

finalize

protected void finalize()
Deletes the wrapped C++ instance

get

public int get(String path, QIODeviceInterface to)

get

public int get(String path)

hasPendingRequests

public boolean hasPendingRequests()

head

public int head(String path)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

operationGet

protected void operationGet(QNetworkOperation op)

operationPut

protected void operationPut(QNetworkOperation op)

post

public int post(String path, QIODeviceInterface data, QIODeviceInterface to)

post

public int post(String path, QIODeviceInterface data)

post

public int post(String path, byte[] data, QIODeviceInterface to)

post

public int post(String path, byte[] data)

readAll

public byte[] readAll()

readBlock

public long readBlock(StringBuffer data, long maxlen)

request

public int request(QHttpRequestHeader header, QIODeviceInterface device, QIODeviceInterface to)

request

public int request(QHttpRequestHeader header, QIODeviceInterface device)

request

public int request(QHttpRequestHeader header)

request

public int request(QHttpRequestHeader header, byte[] data, QIODeviceInterface to)

request

public int request(QHttpRequestHeader header, byte[] data)

setHost

public int setHost(String hostname, short port)

setHost

public int setHost(String hostname)

state

public int state()

supportedOperations

public int supportedOperations()

timerEvent

protected void timerEvent(QTimerEvent arg1)

tr

public static String tr(String arg1, String arg2)

tr

public static String tr(String arg1)