| OpenMS 2.5.0

Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
NetworkGetRequest Class Reference

`#include <OpenMS/SYSTEM/NetworkGetRequest.h>`

Inheritance diagram for NetworkGetRequest:

## Public Slots

void | run ()
void | timeOut ()

## Signals

void | done ()

## Public Member Functions

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...
Constructors and destructors
| NetworkGetRequest (QObject *parent=nullptr)
| default constructor More...
| ~NetworkGetRequest () override
| destructor More...

## Private Slots

void | replyFinished (QNetworkReply *)

## Private Member Functions

NetworkGetRequest & | operator= (const NetworkGetRequest &rhs)
| assignment operator More...
| NetworkGetRequest (const NetworkGetRequest &rhs)
| copy constructor More...

## Private Attributes

QByteArray | response_bytes_
QUrl | url_
QNetworkAccessManager * | manager_
QNetworkReply * | reply_
QNetworkReply::NetworkError | error_
QString | error_string_

## 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 * |  | ) |

private slot

## ◆ 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