Model for PIVX network client.
More...
#include <clientmodel.h>
|
| static void | mapPort (bool use_upnp, bool use_natpmp) |
| | Set the automatic port mapping options. More...
|
| |
Model for PIVX network client.
Definition at line 49 of file clientmodel.h.
◆ ClientModel()
| ClientModel::ClientModel |
( |
OptionsModel * |
optionsModel, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
◆ ~ClientModel()
| ClientModel::~ClientModel |
( |
| ) |
|
◆ alertsChanged
| void ClientModel::alertsChanged |
( |
const QString & |
warnings | ) |
|
|
signal |
◆ bytesChanged
| void ClientModel::bytesChanged |
( |
quint64 |
totalBytesIn, |
|
|
quint64 |
totalBytesOut |
|
) |
| |
|
signal |
◆ clientName()
| QString ClientModel::clientName |
( |
| ) |
const |
◆ dataDir()
| QString ClientModel::dataDir |
( |
| ) |
const |
◆ formatClientStartupTime()
| QString ClientModel::formatClientStartupTime |
( |
| ) |
const |
◆ formatFullVersion()
| QString ClientModel::formatFullVersion |
( |
| ) |
const |
◆ getBanTableModel()
◆ getBlockSource()
◆ getLastBlockDate()
| QDateTime ClientModel::getLastBlockDate |
( |
| ) |
const |
◆ getLastBlockHash()
| QString ClientModel::getLastBlockHash |
( |
| ) |
const |
◆ getLastBlockProcessed()
| uint256 ClientModel::getLastBlockProcessed |
( |
| ) |
const |
◆ getLastBlockProcessedHeight()
| int ClientModel::getLastBlockProcessedHeight |
( |
| ) |
const |
◆ getLastBlockProcessedTime()
| int64_t ClientModel::getLastBlockProcessedTime |
( |
| ) |
const |
◆ getMasternodeCountString()
| QString ClientModel::getMasternodeCountString |
( |
| ) |
|
|
private |
◆ getMasternodesCount()
| int ClientModel::getMasternodesCount |
( |
| ) |
const |
|
inline |
◆ getMasternodesCountString()
| QString ClientModel::getMasternodesCountString |
( |
| ) |
|
- Todo:
- : implement an event based update and remove the lock requirement.
Definition at line 91 of file clientmodel.cpp.
◆ getNetworkActive()
| bool ClientModel::getNetworkActive |
( |
| ) |
const |
Return true if network activity in core is enabled.
Definition at line 243 of file clientmodel.cpp.
◆ getNumBlocks()
| int ClientModel::getNumBlocks |
( |
| ) |
|
◆ getNumBlocksAtStartup()
| int ClientModel::getNumBlocksAtStartup |
( |
| ) |
|
◆ getNumConnections()
| int ClientModel::getNumConnections |
( |
unsigned int |
flags = CONNECTIONS_ALL | ) |
const |
Return number of connections, default is in- and outbound (total)
Definition at line 63 of file clientmodel.cpp.
◆ getOptionsModel()
◆ getPeerTableModel()
◆ getStatusBarWarnings()
| QString ClientModel::getStatusBarWarnings |
( |
| ) |
const |
Return warnings to be displayed in status bar.
Definition at line 251 of file clientmodel.cpp.
◆ getTorInfo()
| bool ClientModel::getTorInfo |
( |
std::string & |
ip_port | ) |
const |
◆ getTotalBytesRecv()
| quint64 ClientModel::getTotalBytesRecv |
( |
| ) |
const |
◆ getTotalBytesSent()
| quint64 ClientModel::getTotalBytesSent |
( |
| ) |
const |
◆ getVerificationProgress()
| double ClientModel::getVerificationProgress |
( |
| ) |
const |
◆ inInitialBlockDownload()
| bool ClientModel::inInitialBlockDownload |
( |
| ) |
const |
Return true if core is doing initial block download.
Definition at line 219 of file clientmodel.cpp.
◆ isReleaseVersion()
| bool ClientModel::isReleaseVersion |
( |
| ) |
const |
◆ isTipCached()
| bool ClientModel::isTipCached |
( |
| ) |
const |
◆ mapPort()
| void ClientModel::mapPort |
( |
bool |
use_upnp, |
|
|
bool |
use_natpmp |
|
) |
| |
|
static |
◆ message
| void ClientModel::message |
( |
const QString & |
title, |
|
|
const QString & |
message, |
|
|
unsigned int |
style, |
|
|
bool * |
ret = nullptr |
|
) |
| |
|
signal |
Fired when a message should be reported to the user.
◆ networkActiveChanged
| void ClientModel::networkActiveChanged |
( |
bool |
networkActive | ) |
|
|
signal |
◆ numBlocksChanged
| void ClientModel::numBlocksChanged |
( |
int |
count | ) |
|
|
signal |
◆ numConnectionsChanged
| void ClientModel::numConnectionsChanged |
( |
int |
count | ) |
|
|
signal |
◆ setCacheImporting()
| void ClientModel::setCacheImporting |
( |
bool |
import | ) |
|
|
inline |
◆ setCacheInitialSync()
| void ClientModel::setCacheInitialSync |
( |
bool |
_initialSync | ) |
|
|
inline |
◆ setCacheReindexing()
| void ClientModel::setCacheReindexing |
( |
bool |
reindex | ) |
|
|
inline |
◆ setCacheTip()
| void ClientModel::setCacheTip |
( |
const CBlockIndex *const |
tip | ) |
|
|
inline |
◆ setNetworkActive()
| void ClientModel::setNetworkActive |
( |
bool |
active | ) |
|
◆ showProgress
| void ClientModel::showProgress |
( |
const QString & |
title, |
|
|
int |
nProgress |
|
) |
| |
|
signal |
◆ startMasternodesTimer()
| void ClientModel::startMasternodesTimer |
( |
| ) |
|
◆ stopMasternodesTimer()
| void ClientModel::stopMasternodesTimer |
( |
| ) |
|
◆ strMasternodesChanged
| void ClientModel::strMasternodesChanged |
( |
const QString & |
strMasternodes | ) |
|
|
signal |
◆ subscribeToCoreSignals()
| void ClientModel::subscribeToCoreSignals |
( |
| ) |
|
|
private |
◆ unsubscribeFromCoreSignals()
| void ClientModel::unsubscribeFromCoreSignals |
( |
| ) |
|
|
private |
◆ updateAlert
| void ClientModel::updateAlert |
( |
| ) |
|
|
slot |
◆ updateBanlist
| void ClientModel::updateBanlist |
( |
| ) |
|
|
slot |
◆ updateMnTimer
| void ClientModel::updateMnTimer |
( |
| ) |
|
|
slot |
◆ updateNetworkActive
| void ClientModel::updateNetworkActive |
( |
bool |
networkActive | ) |
|
|
slot |
◆ updateNumConnections
| void ClientModel::updateNumConnections |
( |
int |
numConnections | ) |
|
|
slot |
◆ updateTimer
| void ClientModel::updateTimer |
( |
| ) |
|
|
slot |
◆ banTableModel
◆ cachedImporting
| bool ClientModel::cachedImporting |
|
private |
◆ cachedInitialSync
| std::atomic<bool> ClientModel::cachedInitialSync {false} |
|
private |
◆ cachedMasternodeCountString
| QString ClientModel::cachedMasternodeCountString |
|
private |
◆ cachedReindexing
| bool ClientModel::cachedReindexing |
|
private |
◆ cacheTip
◆ m_cached_masternodes_count
| std::atomic_int ClientModel::m_cached_masternodes_count {0} |
|
private |
◆ m_handler_banned_list_changed
◆ m_handler_notify_alert_changed
◆ m_handler_notify_block_tip
◆ m_handler_notify_net_activity_changed
◆ m_handler_notify_num_connections_changed
◆ m_handler_show_progress
◆ numBlocksAtStartup
| int ClientModel::numBlocksAtStartup |
|
private |
◆ optionsModel
◆ peerTableModel
◆ pollMnTimer
| QTimer* ClientModel::pollMnTimer |
|
private |
◆ pollTimer
| QTimer* ClientModel::pollTimer |
|
private |
The documentation for this class was generated from the following files: