Dash Core  0.12.2.1
P2P Digital Currency
masternodelist.h
Go to the documentation of this file.
1 #ifndef MASTERNODELIST_H
2 #define MASTERNODELIST_H
3 
5 #include "platformstyle.h"
6 #include "sync.h"
7 #include "util.h"
8 
9 #include <QMenu>
10 #include <QTimer>
11 #include <QWidget>
12 
13 #define MY_MASTERNODELIST_UPDATE_SECONDS 60
14 #define MASTERNODELIST_UPDATE_SECONDS 15
15 #define MASTERNODELIST_FILTER_COOLDOWN_SECONDS 3
16 
17 namespace Ui {
18  class MasternodeList;
19 }
20 
21 class ClientModel;
22 class WalletModel;
23 
24 QT_BEGIN_NAMESPACE
25 class QModelIndex;
26 QT_END_NAMESPACE
27 
29 class MasternodeList : public QWidget
30 {
31  Q_OBJECT
32 
33 public:
34  explicit MasternodeList(const PlatformStyle *platformStyle, QWidget *parent = 0);
36 
39  void StartAlias(std::string strAlias);
40  void StartAll(std::string strCommand = "start-all");
41 
42 private:
43  QMenu *contextMenu;
46 
47 public Q_SLOTS:
48  void updateMyMasternodeInfo(QString strAlias, QString strAddr, const COutPoint& outpoint);
49  void updateMyNodeList(bool fForce = false);
50  void updateNodeList();
51 
52 Q_SIGNALS:
53 
54 private:
55  QTimer *timer;
59 
60  // Protects tableWidgetMasternodes
62 
63  // Protects tableWidgetMyMasternodes
65 
67 
68 private Q_SLOTS:
69  void showContextMenu(const QPoint &);
70  void on_filterLineEdit_textChanged(const QString &strFilterIn);
76 };
77 #endif // MASTERNODELIST_H
MasternodeList(const PlatformStyle *platformStyle, QWidget *parent=0)
void setWalletModel(WalletModel *walletModel)
QString strCurrentFilter
ClientModel * clientModel
CCriticalSection cs_mymnlist
Ui::MasternodeList * ui
void on_tableWidgetMyMasternodes_itemSelectionChanged()
void setClientModel(ClientModel *clientModel)
void showContextMenu(const QPoint &)
void on_startButton_clicked()
void on_filterLineEdit_textChanged(const QString &strFilterIn)
void StartAll(std::string strCommand="start-all")
void on_startMissingButton_clicked()
CCriticalSection cs_mnlist
QMenu * contextMenu
void StartAlias(std::string strAlias)
WalletModel * walletModel
void on_startAllButton_clicked()
void updateMyMasternodeInfo(QString strAlias, QString strAddr, const COutPoint &outpoint)
int64_t nTimeFilterUpdated
void on_UpdateButton_clicked()
void updateMyNodeList(bool fForce=false)