CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
CFxNetworkAccessManager Class Referenceabstract

#include <FxNetworkAccessManager.h>

Inheritance diagram for CFxNetworkAccessManager:

Classes

struct  AccessData
 
struct  Parameter
 

Public Types

typedef std::vector< ParameterParametersList
 

Public Member Functions

 CFxNetworkAccessManager ()
 
virtual ~CFxNetworkAccessManager ()
 
virtual QNetworkReply * post (const AccessData &data)=0
 
virtual QNetworkReply * get (const AccessData &data)=0
 
virtual QNetworkProxy proxy ()=0
 
virtual void setProxy (const QNetworkProxy &proxy)=0
 
virtual bool findProxyServer ()=0
 
virtual int showDialog ()=0
 
virtual void setUseSystemProxyConfiguration (bool enable)=0
 
virtual bool usesSystemProxyConfiguration ()=0
 
virtual QMetaObject::Connection connectToProxyUpdated (std::function< void(QNetworkProxy)> slot)=0
 

Detailed Description

Description: Represents a CFx class for network communications via HTTP. This class will cover issues with proxy servers. Library: DDKERNEL

Definition at line 57 of file FxNetworkAccessManager.h.

Member Typedef Documentation

◆ ParametersList

Definition at line 74 of file FxNetworkAccessManager.h.

Constructor & Destructor Documentation

◆ CFxNetworkAccessManager()

CFxNetworkAccessManager::CFxNetworkAccessManager ( )

◆ ~CFxNetworkAccessManager()

virtual CFxNetworkAccessManager::~CFxNetworkAccessManager ( )
virtual

Member Function Documentation

◆ connectToProxyUpdated()

virtual QMetaObject::Connection CFxNetworkAccessManager::connectToProxyUpdated ( std::function< void(QNetworkProxy)>  slot)
pure virtual

◆ findProxyServer()

virtual bool CFxNetworkAccessManager::findProxyServer ( )
pure virtual

Description: Checks if some proxy server details can be found. After updating proxy server a sample request is done to get authentification details if needed. This call is blocking.

◆ get()

virtual QNetworkReply * CFxNetworkAccessManager::get ( const AccessData data)
pure virtual

Description: Sends the get request using the access data.

◆ post()

virtual QNetworkReply * CFxNetworkAccessManager::post ( const AccessData data)
pure virtual

Description: Sends the post request using the access data.

◆ proxy()

virtual QNetworkProxy CFxNetworkAccessManager::proxy ( )
pure virtual

Description: Returns the proxy object containing proxy server setting.

◆ setProxy()

virtual void CFxNetworkAccessManager::setProxy ( const QNetworkProxy &  proxy)
pure virtual

Description: Sets the proxy data (type, host, port, user, and password).

◆ setUseSystemProxyConfiguration()

virtual void CFxNetworkAccessManager::setUseSystemProxyConfiguration ( bool  enable)
pure virtual

Description: If enabled, proxy configuration will be taken from the system settings. The proxy settings of CFxNetworkAccessManager will be ignored if this is enabled.

◆ showDialog()

virtual int CFxNetworkAccessManager::showDialog ( )
pure virtual

Description: Shows the proxy server settings dialog. The user can add/change settings for a proxy server connection. Settings can be read via CFxNetworkAccessManager::proxy().

If you cancels dialog method will return RTCAN else RTNORM.

◆ usesSystemProxyConfiguration()

virtual bool CFxNetworkAccessManager::usesSystemProxyConfiguration ( )
pure virtual

Description: Returns whether the proxy configuration is set from the system settings.


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