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 );
 
   91     void setCredentials( 
const QString& username, 
const QString &password );
 
  101     void dataStarted( 
int id );
 
  103     void dataHeaderReceived( 
const QHttpResponseHeader& resp );
 
  105     void dataReceived( 
const QHttpResponseHeader& resp );
 
  107     void dataProgress( 
int done, 
int total );
 
  109     void dataFinished( 
int id, 
bool error );
 
  111     void transactionFinished( 
bool error );
 
  113     void dataStateChanged( 
int state );
 
  115     void networkTimedOut();
 
  123     void setProgress( 
int done, 
int total );
 
  126     void dataReadProgress( 
int theProgress );
 
  128     void totalSteps( 
int theTotalSteps );
 
  131     void statusChanged( QString theStatusQString );
 
  161     QByteArray httpresponse;
 
  166     QString    httpresponsecontenttype;
 
  182     QString httpredirecturl;
 
  191     int httpredirections;
 
  196     QTimer * mWatchdogTimer;
 
  214     int mNetworkTimeoutMsec;