Ignore:
Timestamp:
10/05/17 17:59:45 (5 years ago)
Author:
gregor herrmann <gregor@…>
Branches:
master
Children:
68efead
Parents:
8180111
git-author:
gregor herrmann <gregor@…> (10/05/17 13:27:04)
git-committer:
gregor herrmann <gregor@…> (10/05/17 17:59:45)
Message:

Add ProxyType? setting in preparation of SOCKS5 proxy support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/app/appsettings.cpp

    r8180111 r0ede0a2  
    2222const QString PROXY_ADDRESS_SETTING ("proxyAddress");
    2323const QString PROXY_PORT_SETTING ("proxyPort");
    24 const QString PROXY_ISDIRECT_SETTING ("proxyIsDirectConnection");
     24const QString PROXY_TYPE_SETTING ("proxyType");
     25const QString PROXY_ISDIRECT_SETTING ("proxyIsDirectConnection");
    2526
    2627QSettings AppSettings::mSettings("Toastfreeware", "ConfClerk");
     
    3435{
    3536    return mSettings.value(PROXY_PORT_SETTING).toUInt();
     37}
     38
     39//QNetworkProxy::ProxyType
     40int AppSettings::proxyType()
     41{
     42    return mSettings.value(PROXY_TYPE_SETTING).toInt();
    3643}
    3744
     
    5158}
    5259
     60// QNetworkProxy::ProxyType
     61void AppSettings::setProxyType(const int aType)
     62{
     63    mSettings.setValue(PROXY_TYPE_SETTING, aType);
     64}
     65
    5366void AppSettings::setDirectConnection(bool aDirectConnection)
    5467{
Note: See TracChangeset for help on using the changeset viewer.