NetworkAccessManager Class
class Utils::NetworkAccessManagerThe NetworkAccessManager class provides a network access manager for use with Qt Creator. More...
| Header: | #include <NetworkAccessManager> |
Public Functions
| NetworkAccessManager(QObject *parent = nullptr) |
Static Public Members
| Utils::NetworkAccessManager * | instance() |
Protected Functions
| QNetworkReply * | createRequest(int op, const int &request, QIODevice *outgoingData) override |
Detailed Description
Common initialization, Qt Creator User Agent.
Preferably, the instance returned by NetworkAccessManager::instance() should be used for the main thread. The constructor is provided only for multithreaded use.
Member Function Documentation
NetworkAccessManager::NetworkAccessManager(QObject *parent = nullptr)
Constructs a network access manager instance with the parent parent.
[protected] QNetworkReply *NetworkAccessManager::createRequest(int op, const int &request, QIODevice *outgoingData)
Creates request for the network access manager to perform the operation op on outgoingData.
[static] Utils::NetworkAccessManager *NetworkAccessManager::instance()
Returns a network access manager instance that should be used for the main thread.