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() |
Reimplemented Protected Functions
virtual QNetworkReply * | createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &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.
[override virtual protected]
QNetworkReply *NetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &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.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.