| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef SILENTNETWORKACCESSMANAGER_H |
| 4 | #define SILENTNETWORKACCESSMANAGER_H |
| 5 | |
| 6 | #include "network-web/basenetworkaccessmanager.h" |
| 7 | |
| 8 | #include <QPointer> |
| 9 | |
| 10 | // Network manager used for more communication for feeds. |
| 11 | // This network manager does not provide any GUI interaction options. |
| 12 | class SilentNetworkAccessManager : public BaseNetworkAccessManager { |
| 13 | Q_OBJECT |
| 14 | |
| 15 | public: |
| 16 | explicit SilentNetworkAccessManager(QObject* parent = nullptr); |
| 17 | virtual ~SilentNetworkAccessManager(); |
| 18 | |
| 19 | public slots: |
| 20 | |
| 21 | // NOTE: This cannot do any GUI stuff. |
| 22 | void onAuthenticationRequired(QNetworkReply* reply, QAuthenticator* authenticator); |
| 23 | }; |
| 24 | |
| 25 | #endif // SILENTNETWORKACCESSMANAGER_H |