Na tej strani

Utils::NetworkAccessManager Class

class Utils::NetworkAccessManager

Razred NetworkAccessManager zagotavlja upravitelja omrežnega dostopa za uporabo z Qt Creator. Več...

Header: #include <NetworkAccessManager>

Javne funkcije

NetworkAccessManager(QObject *parent = nullptr)

Statični javni člani

Utils::NetworkAccessManager *instance()

Ponovno implementirane zaščitene funkcije

virtual QNetworkReply *createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData) override

Podroben opis

Splošna inicializacija, Qt Creator User Agent.

Priporočljivo je, da se instanca, ki jo vrne NetworkAccessManager::instance(), uporabi za glavni niz. Konstruktor je na voljo le za večnitno uporabo.

Dokumentacija funkcij članov

NetworkAccessManager::NetworkAccessManager(QObject *parent = nullptr)

Ustvari instanco upravitelja dostopa do omrežja, katere nadrejeni objekt je parent.

[override virtual protected] QNetworkReply *NetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice *outgoingData)

Ustvari objekt » request «, da lahko upravitelj omrežnega dostopa izvede operacijo » op « na » outgoingData «.

[static] Utils::NetworkAccessManager *NetworkAccessManager::instance()

Vrne instanco upravitelja omrežnega dostopa, ki jo je treba uporabiti za glavno nit.

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.