Utils::NetworkAccessManager Class
class Utils::NetworkAccessManagerLa classe `NetworkAccessManager` fornisce un gestore di accesso alla rete da utilizzare con ` Qt Creator`. Maggiori informazioni...
| Header: | #include <NetworkAccessManager> |
Funzioni pubbliche
| NetworkAccessManager(QObject *parent = nullptr) |
Membri pubblici statici
| Utils::NetworkAccessManager * | instance() |
Funzioni protette reimplementate
| virtual QNetworkReply * | createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData) override |
Descrizione dettagliata
Inizializzazione comune, Qt Creator User Agent.
Preferibilmente, l'istanza restituita da ` NetworkAccessManager::instance()` dovrebbe essere utilizzata per il thread principale. Il costruttore è fornito solo per l'uso multithread.
Documentazione delle funzioni membro
NetworkAccessManager::NetworkAccessManager(QObject *parent = nullptr)
Crea un'istanza di Network Access Manager con l'oggetto padre parent.
[override virtual protected] QNetworkReply *NetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData)
Crea un'istanza di " request " affinché il gestore dell'accesso alla rete possa eseguire l'operazione " op " su " outgoingData".
[static] Utils::NetworkAccessManager *NetworkAccessManager::instance()
Restituisce un'istanza del gestore di accesso alla rete da utilizzare per il thread principale.
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.