|
Vesna
|
#include <NetworkRequestHandler.h>


Classes | |
| class | DataClass |
Public Types | |
| enum | SendNetworkRequestResult { NetworkRequestSentSuccessfully = 0, NetworkAccessManagerNotInitialized = 1, NetworkRequestError = 2, InvalidURL = 3 } |
Public Member Functions | |
| NetworkRequestHandler () | |
| virtual | ~NetworkRequestHandler () |
| void | Init (ApplicationStateManager *applicationStateManager) |
| void | RegisterNetworkRequest (const ApplicationDefines::NetworkRequestType networkRequestType, const QUrl url, const int networkRequestParameter=ApplicationDefines::NetworkRequestParameterUndefined) |
| SendNetworkRequestResult | SendNetworkRequest (const QJsonObject jsonRequest, const ApplicationDefines::NetworkRequestType networkRequestType, const int replyTimeout=0) |
| SendNetworkRequest - sends an HTTP POST request to the destination specified by request. More... | |
| SendNetworkRequestResult | SendNetworkRequest (const QUrlQuery urlQuery, const ApplicationDefines::NetworkRequestType networkRequestType, const int replyTimeout=0) |
| SendNetworkRequest - sends an HTTP GET request to obtain the contents of the target request. More... | |
| NetworkRequestHandler::NetworkRequestHandler | ( | ) |
|
virtual |
| void NetworkRequestHandler::Init | ( | ApplicationStateManager * | applicationStateManager | ) |
| void NetworkRequestHandler::RegisterNetworkRequest | ( | const ApplicationDefines::NetworkRequestType | networkRequestType, |
| const QUrl | url, | ||
| const int | networkRequestParameter = ApplicationDefines::NetworkRequestParameterUndefined |
||
| ) |
| NetworkRequestHandler::SendNetworkRequestResult NetworkRequestHandler::SendNetworkRequest | ( | const QJsonObject | jsonRequest, |
| const ApplicationDefines::NetworkRequestType | networkRequestType, | ||
| const int | replyTimeout = 0 |
||
| ) |
SendNetworkRequest - sends an HTTP POST request to the destination specified by request.
| replyTimeout | - in miliseconds |

| NetworkRequestHandler::SendNetworkRequestResult NetworkRequestHandler::SendNetworkRequest | ( | const QUrlQuery | urlQuery, |
| const ApplicationDefines::NetworkRequestType | networkRequestType, | ||
| const int | replyTimeout = 0 |
||
| ) |
SendNetworkRequest - sends an HTTP GET request to obtain the contents of the target request.
| replyTimeout | - in miliseconds |
1.8.8