PIVX Core  5.6.99
P2P Digital Currency
informationwidget.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2021 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_SETTINGS_INFORMATIONWIDGET_H
6 #define PIVX_QT_SETTINGS_INFORMATIONWIDGET_H
7 
8 #include "pwidget.h"
9 #include "rpcconsole.h"
10 #include <QWidget>
11 
12 namespace Ui {
14 }
15 
17 {
18  Q_OBJECT
19 
20 public:
21  explicit SettingsInformationWidget(PIVXGUI* _window, QWidget *parent = nullptr);
22  ~SettingsInformationWidget() override;
23 
24  void loadClientModel() override;
25 
26  void run(int type) override;
27  void onError(QString error, int type) override;
28 
29 private Q_SLOTS:
30  void setNumConnections(int count);
31  void networkActiveChanged(bool active);
32  void setNumBlocks(int count);
33  void showEvent(QShowEvent* event) override;
34  void hideEvent(QHideEvent* event) override;
35 
36 public Q_SLOTS:
37  void openNetworkMonitor();
38  void setMasternodeCount(const QString& strMasternodes);
39 
40 private:
41  Ui::SettingsInformationWidget *ui;
42  RPCConsole *rpcConsole = nullptr;
43 
44  // Update connections and network activity state.
45  void updateNetworkState(int numConnections);
46 };
47 
48 #endif // PIVX_QT_SETTINGS_INFORMATIONWIDGET_H
PIVX GUI main class.
Definition: pivxgui.h:46
Local Bitcoin RPC console.
Definition: rpcconsole.h:33
void setMasternodeCount(const QString &strMasternodes)
void showEvent(QShowEvent *event) override
Ui::SettingsInformationWidget * ui
SettingsInformationWidget(PIVXGUI *_window, QWidget *parent=nullptr)
void updateNetworkState(int numConnections)
void onError(QString error, int type) override
void hideEvent(QHideEvent *event) override
void run(int type) override
void networkActiveChanged(bool active)
bool error(const char *fmt, const Args &... args)
Definition: system.h:77