1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
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;
49 /** Switch to overview (home) page */
50 void gotoOverviewPage();
51 /** Switch to history (transactions) page */
52 void gotoHistoryPage();
53 /** Switch to receive coins page */
54 void gotoReceiveCoinsPage();
55 /** Switch to send coins page */
56 void gotoSendCoinsPage(QString addr = "");
58 /** Show Sign/Verify Message dialog and switch to sign message tab */
59 void gotoSignMessageTab(QString addr = "");
60 /** Show Sign/Verify Message dialog and switch to verify message tab */
61 void gotoVerifyMessageTab(QString addr = "");
63 /** Encrypt the wallet */
64 void encryptWallet(bool status);
65 /** Backup the wallet */
67 /** Change encrypted wallet passphrase */
68 void changePassphrase();
69 /** Ask for passphrase to unlock wallet temporarily */
72 /** Show used sending addresses */
73 void usedSendingAddresses();
74 /** Show used receiving addresses */
75 void usedReceivingAddresses();
78 #endif // WALLETFRAME_H