4 #include <QAbstractListModel>
6 /* Interface from QT to configuration data structure for bitcoin client.
7 To QT, the options are presented as a list with the different options
9 This can be changed to a tree once the settings become sufficiently
12 class OptionsModel : public QAbstractListModel
16 explicit OptionsModel(QObject *parent = 0);
30 int rowCount(const QModelIndex & parent = QModelIndex()) const;
31 QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
32 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
34 /* Explicit getters */
35 qint64 getTransactionFee();
36 bool getMinimizeToTray();
37 bool getMinimizeOnClose();
44 #endif // OPTIONSMODEL_H