1 #ifndef ADDRESSTABLEMODEL_H
2 #define ADDRESSTABLEMODEL_H
4 #include <QAbstractTableModel>
46 int rowCount(
const QModelIndex &parent)
const;
48 QVariant
data(
const QModelIndex &
index,
int role)
const;
50 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
51 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
52 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
53 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
59 QString
addRow(
const QString &type,
const QString &label,
const QString &address);
88 void updateEntry(
const QString &address,
const QString &label,
bool isMine,
int status);
93 #endif // ADDRESSTABLEMODEL_H
AddressTableModel(CWallet *wallet, WalletModel *parent=0)
QModelIndex index(int row, int column, const QModelIndex &parent) const
Generating a new public key for a receiving address failed.
WalletModel * walletModel
int lookupAddress(const QString &address) const
Address already in address book.
void updateEntry(const QString &address, const QString &label, bool isMine, int status)
void defaultAddressChanged(const QString &address)
static const QString Send
Specifies send address.
Wallet could not be unlocked to create new receiving address.
EditStatus
Return status of edit/insert operation.
int rowCount(const QModelIndex &parent) const
Qt model of the address book in the core.
EditStatus getEditStatus() const
QString addRow(const QString &type, const QString &label, const QString &address)
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
QString labelForAddress(const QString &address) const
QVariant data(const QModelIndex &index, int role) const
Interface to Bitcoin wallet from Qt view code.
static const QString Receive
Specifies receive address.
QVariant headerData(int section, Qt::Orientation orientation, int role) const
void emitDataChanged(int index)
Notify listeners that data changed.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
bool setData(const QModelIndex &index, const QVariant &value, int role)
No changes were made during edit operation.
Qt::ItemFlags flags(const QModelIndex &index) const
Type of address (Send or Receive)
int columnCount(const QModelIndex &parent) const