improve address book, add less conspicious toolbar icon
[novacoin.git] / addresstablemodel.h
1 #ifndef ADDRESSTABLEMODEL_H
2 #define ADDRESSTABLEMODEL_H
3
4 #include <QAbstractTableModel>
5
6 class AddressTableModel : public QAbstractTableModel
7 {
8     Q_OBJECT
9 public:
10     explicit AddressTableModel(QObject *parent = 0);
11
12     enum {
13         Label = 0,  /* User specified label */
14         Address = 1,  /* Bitcoin address */
15         Type = 2 /* Send/Receive, used for filter */
16     } ColumnIndex;
17
18     static const QString Send; /* Send addres */
19     static const QString Receive; /* Receive address */
20
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;
26 signals:
27
28 public slots:
29
30 };
31
32 #endif // ADDRESSTABLEMODEL_H