Na ovoj stranici

Utils::NetworkAccessManager Class

class Utils::NetworkAccessManager

Klasa NetworkAccessManager pruža upravitelj mrežnog pristupa za korištenje s Qt Creator. Više...

Header: #include <NetworkAccessManager>

Javne funkcije

NetworkAccessManager(QObject *parent = nullptr)

Statični javni članovi

Utils::NetworkAccessManager *instance()

Ponovno implementirane zaštićene funkcije

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

Detaljan opis

Zajednička inicijalizacija, Qt Creator korisnički agent.

Poželjno je da se instanca vraćena funkcijom NetworkAccessManager::instance() koristi za glavni nit. Konstruktor je osiguran samo za višenitnu upotrebu.

Dokumentacija funkcija člana

NetworkAccessManager::NetworkAccessManager(QObject *parent = nullptr)

Konstruira instancu upravitelja mrežnog pristupa s roditeljskim parent om.

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

Stvara request za upravitelja mrežnog pristupa da izvrši operaciju op na outgoingData.

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

Vraća instancu upravitelja mrežnog pristupa koja se treba koristiti za glavni 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.