1 #ifndef ADDRESSTABLEMODEL_H
2 #define ADDRESSTABLEMODEL_H
4 #include <QAbstractTableModel>
6 class AddressTableModel : public QAbstractTableModel
10 explicit AddressTableModel(QObject *parent = 0);
13 Label = 0, /* User specified label */
14 Address = 1, /* Bitcoin address */
15 Type = 2 /* Send/Receive, used for filter */
18 static const QString Send; /* Send addres */
19 static const QString Receive; /* Receive address */
21 int rowCount(const QModelIndex &parent) const;
22 int columnCount(const QModelIndex &parent) const;
23 QVariant data(const QModelIndex &index, int role) const;
24 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
25 Qt::ItemFlags flags(const QModelIndex &index) const;
32 #endif // ADDRESSTABLEMODEL_H