4 #include <QAbstractListModel>
8 /* Interface from QT to configuration data structure for bitcoin client.
9 To QT, the options are presented as a list with the different options
11 This can be changed to a tree once the settings become sufficiently
14 class OptionsModel : public QAbstractListModel
18 explicit OptionsModel(CWallet *wallet, QObject *parent = 0);
21 StartAtStartup, // bool
22 MinimizeToTray, // bool
24 MinimizeOnClose, // bool
25 ConnectSOCKS4, // bool
29 DisplayUnit, // BitcoinUnits::Unit
33 int rowCount(const QModelIndex & parent = QModelIndex()) const;
34 QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
35 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
37 /* Explicit getters */
38 qint64 getTransactionFee();
39 bool getMinimizeToTray();
40 bool getMinimizeOnClose();
43 // Wallet stores persistent options
47 void displayUnitChanged(int unit);
53 #endif // OPTIONSMODEL_H