Bitcoin Core  0.20.99
P2P Digital Currency
Classes | Functions | Variables
optionsmodel.cpp File Reference
#include <qt/optionsmodel.h>
#include <qt/bitcoinunits.h>
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#include <interfaces/node.h>
#include <validation.h>
#include <net.h>
#include <netbase.h>
#include <txdb.h>
#include <util/string.h>
#include <QDebug>
#include <QSettings>
#include <QStringList>
Include dependency graph for optionsmodel.cpp:

Go to the source code of this file.

Classes

struct  ProxySetting
 

Functions

static const QString GetDefaultProxyAddress ()
 
static void CopySettings (QSettings &dst, const QSettings &src)
 Helper function to copy contents from one QSettings to another. More...
 
static void BackupSettings (const fs::path &filename, const QSettings &src)
 Back up a QSettings to an ini-formatted file. More...
 
static ProxySetting GetProxySetting (QSettings &settings, const QString &name)
 
static void SetProxySetting (QSettings &settings, const QString &name, const ProxySetting &ip_port)
 

Variables

const char * DEFAULT_GUI_PROXY_HOST = "127.0.0.1"
 

Function Documentation

◆ BackupSettings()

static void BackupSettings ( const fs::path &  filename,
const QSettings &  src 
)
static

Back up a QSettings to an ini-formatted file.

Definition at line 170 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CopySettings()

static void CopySettings ( QSettings &  dst,
const QSettings &  src 
)
static

Helper function to copy contents from one QSettings to another.

By using allKeys this also covers nested settings in a hierarchy.

Definition at line 162 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ GetDefaultProxyAddress()

static const QString GetDefaultProxyAddress ( )
static

Definition at line 235 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ GetProxySetting()

static ProxySetting GetProxySetting ( QSettings &  settings,
const QString &  name 
)
static

Definition at line 214 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ SetProxySetting()

static void SetProxySetting ( QSettings &  settings,
const QString &  name,
const ProxySetting ip_port 
)
static

Definition at line 230 of file optionsmodel.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ DEFAULT_GUI_PROXY_HOST

const char* DEFAULT_GUI_PROXY_HOST = "127.0.0.1"

Definition at line 26 of file optionsmodel.cpp.