]> Git Repo - VerusCoin.git/blob - src/qt/walletframe.h
qt: merge walletstack and walletframe
[VerusCoin.git] / src / qt / walletframe.h
1 /*
2  * Qt4 bitcoin GUI.
3  *
4  * W.J. van der Laan 2011-2012
5  * The Bitcoin Developers 2011-2013
6  */
7 #ifndef WALLETFRAME_H
8 #define WALLETFRAME_H
9
10 #include <QFrame>
11 #include <QMap>
12
13 class BitcoinGUI;
14 class ClientModel;
15 class SendCoinsRecipient;
16 class WalletModel;
17 class WalletView;
18
19 QT_BEGIN_NAMESPACE
20 class QStackedWidget;
21 QT_END_NAMESPACE
22
23 class WalletFrame : public QFrame
24 {
25     Q_OBJECT
26
27 public:
28     explicit WalletFrame(BitcoinGUI *_gui = 0);
29     ~WalletFrame();
30
31     void setClientModel(ClientModel *clientModel);
32
33     bool addWallet(const QString& name, WalletModel *walletModel);
34     bool setCurrentWallet(const QString& name);
35
36     void removeAllWallets();
37
38     bool handlePaymentRequest(const SendCoinsRecipient& recipient);
39
40     void showOutOfSyncWarning(bool fShow);
41
42 private:
43     QStackedWidget *walletStack;
44     BitcoinGUI *gui;
45     ClientModel *clientModel;
46     QMap<QString, WalletView*> mapWalletViews;
47
48     bool bOutOfSync;
49
50 public slots:
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 = "");
61
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 = "");
66
67     /** Encrypt the wallet */
68     void encryptWallet(bool status);
69     /** Backup the wallet */
70     void backupWallet();
71     /** Change encrypted wallet passphrase */
72     void changePassphrase();
73     /** Ask for passphrase to unlock wallet temporarily */
74     void unlockWallet();
75
76     /** Set the encryption status as shown in the UI.
77      @param[in] status            current encryption status
78      @see WalletModel::EncryptionStatus
79      */
80     void setEncryptionStatus();
81 };
82
83 #endif // WALLETFRAME_H
This page took 0.026766 seconds and 4 git commands to generate.