7 #ifndef PIVX_QT_CLIENTMODEL_H
8 #define PIVX_QT_CLIENTMODEL_H
103 static void mapPort(
bool use_upnp,
bool use_natpmp);
152 void message(
const QString& title,
const QString&
message,
unsigned int style,
bool* ret =
nullptr);
Qt model of the address book in the core.
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
The block chain is a tree shaped structure starting with the genesis block at the root,...
Model for PIVX network client.
std::unique_ptr< interfaces::Handler > m_handler_banned_list_changed
void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut)
QString getLastBlockHash() const
void showProgress(const QString &title, int nProgress)
void setNetworkActive(bool active)
Toggle network activity state in core.
QString cachedMasternodeCountString
QString getStatusBarWarnings() const
Return warnings to be displayed in status bar.
void setCacheReindexing(bool reindex)
void message(const QString &title, const QString &message, unsigned int style, bool *ret=nullptr)
Fired when a message should be reported to the user.
bool getTorInfo(std::string &ip_port) const
std::unique_ptr< interfaces::Handler > m_handler_show_progress
QString clientName() const
int64_t getLastBlockProcessedTime() const
void setCacheTip(const CBlockIndex *const tip)
uint256 getLastBlockProcessed() const
quint64 getTotalBytesRecv() const
std::unique_ptr< interfaces::Handler > m_handler_notify_alert_changed
quint64 getTotalBytesSent() const
int getMasternodesCount() const
void startMasternodesTimer()
PeerTableModel * getPeerTableModel()
void numBlocksChanged(int count)
void updateNetworkActive(bool networkActive)
int getNumBlocksAtStartup()
double getVerificationProgress() const
void setCacheImporting(bool import)
void updateNumConnections(int numConnections)
void stopMasternodesTimer()
QDateTime getLastBlockDate() const
void strMasternodesChanged(const QString &strMasternodes)
void numConnectionsChanged(int count)
QString getMasternodeCountString()
std::unique_ptr< interfaces::Handler > m_handler_notify_block_tip
bool getNetworkActive() const
Return true if network activity in core is enabled.
QString formatClientStartupTime() const
QString getMasternodesCountString()
int getNumConnections(unsigned int flags=CONNECTIONS_ALL) const
Return number of connections, default is in- and outbound (total)
enum BlockSource getBlockSource() const
Return true if core is importing blocks.
static void mapPort(bool use_upnp, bool use_natpmp)
Set the automatic port mapping options.
void setCacheInitialSync(bool _initialSync)
std::atomic< bool > cachedInitialSync
std::unique_ptr< interfaces::Handler > m_handler_notify_num_connections_changed
OptionsModel * optionsModel
BanTableModel * banTableModel
BanTableModel * getBanTableModel()
void unsubscribeFromCoreSignals()
std::unique_ptr< interfaces::Handler > m_handler_notify_net_activity_changed
void alertsChanged(const QString &warnings)
OptionsModel * getOptionsModel()
QString formatFullVersion() const
std::atomic_int m_cached_masternodes_count
PeerTableModel * peerTableModel
int getLastBlockProcessedHeight() const
ClientModel(OptionsModel *optionsModel, QObject *parent=0)
const CBlockIndex * cacheTip
bool isReleaseVersion() const
bool inInitialBlockDownload() const
Return true if core is doing initial block download.
void subscribeToCoreSignals()
void networkActiveChanged(bool networkActive)
Interface from Qt to configuration data structure for PIVX client.
Qt model providing information about connected peers, similar to the "getpeerinfo" RPC call.
UI model for the transaction table of a wallet.