5#ifndef BITCOIN_QT_OPTIONSMODEL_H
6#define BITCOIN_QT_OPTIONSMODEL_H
10#include <QAbstractListModel>
53 bool resetSettings =
false);
81 void Init(
bool resetSettings =
false);
86 int role = Qt::DisplayRole)
const override;
88 int role = Qt::EditRole)
override;
Interface from Qt to configuration data structure for Bitcoin client.
int getDisplayUnit() const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
QString strOverriddenByCommandLine
bool getProxySettings(QNetworkProxy &proxy) const
bool isRestartRequired() const
void Init(bool resetSettings=false)
bool getCoinControlFeatures() const
bool fCoinControlFeatures
interfaces::Node * m_node
interfaces::Node & node() const
void setDisplayUnit(const QVariant &value)
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal.
void coinControlFeaturesChanged(bool)
QString strThirdPartyTxUrls
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void SetPruneTargetGB(int prune_target_gb, bool force=false)
void SetPruneEnabled(bool prune, bool force=false)
void displayUnitChanged(int unit)
bool getMinimizeToTray() const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
const QString & getOverriddenByCommandLine()
bool getMinimizeOnClose() const
void setNode(interfaces::Node &node)
QString getThirdPartyTxUrls() const
bool getHideTrayIcon() const
void addOverriddenOption(const std::string &option)
void setRestartRequired(bool fRequired)
void hideTrayIconChanged(bool)
Top-level interface for a bitcoin node (bitcoind process).
static constexpr uint64_t GB_BYTES
static int PruneMiBtoGB(int64_t mib)
Convert configured prune target MiB to displayed GB.
static int64_t PruneGBtoMiB(int gb)
Convert displayed prune target GB to configured MiB.
QT_END_NAMESPACE const char * DEFAULT_GUI_PROXY_HOST
static constexpr uint16_t DEFAULT_GUI_PROXY_PORT
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...