OpenMS  2.5.0
List of all members
NetworkGetRequest Class Reference

#include <OpenMS/SYSTEM/NetworkGetRequest.h>

Inheritance diagram for NetworkGetRequest:
QObject

Constructors and destructors

QByteArray response_bytes_
 
QUrl url_
 
QNetworkAccessManager * manager_
 
QNetworkReply * reply_
 
QNetworkReply::NetworkError error_
 
QString error_string_
 
 NetworkGetRequest (QObject *parent=nullptr)
 default constructor More...
 
 ~NetworkGetRequest () override
 destructor More...
 
void setUrl (const QUrl &url)
 
QString getResponse () const
 returns the response More...
 
bool hasError () const
 returns true if an error occurred during the query More...
 
QString getErrorString () const
 returns the error message, if hasError can be used to check whether an error has occurred More...
 
void run ()
 
void timeOut ()
 
void replyFinished (QNetworkReply *)
 
void done ()
 
NetworkGetRequestoperator= (const NetworkGetRequest &rhs)
 assignment operator More...
 
 NetworkGetRequest (const NetworkGetRequest &rhs)
 copy constructor More...
 

Constructor & Destructor Documentation

◆ NetworkGetRequest() [1/2]

NetworkGetRequest ( QObject parent = nullptr)

default constructor

◆ ~NetworkGetRequest()

~NetworkGetRequest ( )
override

destructor

◆ NetworkGetRequest() [2/2]

NetworkGetRequest ( const NetworkGetRequest rhs)
private

copy constructor

Member Function Documentation

◆ done

void done ( )
signal

◆ getErrorString()

QString getErrorString ( ) const

returns the error message, if hasError can be used to check whether an error has occurred

◆ getResponse()

QString getResponse ( ) const

returns the response

◆ hasError()

bool hasError ( ) const

returns true if an error occurred during the query

◆ operator=()

NetworkGetRequest& operator= ( const NetworkGetRequest rhs)
private

assignment operator

◆ replyFinished

void replyFinished ( QNetworkReply *  )
privateslot

◆ run

void run ( )
slot

◆ setUrl()

void setUrl ( const QUrl &  url)

◆ timeOut

void timeOut ( )
slot

Member Data Documentation

◆ error_

QNetworkReply::NetworkError error_
private

◆ error_string_

QString error_string_
private

◆ manager_

QNetworkAccessManager* manager_
private

◆ reply_

QNetworkReply* reply_
private

◆ response_bytes_

QByteArray response_bytes_
private

◆ url_

QUrl url_
private