5 #include <QAbstractListModel>
9 /** Interface from QT to configuration data structure for bitcoin client.
10 To QT, the options are presented as a list with the different options
12 This can be changed to a tree once the settings become sufficiently
15 class OptionsModel : public QAbstractListModel
19 explicit OptionsModel(CWallet *wallet, QObject *parent = 0);
22 StartAtStartup, // bool
23 MinimizeToTray, // bool
25 MinimizeOnClose, // bool
26 ConnectSOCKS4, // bool
30 DisplayUnit, // BitcoinUnits::Unit
31 DisplayAddresses, // bool
35 int rowCount(const QModelIndex & parent = QModelIndex()) const;
36 QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
37 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
39 /* Explicit getters */
40 qint64 getTransactionFee();
41 bool getMinimizeToTray();
42 bool getMinimizeOnClose();
44 bool getDisplayAddresses();
46 // Wallet stores persistent options
49 bool bDisplayAddresses;
51 void displayUnitChanged(int unit);
57 #endif // OPTIONSMODEL_H