5 #ifndef BITCOIN_QT_OPTIONSMODEL_H 6 #define BITCOIN_QT_OPTIONSMODEL_H 12 #include <QAbstractListModel> 44 explicit OptionsModel(QObject *parent =
nullptr,
bool resetSettings =
false);
71 void Init(
bool resetSettings =
false);
74 int rowCount(
const QModelIndex & parent = QModelIndex())
const override;
75 QVariant data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const override;
76 bool setData(
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole)
override;
78 void setDisplayUnit(
const QVariant &value);
90 void SetPruneEnabled(
bool prune,
bool force =
false);
91 void SetPruneTargetGB(
int prune_target_gb,
bool force =
false);
94 void setRestartRequired(
bool fRequired);
95 bool isRestartRequired()
const;
114 void addOverriddenOption(
const std::string &option);
117 void checkAndMigrate();
119 void displayUnitChanged(
int unit);
120 void coinControlFeaturesChanged(
bool);
121 void hideTrayIconChanged(
bool);
124 #endif // BITCOIN_QT_OPTIONSMODEL_H
const QString & getOverriddenByCommandLine()
static constexpr uint64_t GB_BYTES
const char * DEFAULT_GUI_PROXY_HOST
static int64_t PruneGBtoMiB(int gb)
Convert displayed prune target GB to configured MiB.
bool getHideTrayIcon() const
QString getThirdPartyTxUrls() const
static int PruneMiBtoGB(int64_t mib)
Convert configured prune target MiB to displayed GB.
void setNode(interfaces::Node &node)
bool getMinimizeToTray() const
bool fCoinControlFeatures
int getDisplayUnit() const
static constexpr uint16_t DEFAULT_GUI_PROXY_PORT
interfaces::Node & node() const
Interface from Qt to configuration data structure for Bitcoin client.
QString strThirdPartyTxUrls
bool getMinimizeOnClose() const
bool getCoinControlFeatures() const
Top-level interface for a bitcoin node (bitcoind process).
QString strOverriddenByCommandLine