5 #ifndef BITCOIN_QT_ADDRESSTABLEMODEL_H 6 #define BITCOIN_QT_ADDRESSTABLEMODEL_H 8 #include <QAbstractTableModel> 55 int rowCount(
const QModelIndex &parent)
const;
57 QVariant
data(
const QModelIndex &
index,
int role)
const;
58 bool setData(
const QModelIndex &
index,
const QVariant &value,
int role);
59 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
60 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
61 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
62 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
68 QString
addRow(
const QString &type,
const QString &label,
const QString &address,
const OutputType address_type);
92 bool getAddressData(
const QString &address, std::string*
name, std::string* purpose)
const;
100 void updateEntry(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
105 #endif // BITCOIN_QT_ADDRESSTABLEMODEL_H Generating a new public key for a receiving address failed.
bool getAddressData(const QString &address, std::string *name, std::string *purpose) const
Look up address book data given an address string.
QModelIndex index(int row, int column, const QModelIndex &parent) const
int lookupAddress(const QString &address) const
Qt::ItemFlags flags(const QModelIndex &index) const
Address already in address book.
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QString purposeForAddress(const QString &address) const
Look up purpose for address in address book, if not found return empty string.
QString addRow(const QString &type, const QString &label, const QString &address, const OutputType address_type)
static const QString Send
Specifies send address.
int rowCount(const QModelIndex &parent) const
int columnCount(const QModelIndex &parent) const
Wallet could not be unlocked to create new receiving address.
EditStatus
Return status of edit/insert operation.
QString labelForAddress(const QString &address) const
Look up label for address in address book, if not found return empty string.
WalletModel *const walletModel
Qt model of the address book in the core.
OutputType GetDefaultAddressType() const
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Interface to Bitcoin wallet from Qt view code.
static const QString Receive
Specifies receive address.
void emitDataChanged(int index)
Notify listeners that data changed.
QVariant data(const QModelIndex &index, int role) const
AddressTableModel(WalletModel *parent=0)
bool setData(const QModelIndex &index, const QVariant &value, int role)
No changes were made during edit operation.
EditStatus getEditStatus() const
void updateEntry(const QString &address, const QString &label, bool isMine, const QString &purpose, int status)
Type of address (Send or Receive)