Model for Bitcoin network client.
More...
#include <clientmodel.h>
|
void | numConnectionsChanged (int count) |
|
void | numBlocksChanged (int count, const QDateTime &blockDate, double nVerificationProgress, SyncType header, SynchronizationState sync_state) |
|
void | mempoolSizeChanged (long count, size_t mempoolSizeInBytes, size_t mempoolMaxSizeInBytes) |
|
void | networkActiveChanged (bool networkActive) |
|
void | alertsChanged (const QString &warnings) |
|
void | bytesChanged (quint64 totalBytesIn, quint64 totalBytesOut) |
|
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) |
|
Model for Bitcoin network client.
Definition at line 56 of file clientmodel.h.
◆ ClientModel()
◆ ~ClientModel()
ClientModel::~ClientModel |
( |
| ) |
|
◆ alertsChanged
void ClientModel::alertsChanged |
( |
const QString & |
warnings | ) |
|
|
signal |
◆ blocksDir()
QString ClientModel::blocksDir |
( |
| ) |
const |
◆ bytesChanged
void ClientModel::bytesChanged |
( |
quint64 |
totalBytesIn, |
|
|
quint64 |
totalBytesOut |
|
) |
| |
|
signal |
◆ dataDir()
QString ClientModel::dataDir |
( |
| ) |
const |
◆ formatClientStartupTime()
QString ClientModel::formatClientStartupTime |
( |
| ) |
const |
◆ formatFullVersion()
QString ClientModel::formatFullVersion |
( |
| ) |
const |
◆ formatSubVersion()
QString ClientModel::formatSubVersion |
( |
| ) |
const |
◆ getBanTableModel()
◆ getBestBlockHash()
uint256 ClientModel::getBestBlockHash |
( |
| ) |
|
◆ getBlockSource()
Returns the block source of the current importing/syncing state.
Definition at line 164 of file clientmodel.cpp.
◆ getHeaderTipHeight()
int ClientModel::getHeaderTipHeight |
( |
| ) |
const |
◆ getHeaderTipTime()
int64_t ClientModel::getHeaderTipTime |
( |
| ) |
const |
◆ getNetLocalAddresses()
◆ getNumBlocks()
int ClientModel::getNumBlocks |
( |
| ) |
const |
◆ getNumConnections()
int ClientModel::getNumConnections |
( |
unsigned int |
flags = CONNECTIONS_ALL | ) |
const |
Return number of connections, default is in- and outbound (total)
Definition at line 84 of file clientmodel.cpp.
◆ getOptionsModel()
◆ getPeerTableModel()
◆ getProxyInfo()
bool ClientModel::getProxyInfo |
( |
std::string & |
ip_port | ) |
const |
◆ getStatusBarWarnings()
QString ClientModel::getStatusBarWarnings |
( |
| ) |
const |
Return warnings to be displayed in status bar.
Definition at line 171 of file clientmodel.cpp.
◆ GUARDED_BY()
◆ isReleaseVersion()
bool ClientModel::isReleaseVersion |
( |
| ) |
const |
◆ mempoolSizeChanged
void ClientModel::mempoolSizeChanged |
( |
long |
count, |
|
|
size_t |
mempoolSizeInBytes, |
|
|
size_t |
mempoolMaxSizeInBytes |
|
) |
| |
|
signal |
◆ message
void ClientModel::message |
( |
const QString & |
title, |
|
|
const QString & |
message, |
|
|
unsigned int |
style |
|
) |
| |
|
signal |
Fired when a message should be reported to the user.
◆ networkActiveChanged
void ClientModel::networkActiveChanged |
( |
bool |
networkActive | ) |
|
|
signal |
◆ node()
◆ numBlocksChanged
void ClientModel::numBlocksChanged |
( |
int |
count, |
|
|
const QDateTime & |
blockDate, |
|
|
double |
nVerificationProgress, |
|
|
SyncType |
header, |
|
|
SynchronizationState |
sync_state |
|
) |
| |
|
signal |
◆ numConnectionsChanged
void ClientModel::numConnectionsChanged |
( |
int |
count | ) |
|
|
signal |
◆ peerTableSortProxy()
◆ showProgress
void ClientModel::showProgress |
( |
const QString & |
title, |
|
|
int |
nProgress |
|
) |
| |
|
signal |
◆ stop()
void ClientModel::stop |
( |
| ) |
|
◆ subscribeToCoreSignals()
void ClientModel::subscribeToCoreSignals |
( |
| ) |
|
|
private |
◆ TipChanged()
◆ unsubscribeFromCoreSignals()
void ClientModel::unsubscribeFromCoreSignals |
( |
| ) |
|
|
private |
◆ banTableModel
◆ cachedBestHeaderHeight
std::atomic<int> ClientModel::cachedBestHeaderHeight |
|
mutable |
◆ cachedBestHeaderTime
std::atomic<int64_t> ClientModel::cachedBestHeaderTime |
|
mutable |
◆ m_cached_num_blocks
std::atomic<int> ClientModel::m_cached_num_blocks {-1} |
|
mutable |
◆ m_cached_tip_mutex
Mutex ClientModel::m_cached_tip_mutex |
◆ m_event_handlers
◆ m_node
◆ m_peer_table_sort_proxy
◆ m_thread
QThread* const ClientModel::m_thread |
|
private |
A thread to interact with m_node asynchronously.
Definition at line 111 of file clientmodel.h.
◆ optionsModel
◆ peerTableModel
The documentation for this class was generated from the following files: