##// END OF EJS Templates
updated version number, next version will be 2.0 due to the wrapping generator addition...
updated version number, next version will be 2.0 due to the wrapping generator addition git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@69 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r33:1742cf875fd9
Show More
PythonQtWrapper_QNetworkReply.h
83 lines | 3.3 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QNETWORKREPLY_H
#define PYTHONQTWRAPPER_QNETWORKREPLY_H
#include <qnetworkreply.h>
#include <QObject>
#include <PythonQt.h>
#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>
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:
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(); }
};
class PythonQtWrapper_QNetworkReply : public QObject
{ Q_OBJECT
public:
public slots:
void delete_QNetworkReply(QNetworkReply* obj) { delete obj; }
QUrl url(QNetworkReply* theWrappedObject) const;
bool hasRawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const;
QList<QByteArray > rawHeaderList(QNetworkReply* theWrappedObject) const;
QByteArray rawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const;
QNetworkAccessManager::Operation operation(QNetworkReply* theWrappedObject) const;
bool isSequential(QNetworkReply* theWrappedObject) const;
void setReadBufferSize(QNetworkReply* theWrappedObject, qint64 size);
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;
QNetworkRequest request(QNetworkReply* theWrappedObject) const;
void close(QNetworkReply* theWrappedObject);
QNetworkReply::NetworkError error(QNetworkReply* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QNETWORKREPLY_H