Bitcoin
walletframe.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2019 The Bitcoin 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 BITCOIN_QT_WALLETFRAME_H
6 #define BITCOIN_QT_WALLETFRAME_H
7 
8 #include <QFrame>
9 #include <QMap>
10 
11 class BitcoinGUI;
12 class ClientModel;
13 class PlatformStyle;
14 class SendCoinsRecipient;
15 class WalletModel;
16 class WalletView;
17 
18 QT_BEGIN_NAMESPACE
19 class QStackedWidget;
20 QT_END_NAMESPACE
21 
29 class WalletFrame : public QFrame
30 {
31  Q_OBJECT
32 
33 public:
34  explicit WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui = nullptr);
35  ~WalletFrame();
36 
38 
39  void addWallet(WalletModel *walletModel);
40  void setCurrentWallet(WalletModel* wallet_model);
41  void removeWallet(WalletModel* wallet_model);
42  void removeAllWallets();
43 
44  bool handlePaymentRequest(const SendCoinsRecipient& recipient);
45 
46  void showOutOfSyncWarning(bool fShow);
47 
48 Q_SIGNALS:
51 
52 private:
53  QStackedWidget *walletStack;
56  QMap<WalletModel*, WalletView*> mapWalletViews;
57 
58  bool bOutOfSync;
59 
61 
62 public:
65 
66 public Q_SLOTS:
68  void gotoOverviewPage();
70  void gotoHistoryPage();
72  void gotoReceiveCoinsPage();
74  void gotoSendCoinsPage(QString addr = "");
75 
77  void gotoSignMessageTab(QString addr = "");
79  void gotoVerifyMessageTab(QString addr = "");
80 
82  void encryptWallet(bool status);
84  void backupWallet();
86  void changePassphrase();
88  void unlockWallet();
89 
91  void usedSendingAddresses();
96 };
97 
98 #endif // BITCOIN_QT_WALLETFRAME_H
void removeWallet(WalletModel *wallet_model)
Definition: walletframe.cpp:83
void setCurrentWallet(WalletModel *wallet_model)
Definition: walletframe.cpp:73
Definition: walletmodel.h:125
void encryptWallet(bool status)
Definition: walletframe.cpp:159
void gotoOverviewPage()
Definition: walletframe.cpp:117
void setClientModel(ClientModel *clientModel)
Definition: walletframe.cpp:38
void usedReceivingAddresses()
Definition: walletframe.cpp:194
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
Definition: walletframe.cpp:100
void addWallet(WalletModel *walletModel)
Definition: walletframe.cpp:43
WalletModel * currentWalletModel() const
Definition: walletframe.cpp:206
void gotoVerifyMessageTab(QString addr="")
Definition: walletframe.cpp:152
void usedSendingAddresses()
Definition: walletframe.cpp:187
Definition: walletview.h:34
void removeAllWallets()
Definition: walletframe.cpp:92
BitcoinGUI * gui
Definition: walletframe.h:54
QMap< WalletModel *, WalletView * > mapWalletViews
Definition: walletframe.h:56
void unlockWallet()
Definition: walletframe.cpp:180
void gotoSendCoinsPage(QString addr="")
Definition: walletframe.cpp:138
ClientModel * clientModel
Definition: walletframe.h:55
void requestedSyncWarningInfo()
Definition: moc_walletframe.cpp:201
void gotoSignMessageTab(QString addr="")
Definition: walletframe.cpp:145
~WalletFrame()
Definition: walletframe.cpp:34
void showOutOfSyncWarning(bool fShow)
Definition: walletframe.cpp:109
Definition: clientmodel.h:44
WalletView * currentWalletView() const
Definition: walletframe.cpp:201
WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui=nullptr)
Definition: walletframe.cpp:17
QStackedWidget * walletStack
Definition: walletframe.h:53
Definition: platformstyle.h:13
void gotoReceiveCoinsPage()
Definition: walletframe.cpp:131
void changePassphrase()
Definition: walletframe.cpp:173
Definition: walletframe.h:29
void backupWallet()
Definition: walletframe.cpp:166
Definition: bitcoingui.h:64
Definition: walletmodel.h:54
bool bOutOfSync
Definition: walletframe.h:58
void gotoHistoryPage()
Definition: walletframe.cpp:124
const PlatformStyle * platformStyle
Definition: walletframe.h:60
void outOfSyncWarningClicked()
Definition: walletframe.cpp:212