Fabcoin Core
0.16.2
P2P Digital Currency
|
Model for Fabcoin network client. More...
#include <clientmodel.h>
Public Slots | |
void | updateTimer () |
void | updateNumConnections (int numConnections) |
void | updateNetworkActive (bool networkActive) |
void | updateAlert () |
void | updateBanlist () |
Signals | |
void | numConnectionsChanged (int count) |
void | numBlocksChanged (int count, const QDateTime &blockDate, double nVerificationProgress, bool header) |
void | mempoolSizeChanged (long count, size_t mempoolSizeInBytes) |
void | networkActiveChanged (bool networkActive) |
void | alertsChanged (const QString &warnings) |
void | bytesChanged (quint64 totalBytesIn, quint64 totalBytesOut) |
void | tipChanged () |
void | message (const QString &title, const QString &message, unsigned int style) |
Fired when a message should be reported to the user. More... | |
void | showProgress (const QString &title, int nProgress) |
Public Member Functions | |
ClientModel (OptionsModel *optionsModel, QObject *parent=0) | |
~ClientModel () | |
OptionsModel * | getOptionsModel () |
PeerTableModel * | getPeerTableModel () |
BanTableModel * | getBanTableModel () |
int | getNumConnections (unsigned int flags=CONNECTIONS_ALL) const |
Return number of connections, default is in- and outbound (total) More... | |
int | getNumBlocks () const |
int | getHeaderTipHeight () const |
int64_t | getHeaderTipTime () const |
long | getMempoolSize () const |
Return number of transactions in the mempool. More... | |
size_t | getMempoolDynamicUsage () const |
Return the dynamic memory usage of the mempool. More... | |
quint64 | getTotalBytesRecv () const |
quint64 | getTotalBytesSent () const |
double | getVerificationProgress (const CBlockIndex *tip) const |
QDateTime | getLastBlockDate () const |
bool | inInitialBlockDownload () const |
Return true if core is doing initial block download. More... | |
enum BlockSource | getBlockSource () const |
Returns enum BlockSource of the current importing/syncing state. More... | |
bool | getNetworkActive () const |
Return true if network activity in core is enabled. More... | |
void | setNetworkActive (bool active) |
Toggle network activity state in core. More... | |
QString | getStatusBarWarnings () const |
Return warnings to be displayed in status bar. More... | |
void | getGasInfo (uint64_t &blockGasLimit, uint64_t &minGasPrice, uint64_t &nGasPrice) const |
Get the information about the needed gas. More... | |
QString | formatFullVersion () const |
QString | formatSubVersion () const |
bool | isReleaseVersion () const |
QString | formatClientStartupTime () const |
QString | dataDir () const |
Public Attributes | |
std::atomic< int > | cachedBestHeaderHeight |
std::atomic< int64_t > | cachedBestHeaderTime |
Private Member Functions | |
void | subscribeToCoreSignals () |
void | unsubscribeFromCoreSignals () |
Private Attributes | |
OptionsModel * | optionsModel |
PeerTableModel * | peerTableModel |
BanTableModel * | banTableModel |
QTimer * | pollTimer |
Model for Fabcoin network client.
Definition at line 38 of file clientmodel.h.
|
explicit |
ClientModel::~ClientModel | ( | ) |
|
signal |
|
signal |
QString ClientModel::dataDir | ( | ) | const |
Definition at line 255 of file clientmodel.cpp.
QString ClientModel::formatClientStartupTime | ( | ) | const |
Definition at line 250 of file clientmodel.cpp.
QString ClientModel::formatFullVersion | ( | ) | const |
Definition at line 235 of file clientmodel.cpp.
QString ClientModel::formatSubVersion | ( | ) | const |
BanTableModel * ClientModel::getBanTableModel | ( | ) |
enum BlockSource ClientModel::getBlockSource | ( | ) | const |
Returns enum BlockSource of the current importing/syncing state.
Definition at line 178 of file clientmodel.cpp.
void ClientModel::getGasInfo | ( | uint64_t & | blockGasLimit, |
uint64_t & | minGasPrice, | ||
uint64_t & | nGasPrice | ||
) | const |
Get the information about the needed gas.
Definition at line 210 of file clientmodel.cpp.
int ClientModel::getHeaderTipHeight | ( | ) | const |
Definition at line 79 of file clientmodel.cpp.
int64_t ClientModel::getHeaderTipTime | ( | ) | const |
Definition at line 93 of file clientmodel.cpp.
QDateTime ClientModel::getLastBlockDate | ( | ) | const |
Definition at line 119 of file clientmodel.cpp.
size_t ClientModel::getMempoolDynamicUsage | ( | ) | const |
Return the dynamic memory usage of the mempool.
Definition at line 134 of file clientmodel.cpp.
long ClientModel::getMempoolSize | ( | ) | const |
Return number of transactions in the mempool.
Definition at line 129 of file clientmodel.cpp.
bool ClientModel::getNetworkActive | ( | ) | const |
Return true if network activity in core is enabled.
Definition at line 197 of file clientmodel.cpp.
int ClientModel::getNumBlocks | ( | ) | const |
Definition at line 73 of file clientmodel.cpp.
int ClientModel::getNumConnections | ( | unsigned int | flags = CONNECTIONS_ALL | ) | const |
Return number of connections, default is in- and outbound (total)
Definition at line 57 of file clientmodel.cpp.
OptionsModel * ClientModel::getOptionsModel | ( | ) |
PeerTableModel * ClientModel::getPeerTableModel | ( | ) |
QString ClientModel::getStatusBarWarnings | ( | ) | const |
Return warnings to be displayed in status bar.
Definition at line 205 of file clientmodel.cpp.
quint64 ClientModel::getTotalBytesRecv | ( | ) | const |
quint64 ClientModel::getTotalBytesSent | ( | ) | const |
double ClientModel::getVerificationProgress | ( | const CBlockIndex * | tip | ) | const |
Definition at line 139 of file clientmodel.cpp.
bool ClientModel::inInitialBlockDownload | ( | ) | const |
Return true if core is doing initial block download.
Definition at line 173 of file clientmodel.cpp.
bool ClientModel::isReleaseVersion | ( | ) | const |
Definition at line 245 of file clientmodel.cpp.
|
signal |
|
signal |
Fired when a message should be reported to the user.
Definition at line 296 of file moc_clientmodel.cpp.
|
signal |
|
signal |
Definition at line 255 of file moc_clientmodel.cpp.
|
signal |
void ClientModel::setNetworkActive | ( | bool | active | ) |
Toggle network activity state in core.
Definition at line 190 of file clientmodel.cpp.
|
signal |
Definition at line 303 of file moc_clientmodel.cpp.
|
private |
|
signal |
Definition at line 290 of file moc_clientmodel.cpp.
|
private |
|
slot |
|
slot |
|
slot |
Definition at line 163 of file clientmodel.cpp.
|
slot |
Definition at line 158 of file clientmodel.cpp.
|
slot |
Definition at line 150 of file clientmodel.cpp.
|
private |
Definition at line 92 of file clientmodel.h.
|
mutable |
Definition at line 86 of file clientmodel.h.
|
mutable |
Definition at line 87 of file clientmodel.h.
|
private |
Definition at line 90 of file clientmodel.h.
|
private |
Definition at line 91 of file clientmodel.h.
|
private |
Definition at line 94 of file clientmodel.h.