JS8Call-Improved master
Loading...
Searching...
No Matches
NetworkAccessManager Class Reference

QNetworkAccessManager subclass that remembers allowed SSL errors. More...

#include <NetworkAccessManager.h>

Inheritance diagram for NetworkAccessManager:
Collaboration diagram for NetworkAccessManager:

Public Member Functions

 NetworkAccessManager (QWidget *parent)
 Construct a NetworkAccessManager with a parent widget used for prompts.

Protected Member Functions

QNetworkReply * createRequest (Operation operation, QNetworkRequest const &request, QIODevice *outgoing_data=nullptr) override
 Intercept request creation and apply cached allowed SSL errors.

Detailed Description

QNetworkAccessManager subclass that remembers allowed SSL errors.

When the underlying network stack emits sslErrors, this manager will prompt the user (via JS8MessageBox) to ignore specific errors and cache the user's decision. The cached exceptions are then applied to subsequent replies produced by createRequest() so the user experience is smoother when connecting to servers with known-but-acceptable certificate issues.

Constructor & Destructor Documentation

◆ NetworkAccessManager()

NetworkAccessManager::NetworkAccessManager ( QWidget * parent)
inline

Construct a NetworkAccessManager with a parent widget used for prompts.

Parameters
parentParent widget shown when prompting the user about SSL errors.

Member Function Documentation

◆ createRequest()

QNetworkReply * NetworkAccessManager::createRequest ( Operation operation,
QNetworkRequest const & request,
QIODevice * outgoing_data = nullptr )
inlineoverrideprotected

Intercept request creation and apply cached allowed SSL errors.

Overrides QNetworkAccessManager::createRequest to attach the previously accepted SSL error exceptions to the produced QNetworkReply.


The documentation for this class was generated from the following file: