4 * W.J. van der Laan 2011-2012
5 * The Bitcoin Developers 2011-2013
15 class SendCoinsRecipient;
23 class WalletFrame : public QFrame
28 explicit WalletFrame(BitcoinGUI *_gui = 0);
31 void setClientModel(ClientModel *clientModel);
33 bool addWallet(const QString& name, WalletModel *walletModel);
34 bool setCurrentWallet(const QString& name);
36 void removeAllWallets();
38 bool handlePaymentRequest(const SendCoinsRecipient& recipient);
40 void showOutOfSyncWarning(bool fShow);
43 QStackedWidget *walletStack;
45 ClientModel *clientModel;
46 QMap<QString, WalletView*> mapWalletViews;
51 /** Switch to overview (home) page */
52 void gotoOverviewPage();
53 /** Switch to history (transactions) page */
54 void gotoHistoryPage();
55 /** Switch to address book page */
56 void gotoAddressBookPage();
57 /** Switch to receive coins page */
58 void gotoReceiveCoinsPage();
59 /** Switch to send coins page */
60 void gotoSendCoinsPage(QString addr = "");
62 /** Show Sign/Verify Message dialog and switch to sign message tab */
63 void gotoSignMessageTab(QString addr = "");
64 /** Show Sign/Verify Message dialog and switch to verify message tab */
65 void gotoVerifyMessageTab(QString addr = "");
67 /** Encrypt the wallet */
68 void encryptWallet(bool status);
69 /** Backup the wallet */
71 /** Change encrypted wallet passphrase */
72 void changePassphrase();
73 /** Ask for passphrase to unlock wallet temporarily */
76 /** Set the encryption status as shown in the UI.
77 @param[in] status current encryption status
78 @see WalletModel::EncryptionStatus
80 void setEncryptionStatus();
83 #endif // WALLETFRAME_H