5 #ifndef BITCOIN_QT_ADDRESSTABLEMODEL_H 6 #define BITCOIN_QT_ADDRESSTABLEMODEL_H 8 #include <QAbstractTableModel> 37 TypeRole = Qt::UserRole
47 KEY_GENERATION_FAILURE
55 int rowCount(
const QModelIndex &parent)
const override;
56 int columnCount(
const QModelIndex &parent)
const override;
57 QVariant data(
const QModelIndex &index,
int role)
const override;
58 bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
59 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
60 QModelIndex index(
int row,
int column,
const QModelIndex &parent)
const override;
61 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex())
override;
62 Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
68 QString addRow(
const QString &type,
const QString &label,
const QString &address,
const OutputType address_type);
71 QString labelForAddress(
const QString &address)
const;
74 QString purposeForAddress(
const QString &address)
const;
79 int lookupAddress(
const QString &address)
const;
92 bool getAddressData(
const QString &address, std::string*
name, std::string* purpose)
const;
95 void emitDataChanged(
int index);
100 void updateEntry(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
105 #endif // BITCOIN_QT_ADDRESSTABLEMODEL_H
Address already in address book.
static const QString Send
Specifies send address.
Wallet could not be unlocked to create new receiving address.
EditStatus
Return status of edit/insert operation.
WalletModel *const walletModel
Qt model of the address book in the core.
Interface to Bitcoin wallet from Qt view code.
static const QString Receive
Specifies receive address.
No changes were made during edit operation.
EditStatus getEditStatus() const