Qt model of the contract book in the core.
More...
#include <contracttablemodel.h>
|
void | updateEntry (const QString &address, const QString &label, const QString &abi, int status) |
|
|
| ContractTableModel (CWallet *wallet, WalletModel *parent=0) |
|
| ~ContractTableModel () |
|
QString | addRow (const QString &label, const QString &address, const QString &abi) |
|
QString | labelForAddress (const QString &address) const |
|
QString | abiForAddress (const QString &address) const |
|
int | lookupAddress (const QString &address) const |
|
EditStatus | getEditStatus () const |
|
void | resetEditStatus () |
|
|
int | rowCount (const QModelIndex &parent) const |
|
int | columnCount (const QModelIndex &parent) const |
|
QVariant | data (const QModelIndex &index, int role) const |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
|
QModelIndex | index (int row, int column, const QModelIndex &parent) const |
|
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
|
Qt model of the contract book in the core.
This allows views to access and modify the contract book.
Definition at line 15 of file contracttablemodel.h.
Enumerator |
---|
Label |
User specified label.
|
Address |
Contract address.
|
ABI |
Contract abi.
|
Definition at line 23 of file contracttablemodel.h.
Return status of edit/insert operation.
Enumerator |
---|
OK |
Everything ok.
|
NO_CHANGES |
No changes were made during edit operation.
|
DUPLICATE_ADDRESS |
Address already in contract book.
|
Definition at line 30 of file contracttablemodel.h.
ContractTableModel::~ContractTableModel |
( |
| ) |
|
QString ContractTableModel::abiForAddress |
( |
const QString & |
address | ) |
const |
QString ContractTableModel::addRow |
( |
const QString & |
label, |
|
|
const QString & |
address, |
|
|
const QString & |
abi |
|
) |
| |
int ContractTableModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
QVariant ContractTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
void ContractTableModel::emitDataChanged |
( |
int |
index | ) |
|
|
private |
EditStatus ContractTableModel::getEditStatus |
( |
| ) |
const |
|
inline |
QVariant ContractTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
QModelIndex ContractTableModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| const |
QString ContractTableModel::labelForAddress |
( |
const QString & |
address | ) |
const |
int ContractTableModel::lookupAddress |
( |
const QString & |
address | ) |
const |
bool ContractTableModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
void ContractTableModel::resetEditStatus |
( |
| ) |
|
int ContractTableModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
bool ContractTableModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
void ContractTableModel::updateEntry |
( |
const QString & |
address, |
|
|
const QString & |
label, |
|
|
const QString & |
abi, |
|
|
int |
status |
|
) |
| |
|
slot |
QStringList ContractTableModel::columns |
|
private |
CWallet* ContractTableModel::wallet |
|
private |
The documentation for this class was generated from the following files: