Dash Core  0.12.2.1
P2P Digital Currency
walletframe.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 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 
22 class WalletFrame : public QFrame
23 {
24  Q_OBJECT
25 
26 public:
27  explicit WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui = 0);
28  ~WalletFrame();
29 
31 
32  bool addWallet(const QString& name, WalletModel *walletModel);
33  bool setCurrentWallet(const QString& name);
34  bool removeWallet(const QString &name);
35  void removeAllWallets();
36 
37  bool handlePaymentRequest(const SendCoinsRecipient& recipient);
38 
39  void showOutOfSyncWarning(bool fShow);
40 
41 Q_SIGNALS:
44 
45 private:
46  QStackedWidget *walletStack;
49  QMap<QString, WalletView*> mapWalletViews;
50 
51  bool bOutOfSync;
52 
54 
56 
57 public Q_SLOTS:
59  void gotoOverviewPage();
61  void gotoHistoryPage();
63  void gotoMasternodePage();
65  void gotoReceiveCoinsPage();
67  void gotoSendCoinsPage(QString addr = "");
68 
70  void gotoSignMessageTab(QString addr = "");
72  void gotoVerifyMessageTab(QString addr = "");
73 
75  void encryptWallet(bool status);
77  void backupWallet();
79  void changePassphrase();
81  void unlockWallet();
83  void lockWallet();
84 
86  void usedSendingAddresses();
91 };
92 
93 #endif // BITCOIN_QT_WALLETFRAME_H
void gotoMasternodePage()
void encryptWallet(bool status)
QMap< QString, WalletView * > mapWalletViews
Definition: walletframe.h:49
bool setCurrentWallet(const QString &name)
Definition: walletframe.cpp:65
void gotoOverviewPage()
WalletView * currentWalletView()
void setClientModel(ClientModel *clientModel)
Definition: walletframe.cpp:36
bool removeWallet(const QString &name)
Definition: walletframe.cpp:76
void usedReceivingAddresses()
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
Definition: walletframe.cpp:94
void gotoVerifyMessageTab(QString addr="")
void usedSendingAddresses()
void removeAllWallets()
Definition: walletframe.cpp:86
bool addWallet(const QString &name, WalletModel *walletModel)
Definition: walletframe.cpp:41
BitcoinGUI * gui
Definition: walletframe.h:47
const char * name
Definition: rest.cpp:37
void lockWallet()
void unlockWallet()
void gotoSendCoinsPage(QString addr="")
ClientModel * clientModel
Definition: walletframe.h:48
void requestedSyncWarningInfo()
void gotoSignMessageTab(QString addr="")
void showOutOfSyncWarning(bool fShow)
WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui=0)
Definition: walletframe.cpp:15
QStackedWidget * walletStack
Definition: walletframe.h:46
void gotoReceiveCoinsPage()
void changePassphrase()
void backupWallet()
bool bOutOfSync
Definition: walletframe.h:51
void gotoHistoryPage()
const PlatformStyle * platformStyle
Definition: walletframe.h:53
void outOfSyncWarningClicked()