1 // Copyright (c) 2011-2013 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.
5 #ifndef BITCOIN_QT_WALLETFRAME_H
6 #define BITCOIN_QT_WALLETFRAME_H
13 class SendCoinsRecipient;
21 class WalletFrame : public QFrame
26 explicit WalletFrame(BitcoinGUI *_gui = 0);
29 void setClientModel(ClientModel *clientModel);
31 bool addWallet(const QString& name, WalletModel *walletModel);
32 bool setCurrentWallet(const QString& name);
33 bool removeWallet(const QString &name);
34 void removeAllWallets();
36 bool handlePaymentRequest(const SendCoinsRecipient& recipient);
38 void showOutOfSyncWarning(bool fShow);
41 QStackedWidget *walletStack;
43 ClientModel *clientModel;
44 QMap<QString, WalletView*> mapWalletViews;
48 WalletView *currentWalletView();
51 /** Switch to overview (home) page */
52 void gotoOverviewPage();
53 /** Switch to history (transactions) page */
54 void gotoHistoryPage();
55 /** Switch to receive coins page */
56 void gotoReceiveCoinsPage();
57 /** Switch to send coins page */
58 void gotoSendCoinsPage(QString addr = "");
60 /** Show Sign/Verify Message dialog and switch to sign message tab */
61 void gotoSignMessageTab(QString addr = "");
62 /** Show Sign/Verify Message dialog and switch to verify message tab */
63 void gotoVerifyMessageTab(QString addr = "");
65 /** Encrypt the wallet */
66 void encryptWallet(bool status);
67 /** Backup the wallet */
69 /** Change encrypted wallet passphrase */
70 void changePassphrase();
71 /** Ask for passphrase to unlock wallet temporarily */
74 /** Show used sending addresses */
75 void usedSendingAddresses();
76 /** Show used receiving addresses */
77 void usedReceivingAddresses();
80 #endif // BITCOIN_QT_WALLETFRAME_H