5 #ifndef BITCOIN_QT_ADDRESSTABLEMODEL_H 6 #define BITCOIN_QT_ADDRESSTABLEMODEL_H 8 #include <QAbstractTableModel> 51 int rowCount(
const QModelIndex &parent)
const;
53 QVariant
data(
const QModelIndex &
index,
int role)
const;
54 bool setData(
const QModelIndex &
index,
const QVariant &value,
int role);
55 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
56 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
57 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
58 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
64 QString
addRow(
const QString &type,
const QString &label,
const QString &address);
90 void updateEntry(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
95 #endif // BITCOIN_QT_ADDRESSTABLEMODEL_H bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
static const QString Send
QString addRow(const QString &type, const QString &label, const QString &address)
static const QString Receive
Qt::ItemFlags flags(const QModelIndex &index) const
int lookupAddress(const QString &address) const
EditStatus getEditStatus() const
WalletModel * walletModel
int columnCount(const QModelIndex &parent) const
QModelIndex index(int row, int column, const QModelIndex &parent) const
AddressTableModel(CWallet *wallet, WalletModel *parent=0)
QString labelForAddress(const QString &address) const
void updateEntry(const QString &address, const QString &label, bool isMine, const QString &purpose, int status)
void emitDataChanged(int index)
bool setData(const QModelIndex &index, const QVariant &value, int role)
QVariant data(const QModelIndex &index, int role) const
int rowCount(const QModelIndex &parent) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const