Bitcoin ABC 0.30.7
P2P Digital Currency
|
Interface from Qt to configuration data structure for Bitcoin client. More...
#include <optionsmodel.h>
Public Types | |
enum | OptionID { StartAtStartup , HideTrayIcon , MinimizeToTray , MapPortUPnP , MapPortNatpmp , MinimizeOnClose , ProxyUse , ProxyIP , ProxyPort , ProxyUseTor , ProxyIPTor , ProxyPortTor , DisplayUnit , ThirdPartyTxUrls , Language , CoinControlFeatures , ThreadsScriptVerif , Prune , PruneSize , DatabaseCache , SpendZeroConfChange , Listen , OptionIDRowCount } |
Signals | |
void | displayUnitChanged (int unit) |
void | coinControlFeaturesChanged (bool) |
void | hideTrayIconChanged (bool) |
Public Member Functions | |
OptionsModel (QObject *parent=nullptr, bool resetSettings=false) | |
void | Init (bool resetSettings=false) |
void | Reset () |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
void | setDisplayUnit (const QVariant &value) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal. More... | |
bool | getHideTrayIcon () const |
bool | getMinimizeToTray () const |
bool | getMinimizeOnClose () const |
int | getDisplayUnit () const |
QString | getThirdPartyTxUrls () const |
bool | getProxySettings (QNetworkProxy &proxy) const |
bool | getCoinControlFeatures () const |
const QString & | getOverriddenByCommandLine () |
void | SetPruneEnabled (bool prune, bool force=false) |
void | SetPruneTargetGB (int prune_target_gb, bool force=false) |
void | setRestartRequired (bool fRequired) |
bool | isRestartRequired () const |
interfaces::Node & | node () const |
void | setNode (interfaces::Node &node) |
Private Member Functions | |
void | addOverriddenOption (const std::string &option) |
void | checkAndMigrate () |
Private Attributes | |
interfaces::Node * | m_node = nullptr |
bool | fHideTrayIcon |
bool | fMinimizeToTray |
bool | fMinimizeOnClose |
QString | language |
int | nDisplayUnit |
QString | strThirdPartyTxUrls |
bool | fCoinControlFeatures |
QString | strOverriddenByCommandLine |
Interface from Qt to configuration data structure for Bitcoin client.
To Qt, the options are presented as a list with the different options laid out vertically. This can be changed to a tree once the settings become sufficiently complex.
Definition at line 48 of file optionsmodel.h.
Definition at line 55 of file optionsmodel.h.
|
explicit |
|
private |
Definition at line 39 of file optionsmodel.cpp.
|
private |
Definition at line 583 of file optionsmodel.cpp.
|
signal |
|
override |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool OptionsModel::getProxySettings | ( | QNetworkProxy & | proxy | ) | const |
|
inline |
|
signal |
void OptionsModel::Init | ( | bool | resetSettings = false | ) |
Definition at line 46 of file optionsmodel.cpp.
bool OptionsModel::isRestartRequired | ( | ) | const |
|
inline |
Definition at line 113 of file optionsmodel.h.
void OptionsModel::Reset | ( | ) |
Definition at line 234 of file optionsmodel.cpp.
|
override |
Definition at line 259 of file optionsmodel.cpp.
|
override |
void OptionsModel::setDisplayUnit | ( | const QVariant & | value | ) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal.
Definition at line 545 of file optionsmodel.cpp.
|
inline |
Definition at line 117 of file optionsmodel.h.
void OptionsModel::SetPruneEnabled | ( | bool | prune, |
bool | force = false |
||
) |
Definition at line 298 of file optionsmodel.cpp.
void OptionsModel::SetPruneTargetGB | ( | int | prune_target_gb, |
bool | force = false |
||
) |
Definition at line 313 of file optionsmodel.cpp.
void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
|
private |
Definition at line 131 of file optionsmodel.h.
|
private |
Definition at line 125 of file optionsmodel.h.
|
private |
Definition at line 127 of file optionsmodel.h.
|
private |
Definition at line 126 of file optionsmodel.h.
|
private |
Definition at line 128 of file optionsmodel.h.
|
private |
Definition at line 123 of file optionsmodel.h.
|
private |
Definition at line 129 of file optionsmodel.h.
|
private |
Definition at line 133 of file optionsmodel.h.
|
private |
Definition at line 130 of file optionsmodel.h.