35 #ifndef OPENMS_SYSTEM_NETWORKGETREQUEST_H 36 #define OPENMS_SYSTEM_NETWORKGETREQUEST_H 38 #include <OpenMS/config.h> 40 #include <QtCore/QObject> 41 #include <QtCore/QString> 42 #include <QtCore/QTimer> 43 #include <QtCore/QUrl> 44 #include <QtNetwork/QNetworkRequest> 45 #include <QtNetwork/QNetworkReply> 68 OPENMS_DLLAPI
void setUrl(
const QUrl& url);
83 OPENMS_DLLAPI
void run();
93 OPENMS_DLLAPI
void done();
97 OPENMS_DLLAPI NetworkGetRequest&
operator=(
const NetworkGetRequest& rhs);
Definition: NetworkGetRequest.h:50
QByteArray response_bytes_
Definition: NetworkGetRequest.h:101
QString getErrorString() const
returns the error message, if hasError can be used to check whether an error has occurred ...
bool hasError() const
returns true if an error occurred during the query
QUrl url_
Definition: NetworkGetRequest.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
NetworkGetRequest & operator=(const NetworkGetRequest &rhs)
assignment operator
virtual ~NetworkGetRequest()
destructor
QString getResponse() const
returns the response
QNetworkReply::NetworkError error_
Definition: NetworkGetRequest.h:105
NetworkGetRequest(QObject *parent=0)
default constructor
void setUrl(const QUrl &url)
QString error_string_
Definition: NetworkGetRequest.h:106
void replyFinished(QNetworkReply *)
QNetworkAccessManager * manager_
Definition: NetworkGetRequest.h:103
QNetworkReply * reply_
Definition: NetworkGetRequest.h:104