1 #ifndef CONTRACTTABLEMODEL_H 2 #define CONTRACTTABLEMODEL_H 4 #include <QAbstractTableModel> 38 int rowCount(
const QModelIndex &parent)
const;
40 QVariant
data(
const QModelIndex &
index,
int role)
const;
41 bool setData(
const QModelIndex &
index,
const QVariant &value,
int role);
42 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
43 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
44 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
50 QString
addRow(
const QString &label,
const QString &
address,
const QString &abi);
84 void updateEntry(
const QString &
address,
const QString &label,
const QString &abi,
int status);
89 #endif // CONTRACTTABLEMODEL_H
QVariant data(const QModelIndex &index, int role) const
bool setData(const QModelIndex &index, const QVariant &value, int role)
int lookupAddress(const QString &address) const
Address already in contract book.
int columnCount(const QModelIndex &parent) const
QString addRow(const QString &label, const QString &address, const QString &abi)
void emitDataChanged(int index)
Notify listeners that data changed.
void updateEntry(const QString &address, const QString &label, const QString &abi, int status)
WalletModel * walletModel
int rowCount(const QModelIndex &parent) const
No changes were made during edit operation.
QString abiForAddress(const QString &address) const
ContractTableModel(CWallet *wallet, WalletModel *parent=0)
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QString labelForAddress(const QString &address) const
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
QModelIndex index(int row, int column, const QModelIndex &parent) const
Qt model of the contract book in the core.
Interface to Fabcoin wallet from Qt view code.
void updateEditStatus(EditStatus status)
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
struct evm_uint160be address(struct evm_env *env)
EditStatus
Return status of edit/insert operation.
EditStatus getEditStatus() const