Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <tokenitemmodel.h>
Public Types | |
enum | ColumnIndex { Name = 0, Symbol = 1, Balance = 2 } |
enum | DataRole { HashRole = Qt::UserRole + 1, AddressRole = Qt::UserRole + 2, NameRole = Qt::UserRole + 3, SymbolRole = Qt::UserRole + 4, DecimalsRole = Qt::UserRole + 5, SenderRole = Qt::UserRole + 6, BalanceRole = Qt::UserRole + 7, RawBalanceRole = Qt::UserRole + 8 } |
Public Slots | |
void | checkTokenBalanceChanged () |
Public Member Functions | |
TokenItemModel (CWallet *wallet, WalletModel *parent=0) | |
~TokenItemModel () | |
Token * | getTokenAbi () |
Methods overridden from QAbstractItemModel | |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &child) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
Private Slots | |
void | updateToken (const QString &hash, int status, bool showToken) |
Private Member Functions | |
void | emitDataChanged (int index) |
Notify listeners that data changed. More... | |
void | subscribeToCoreSignals () |
void | unsubscribeFromCoreSignals () |
Private Attributes | |
Token * | tokenAbi |
QStringList | columns |
WalletModel * | walletModel |
CWallet * | wallet |
TokenItemPriv * | priv |
TokenTxWorker * | worker |
QThread | t |
Friends | |
class | TokenItemPriv |
Definition at line 15 of file tokenitemmodel.h.
Enumerator | |
---|---|
Name | |
Symbol | |
Balance |
Definition at line 19 of file tokenitemmodel.h.
Enumerator | |
---|---|
HashRole | |
AddressRole | |
NameRole | |
SymbolRole | |
DecimalsRole | |
SenderRole | |
BalanceRole | |
RawBalanceRole |
Definition at line 25 of file tokenitemmodel.h.
TokenItemModel::TokenItemModel | ( | CWallet * | wallet, |
WalletModel * | parent = 0 |
||
) |
TokenItemModel::~TokenItemModel | ( | ) |
|
slot |
Definition at line 437 of file tokenitemmodel.cpp.
int TokenItemModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 351 of file tokenitemmodel.cpp.
QVariant TokenItemModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 357 of file tokenitemmodel.cpp.
|
private |
Notify listeners that data changed.
Definition at line 463 of file tokenitemmodel.cpp.
Token * TokenItemModel::getTokenAbi | ( | ) |
QModelIndex TokenItemModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
Definition at line 328 of file tokenitemmodel.cpp.
QModelIndex TokenItemModel::parent | ( | const QModelIndex & | child | ) | const |
Definition at line 339 of file tokenitemmodel.cpp.
int TokenItemModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 345 of file tokenitemmodel.cpp.
|
private |
|
private |
|
privateslot |
|
friend |
Definition at line 71 of file tokenitemmodel.h.
|
private |
Definition at line 64 of file tokenitemmodel.h.
|
private |
Definition at line 67 of file tokenitemmodel.h.
|
private |
Definition at line 69 of file tokenitemmodel.h.
|
private |
Definition at line 63 of file tokenitemmodel.h.
|
private |
Definition at line 66 of file tokenitemmodel.h.
|
private |
Definition at line 65 of file tokenitemmodel.h.
|
private |
Definition at line 68 of file tokenitemmodel.h.