6 #ifndef RAVEN_QT_ADDRESSTABLEMODEL_H 7 #define RAVEN_QT_ADDRESSTABLEMODEL_H 9 #include <QAbstractTableModel> 10 #include <QStringList> 52 int rowCount(
const QModelIndex &parent)
const;
54 QVariant
data(
const QModelIndex &
index,
int role)
const;
55 bool setData(
const QModelIndex &
index,
const QVariant &value,
int role);
56 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
57 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
58 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
59 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
65 QString
addRow(
const QString &type,
const QString &label,
const QString &address);
91 void updateEntry(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
96 #endif // RAVEN_QT_ADDRESSTABLEMODEL_H AddressTableModel(CWallet *wallet, WalletModel *parent=0)
Generating a new public key for a receiving address failed.
QModelIndex index(int row, int column, const QModelIndex &parent) const
int lookupAddress(const QString &address) const
Qt::ItemFlags flags(const QModelIndex &index) const
WalletModel * walletModel
Address already in address book.
QVariant headerData(int section, Qt::Orientation orientation, int role) const
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
Qt model of the address book in the core.
QString addRow(const QString &type, const QString &label, const QString &address)
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Interface to Raven 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
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.
EditStatus getEditStatus() const
void updateEntry(const QString &address, const QString &label, bool isMine, const QString &purpose, int status)
Type of address (Send or Receive)