diff options
| author | Jonas Schnelli <[email protected]> | 2016-11-11 11:16:34 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-11-11 11:16:40 +0100 |
| commit | ab914a65301bd48f2b6c7a64bf57295ae74f2902 (patch) | |
| tree | 4d5cc61cffd8d24d7c09f1d9cf9a6c5317cf2e5a /src/qt/clientmodel.h | |
| parent | Merge #9058: Fixes for p2p-compactblocks.py test timeouts on travis (#8842) (diff) | |
| parent | Qt: New network_disabled icon (diff) | |
| download | discoin-ab914a65301bd48f2b6c7a64bf57295ae74f2902.tar.xz discoin-ab914a65301bd48f2b6c7a64bf57295ae74f2902.zip | |
Merge #8996: Network activity toggle
19f46f1 Qt: New network_disabled icon (Luke Dashjr)
54cf997 RPC/Net: Use boolean consistently for networkactive, and remove from getinfo (Luke Dashjr)
b2b33d9 Overhaul network activity toggle (Jonas Schnelli)
32efa79 Qt: Add GUI feedback and control of network activity state. (Jon Lund Steffensen)
e38993b RPC: Add "togglenetwork" method to toggle network activity temporarily (Jon Lund Steffensen)
7c9a98a Allow network activity to be temporarily suspended. (Jon Lund Steffensen)
Diffstat (limited to 'src/qt/clientmodel.h')
| -rw-r--r-- | src/qt/clientmodel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 3fd8404cb..a64140142 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -68,6 +68,10 @@ public: bool inInitialBlockDownload() const; //! Return true if core is importing blocks enum BlockSource getBlockSource() const; + //! Return true if network activity in core is enabled + bool getNetworkActive() const; + //! Toggle network activity state in core + void setNetworkActive(bool active); //! Return warnings to be displayed in status bar QString getStatusBarWarnings() const; @@ -91,6 +95,7 @@ Q_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); @@ -103,6 +108,7 @@ Q_SIGNALS: public Q_SLOTS: void updateTimer(); void updateNumConnections(int numConnections); + void updateNetworkActive(bool networkActive); void updateAlert(); void updateBanlist(); }; |