Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
TokenItemModel Class Reference

#include <tokenitemmodel.h>

Inheritance diagram for TokenItemModel:
[legend]
Collaboration diagram for TokenItemModel:
[legend]

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 ()
 
TokengetTokenAbi ()
 
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

TokentokenAbi
 
QStringList columns
 
WalletModelwalletModel
 
CWalletwallet
 
TokenItemPrivpriv
 
TokenTxWorkerworker
 
QThread t
 

Friends

class TokenItemPriv
 

Detailed Description

Definition at line 15 of file tokenitemmodel.h.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

TokenItemModel::TokenItemModel ( CWallet wallet,
WalletModel parent = 0 
)

Definition at line 286 of file tokenitemmodel.cpp.

Here is the call graph for this function:

TokenItemModel::~TokenItemModel ( )

Definition at line 308 of file tokenitemmodel.cpp.

Here is the call graph for this function:

Member Function Documentation

void TokenItemModel::checkTokenBalanceChanged ( )
slot

Definition at line 437 of file tokenitemmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenItemModel::emitDataChanged ( int  index)
private

Notify listeners that data changed.

Definition at line 463 of file tokenitemmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Token * TokenItemModel::getTokenAbi ( )

Definition at line 409 of file tokenitemmodel.cpp.

Here is the caller graph for this function:

QModelIndex TokenItemModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 328 of file tokenitemmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void TokenItemModel::subscribeToCoreSignals ( )
private

Definition at line 503 of file tokenitemmodel.cpp.

Here is the caller graph for this function:

void TokenItemModel::unsubscribeFromCoreSignals ( )
private

Definition at line 509 of file tokenitemmodel.cpp.

Here is the caller graph for this function:

void TokenItemModel::updateToken ( const QString &  hash,
int  status,
bool  showToken 
)
privateslot

Definition at line 414 of file tokenitemmodel.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class TokenItemPriv
friend

Definition at line 71 of file tokenitemmodel.h.

Member Data Documentation

QStringList TokenItemModel::columns
private

Definition at line 64 of file tokenitemmodel.h.

TokenItemPriv* TokenItemModel::priv
private

Definition at line 67 of file tokenitemmodel.h.

QThread TokenItemModel::t
private

Definition at line 69 of file tokenitemmodel.h.

Token* TokenItemModel::tokenAbi
private

Definition at line 63 of file tokenitemmodel.h.

CWallet* TokenItemModel::wallet
private

Definition at line 66 of file tokenitemmodel.h.

WalletModel* TokenItemModel::walletModel
private

Definition at line 65 of file tokenitemmodel.h.

TokenTxWorker* TokenItemModel::worker
private

Definition at line 68 of file tokenitemmodel.h.


The documentation for this class was generated from the following files: