##// END OF EJS Templates
added builtin support for variants etc., this will replace the direct includes in PythonQt...
added builtin support for variants etc., this will replace the direct includes in PythonQt git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@129 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r93:7b53f64eae84
Show More
PythonQtWrapper_QHttp.h
79 lines | 4.3 KiB | text/x-c | CLexer
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QHTTP_H
#define PYTHONQTWRAPPER_QHTTP_H
#include <qhttp.h>
#include <QObject>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQt.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QVariant>
#include <qauthenticator.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qhttp.h>
#include <qiodevice.h>
#include <qlist.h>
#include <qnetworkproxy.h>
#include <qobject.h>
#include <qtcpsocket.h>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 class PythonQtShell_QHttp : public QHttp
{
public:
PythonQtShell_QHttp(QObject* parent = 0):QHttp(parent),_wrapper(NULL) {};
PythonQtShell_QHttp(const QString& hostname, QHttp::ConnectionMode mode, unsigned short port = 0, QObject* parent = 0):QHttp(hostname, mode, port, parent),_wrapper(NULL) {};
PythonQtShell_QHttp(const QString& hostname, unsigned short port = 80, QObject* parent = 0):QHttp(hostname, port, parent),_wrapper(NULL) {};
virtual void childEvent(QChildEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void timerEvent(QTimerEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 class PythonQtWrapper_QHttp : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Error ConnectionMode State )
enum Error{
NoError = QHttp::NoError, UnknownError = QHttp::UnknownError, HostNotFound = QHttp::HostNotFound, ConnectionRefused = QHttp::ConnectionRefused, UnexpectedClose = QHttp::UnexpectedClose, InvalidResponseHeader = QHttp::InvalidResponseHeader, WrongContentLength = QHttp::WrongContentLength, Aborted = QHttp::Aborted, AuthenticationRequiredError = QHttp::AuthenticationRequiredError, ProxyAuthenticationRequiredError = QHttp::ProxyAuthenticationRequiredError};
enum ConnectionMode{
ConnectionModeHttp = QHttp::ConnectionModeHttp, ConnectionModeHttps = QHttp::ConnectionModeHttps};
enum State{
Unconnected = QHttp::Unconnected, HostLookup = QHttp::HostLookup, Connecting = QHttp::Connecting, Sending = QHttp::Sending, Reading = QHttp::Reading, Connected = QHttp::Connected, Closing = QHttp::Closing};
public slots:
QHttp* new_QHttp(QObject* parent = 0);
QHttp* new_QHttp(const QString& hostname, QHttp::ConnectionMode mode, unsigned short port = 0, QObject* parent = 0);
QHttp* new_QHttp(const QString& hostname, unsigned short port = 80, QObject* parent = 0);
void delete_QHttp(QHttp* obj) { delete obj; }
florianlink
upgraded wrappers to current generator version...
r28 int setProxy(QHttp* theWrappedObject, const QNetworkProxy& proxy);
florianlink
recreated wrappers to match current python qt version...
r73 int request(QHttp* theWrappedObject, const QHttpRequestHeader& header, QIODevice* device = 0, QIODevice* to = 0);
QHttpRequestHeader currentRequest(QHttp* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 QHttp::State state(QHttp* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 QHttp::Error error(QHttp* theWrappedObject) const;
int request(QHttp* theWrappedObject, const QHttpRequestHeader& header, const QByteArray& data, QIODevice* to = 0);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 bool hasPendingRequests(QHttp* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 int setSocket(QHttp* theWrappedObject, QTcpSocket* socket);
int setUser(QHttp* theWrappedObject, const QString& username, const QString& password = QString());
int post(QHttp* theWrappedObject, const QString& path, const QByteArray& data, QIODevice* to = 0);
florianlink
upgraded wrappers to current generator version...
r28 QIODevice* currentDestinationDevice(QHttp* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 qint64 bytesAvailable(QHttp* theWrappedObject) const;
QByteArray readAll(QHttp* theWrappedObject);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 int setHost(QHttp* theWrappedObject, const QString& hostname, QHttp::ConnectionMode mode, unsigned short port = 0);
florianlink
recreated wrappers to match current python qt version...
r73 int currentId(QHttp* theWrappedObject) const;
int setHost(QHttp* theWrappedObject, const QString& hostname, unsigned short port = 80);
int setProxy(QHttp* theWrappedObject, const QString& host, int port, const QString& username = QString(), const QString& password = QString());
florianlink
upgraded wrappers to current generator version...
r28 void clearPendingRequests(QHttp* theWrappedObject);
florianlink
recreated wrappers to match current python qt version...
r73 QHttpResponseHeader lastResponse(QHttp* theWrappedObject) const;
qint64 read(QHttp* theWrappedObject, char* data, qint64 maxlen);
QIODevice* currentSourceDevice(QHttp* theWrappedObject) const;
int get(QHttp* theWrappedObject, const QString& path, QIODevice* to = 0);
florianlink
upgraded wrappers to current generator version...
r28 QString errorString(QHttp* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 int close(QHttp* theWrappedObject);
florianlink
recreated wrappers to match current python qt version...
r73 int head(QHttp* theWrappedObject, const QString& path);
int post(QHttp* theWrappedObject, const QString& path, QIODevice* data, QIODevice* to = 0);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 };
#endif // PYTHONQTWRAPPER_QHTTP_H