qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Types | Public Member Functions | List of all members
ICoreSettings Class Referenceabstract

#include <icoresettings.h>

Inheritance diagram for ICoreSettings:
Inheritance graph
Collaboration diagram for ICoreSettings:
Collaboration graph

Public Types

enum  ProxyType { ProxyType::ptNone = 0, ProxyType::ptSOCKS5 = 1, ProxyType::ptHTTP = 2 }
 

Public Member Functions

 ICoreSettings ()=default
 
virtual ~ICoreSettings ()
 
 ICoreSettings (const ICoreSettings &)=default
 
ICoreSettingsoperator= (const ICoreSettings &)=default
 
 ICoreSettings (ICoreSettings &&)=default
 
ICoreSettingsoperator= (ICoreSettings &&)=default
 
virtual bool getEnableIPv6 () const =0
 
virtual void setEnableIPv6 (bool enable)=0
 
virtual bool getForceTCP () const =0
 
virtual void setForceTCP (bool enable)=0
 
virtual bool getEnableLanDiscovery () const =0
 
virtual void setEnableLanDiscovery (bool enable)=0
 
virtual QString getProxyAddr () const =0
 
virtual void setProxyAddr (const QString &address)=0
 
virtual ProxyType getProxyType () const =0
 
virtual void setProxyType (ProxyType type)=0
 
virtual quint16 getProxyPort () const =0
 
virtual void setProxyPort (quint16 port)=0
 
virtual QNetworkProxy getProxy () const =0
 
 DECLARE_SIGNAL (enableIPv6Changed, bool enabled)
 
 DECLARE_SIGNAL (forceTCPChanged, bool enabled)
 
 DECLARE_SIGNAL (enableLanDiscoveryChanged, bool enabled)
 
 DECLARE_SIGNAL (proxyTypeChanged, ICoreSettings::ProxyType type)
 
 DECLARE_SIGNAL (proxyAddressChanged, const QString &address)
 
 DECLARE_SIGNAL (proxyPortChanged, quint16 port)
 

Detailed Description

Definition at line 28 of file icoresettings.h.

Member Enumeration Documentation

◆ ProxyType

Enumerator
ptNone 
ptSOCKS5 
ptHTTP 

Definition at line 30 of file icoresettings.h.

Constructor & Destructor Documentation

◆ ICoreSettings() [1/3]

ICoreSettings::ICoreSettings ( )
default

◆ ~ICoreSettings()

ICoreSettings::~ICoreSettings ( )
virtualdefault

◆ ICoreSettings() [2/3]

ICoreSettings::ICoreSettings ( const ICoreSettings )
default

◆ ICoreSettings() [3/3]

ICoreSettings::ICoreSettings ( ICoreSettings &&  )
default

Member Function Documentation

◆ DECLARE_SIGNAL() [1/6]

ICoreSettings::DECLARE_SIGNAL ( enableIPv6Changed  ,
bool  enabled 
)

◆ DECLARE_SIGNAL() [2/6]

ICoreSettings::DECLARE_SIGNAL ( enableLanDiscoveryChanged  ,
bool  enabled 
)

◆ DECLARE_SIGNAL() [3/6]

ICoreSettings::DECLARE_SIGNAL ( forceTCPChanged  ,
bool  enabled 
)

◆ DECLARE_SIGNAL() [4/6]

ICoreSettings::DECLARE_SIGNAL ( proxyAddressChanged  ,
const QString &  address 
)

◆ DECLARE_SIGNAL() [5/6]

ICoreSettings::DECLARE_SIGNAL ( proxyPortChanged  ,
quint16  port 
)

◆ DECLARE_SIGNAL() [6/6]

ICoreSettings::DECLARE_SIGNAL ( proxyTypeChanged  ,
ICoreSettings::ProxyType  type 
)

◆ getEnableIPv6()

virtual bool ICoreSettings::getEnableIPv6 ( ) const
pure virtual

Implemented in Settings.

Here is the caller graph for this function:

◆ getEnableLanDiscovery()

virtual bool ICoreSettings::getEnableLanDiscovery ( ) const
pure virtual

Implemented in Settings.

Here is the caller graph for this function:

◆ getForceTCP()

virtual bool ICoreSettings::getForceTCP ( ) const
pure virtual

Implemented in Settings.

Here is the caller graph for this function:

◆ getProxy()

virtual QNetworkProxy ICoreSettings::getProxy ( ) const
pure virtual

Implemented in Settings.

◆ getProxyAddr()

virtual QString ICoreSettings::getProxyAddr ( ) const
pure virtual

Implemented in Settings.

Here is the caller graph for this function:

◆ getProxyPort()

virtual quint16 ICoreSettings::getProxyPort ( ) const
pure virtual

Implemented in Settings.

Here is the caller graph for this function:

◆ getProxyType()

virtual ProxyType ICoreSettings::getProxyType ( ) const
pure virtual

Implemented in Settings.

Here is the caller graph for this function:

◆ operator=() [1/2]

ICoreSettings& ICoreSettings::operator= ( const ICoreSettings )
default

◆ operator=() [2/2]

ICoreSettings& ICoreSettings::operator= ( ICoreSettings &&  )
default

◆ setEnableIPv6()

virtual void ICoreSettings::setEnableIPv6 ( bool  enable)
pure virtual

Implemented in Settings.

◆ setEnableLanDiscovery()

virtual void ICoreSettings::setEnableLanDiscovery ( bool  enable)
pure virtual

Implemented in Settings.

◆ setForceTCP()

virtual void ICoreSettings::setForceTCP ( bool  enable)
pure virtual

Implemented in Settings.

◆ setProxyAddr()

virtual void ICoreSettings::setProxyAddr ( const QString &  address)
pure virtual

Implemented in Settings.

◆ setProxyPort()

virtual void ICoreSettings::setProxyPort ( quint16  port)
pure virtual

Implemented in Settings.

◆ setProxyType()

virtual void ICoreSettings::setProxyType ( ProxyType  type)
pure virtual

Implemented in Settings.


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