PythonQtWrapper_QNetworkReply.h
83 lines
| 3.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QNETWORKREPLY_H | ||
#define PYTHONQTWRAPPER_QNETWORKREPLY_H | ||||
#include <qnetworkreply.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qiodevice.h> | ||||
#include <qlist.h> | ||||
#include <qnetworkaccessmanager.h> | ||||
#include <qnetworkrequest.h> | ||||
#include <qobject.h> | ||||
#include <qurl.h> | ||||
florianlink
|
r24 | class PythonQtShell_QNetworkReply : public QNetworkReply | ||
{ | ||||
public: | ||||
PythonQtShell_QNetworkReply(QObject* parent = 0):QNetworkReply(parent),_wrapper(NULL) {}; | ||||
virtual void abort(); | ||||
virtual bool atEnd() const; | ||||
virtual qint64 bytesAvailable() const; | ||||
virtual qint64 bytesToWrite() const; | ||||
virtual bool canReadLine() const; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void close(); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void ignoreSslErrors(); | ||||
virtual bool isSequential() const; | ||||
virtual bool open(QIODevice::OpenMode mode); | ||||
virtual qint64 pos() const; | ||||
virtual qint64 readData(char* data, qint64 maxlen); | ||||
virtual qint64 readLineData(char* data, qint64 maxlen); | ||||
virtual bool reset(); | ||||
virtual bool seek(qint64 pos); | ||||
virtual void setReadBufferSize(qint64 size); | ||||
virtual qint64 size() const; | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual bool waitForBytesWritten(int msecs); | ||||
virtual bool waitForReadyRead(int msecs); | ||||
virtual qint64 writeData(const char* data, qint64 len); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QNetworkReply : public QNetworkReply | ||||
{ public: | ||||
florianlink
|
r28 | inline bool promoted_isSequential() const { return QNetworkReply::isSequential(); } | ||
inline void promoted_setReadBufferSize(qint64 size) { QNetworkReply::setReadBufferSize(size); } | ||||
inline qint64 promoted_writeData(const char* data, qint64 len) { return QNetworkReply::writeData(data, len); } | ||||
inline void promoted_close() { QNetworkReply::close(); } | ||||
inline void promoted_ignoreSslErrors() { QNetworkReply::ignoreSslErrors(); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QNetworkReply : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
void delete_QNetworkReply(QNetworkReply* obj) { delete obj; } | ||||
florianlink
|
r24 | QUrl url(QNetworkReply* theWrappedObject) const; | ||
florianlink
|
r13 | bool hasRawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const; | ||
QList<QByteArray > rawHeaderList(QNetworkReply* theWrappedObject) const; | ||||
florianlink
|
r24 | QByteArray rawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const; | ||
QNetworkAccessManager::Operation operation(QNetworkReply* theWrappedObject) const; | ||||
bool isSequential(QNetworkReply* theWrappedObject) const; | ||||
florianlink
|
r13 | void setReadBufferSize(QNetworkReply* theWrappedObject, qint64 size); | ||
florianlink
|
r24 | QVariant attribute(QNetworkReply* theWrappedObject, QNetworkRequest::Attribute code) const; | ||
qint64 writeData(QNetworkReply* theWrappedObject, const char* data, qint64 len); | ||||
qint64 readBufferSize(QNetworkReply* theWrappedObject) const; | ||||
QVariant header(QNetworkReply* theWrappedObject, QNetworkRequest::KnownHeaders header) const; | ||||
QNetworkAccessManager* manager(QNetworkReply* theWrappedObject) const; | ||||
florianlink
|
r28 | QNetworkRequest request(QNetworkReply* theWrappedObject) const; | ||
void close(QNetworkReply* theWrappedObject); | ||||
QNetworkReply::NetworkError error(QNetworkReply* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QNETWORKREPLY_H | ||||