22 #ifndef QGSHTTPTRANSACTION_H
23 #define QGSHTTPTRANSACTION_H
26 #include <QNetworkProxy>
48 QString proxyHost = QString(),
50 QString proxyUser = QString(),
51 QString proxyPass = QString(),
52 QNetworkProxy::ProxyType proxyType = QNetworkProxy::NoProxy,
53 QString userName = QString(),
54 QString password = QString() );
59 void getAsynchronously();
76 bool getSynchronously( QByteArray &respondedContent,
int redirections = 0,
const QByteArray* postData = 0 );
78 QString responseContentType();
86 QString errorString();
90 static bool applyProxySettings( QHttp& http,
const QString& url );
97 void setCredentials(
const QString& username,
const QString &password );
107 void dataStarted(
int id );
109 void dataHeaderReceived(
const QHttpResponseHeader& resp );
111 void dataReceived(
const QHttpResponseHeader& resp );
113 void dataProgress(
int done,
int total );
115 void dataFinished(
int id,
bool error );
117 void transactionFinished(
bool error );
119 void dataStateChanged(
int state );
121 void networkTimedOut();
129 void setProgress(
int done,
int total );
132 void dataReadProgress(
int theProgress );
134 void totalSteps(
int theTotalSteps );
137 void statusChanged( QString theStatusQString );