21 #ifndef QGSHTTPTRANSACTION_H
22 #define QGSHTTPTRANSACTION_H
25 #include <QNetworkProxy>
46 QString proxyHost = QString(),
48 QString proxyUser = QString(),
49 QString proxyPass = QString(),
50 QNetworkProxy::ProxyType proxyType = QNetworkProxy::NoProxy,
51 QString userName = QString(),
52 QString password = QString() );
57 void getAsynchronously();
74 bool getSynchronously( QByteArray &respondedContent,
int redirections = 0,
const QByteArray* postData = 0 );
76 QString responseContentType();
84 QString errorString();
88 static bool applyProxySettings( QHttp& http,
const QString& url );
94 void setCredentials(
const QString& username,
const QString &password );
104 void dataStarted(
int id );
106 void dataHeaderReceived(
const QHttpResponseHeader& resp );
108 void dataReceived(
const QHttpResponseHeader& resp );
110 void dataProgress(
int done,
int total );
112 void dataFinished(
int id,
bool error );
114 void transactionFinished(
bool error );
116 void dataStateChanged(
int state );
118 void networkTimedOut();
126 void setProgress(
int done,
int total );
129 void dataReadProgress(
int theProgress );
131 void totalSteps(
int theTotalSteps );
134 void statusChanged( QString theStatusQString );
164 QByteArray httpresponse;
169 QString httpresponsecontenttype;
185 QString httpredirecturl;
194 int httpredirections;
199 QTimer * mWatchdogTimer;
217 int mNetworkTimeoutMsec;