Dogecoin Core  1.14.2
P2P Digital Currency
walletframe.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 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 = 0);
35  ~WalletFrame();
36 
38 
39  bool addWallet(const QString& name, WalletModel *walletModel);
40  bool setCurrentWallet(const QString& name);
41  bool removeWallet(const QString &name);
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<QString, WalletView*> mapWalletViews;
57 
58  bool bOutOfSync;
59 
61 
63 
64 public Q_SLOTS:
66  void gotoOverviewPage();
68  void gotoHistoryPage();
70  void gotoReceiveCoinsPage();
72  void gotoSendCoinsPage(QString addr = "");
73 
75  void gotoSignMessageTab(QString addr = "");
77  void gotoVerifyMessageTab(QString addr = "");
78 
80  void encryptWallet(bool status);
82  void backupWallet();
84  void changePassphrase();
86  void unlockWallet();
87 
88  void printPaperWallets();
89 
91  void usedSendingAddresses();
96 };
97 
98 #endif // BITCOIN_QT_WALLETFRAME_H
Bitcoin GUI main class.
Definition: bitcoingui.h:47
Model for Bitcoin network client.
Definition: clientmodel.h:42
A container for embedding all wallet-related controls into BitcoinGUI.
Definition: walletframe.h:30
void removeAllWallets()
Definition: walletframe.cpp:87
WalletView * currentWalletView()
void changePassphrase()
Change encrypted wallet passphrase.
bool removeWallet(const QString &name)
Definition: walletframe.cpp:77
void requestedSyncWarningInfo()
Notify that the user has requested more information about the out-of-sync warning.
void gotoHistoryPage()
Switch to history (transactions) page.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
void gotoOverviewPage()
Switch to overview (home) page.
ClientModel * clientModel
Definition: walletframe.h:55
const PlatformStyle * platformStyle
Definition: walletframe.h:60
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void setClientModel(ClientModel *clientModel)
Definition: walletframe.cpp:37
bool bOutOfSync
Definition: walletframe.h:58
void backupWallet()
Backup the wallet.
QStackedWidget * walletStack
Definition: walletframe.h:53
void usedSendingAddresses()
Show used sending addresses.
QMap< QString, WalletView * > mapWalletViews
Definition: walletframe.h:56
void encryptWallet(bool status)
Encrypt the wallet.
void usedReceivingAddresses()
Show used receiving addresses.
void outOfSyncWarningClicked()
Pass on signal over requested out-of-sync-warning information.
bool addWallet(const QString &name, WalletModel *walletModel)
Definition: walletframe.cpp:42
WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui=0)
Definition: walletframe.cpp:16
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
Definition: walletframe.cpp:95
bool setCurrentWallet(const QString &name)
Definition: walletframe.cpp:66
BitcoinGUI * gui
Definition: walletframe.h:54
void printPaperWallets()
void showOutOfSyncWarning(bool fShow)
void gotoReceiveCoinsPage()
Switch to receive coins page.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:99