Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
walletframe.h
Go to the documentation of this file.
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 
12 class BitcoinGUI;
13 class ClientModel;
14 class WalletModel;
15 class WalletStack;
16 class WalletView;
17 
18 class WalletFrame : public QFrame
19 {
20  Q_OBJECT
21 
22 public:
23  explicit WalletFrame(BitcoinGUI *_gui = 0);
24  ~WalletFrame();
25 
27 
28  bool addWallet(const QString& name, WalletModel *walletModel);
29  bool setCurrentWallet(const QString& name);
30 
31  void removeAllWallets();
32 
33  bool handleURI(const QString &uri);
34 
35  void showOutOfSyncWarning(bool fShow);
36 
37 private:
41 
43 
44 public slots:
46  void gotoOverviewPage();
48  void gotoHistoryPage();
50  void gotoAddressBookPage();
52  void gotoReceiveCoinsPage();
54  void gotoSendCoinsPage(QString addr = "");
55 
57  void gotoSignMessageTab(QString addr = "");
59  void gotoVerifyMessageTab(QString addr = "");
60 
62  void encryptWallet(bool status);
64  void backupWallet();
66  void changePassphrase();
68  void unlockWallet();
69 
74  void setEncryptionStatus();
75 };
76 
77 #endif // WALLETFRAME_H
bool setCurrentWallet(const QString &name)
Definition: walletframe.cpp:49
bool handleURI(const QString &uri)
Definition: walletframe.cpp:61
void setEncryptionStatus()
Set the encryption status as shown in the UI.
WalletView * currentWalletView()
ClientModel * clientModel
Definition: walletframe.h:39
void gotoAddressBookPage()
Switch to address book page.
Definition: walletframe.cpp:91
void encryptWallet(bool status)
Encrypt the wallet.
Bitcoin GUI main class.
Definition: bitcoingui.h:39
WalletStack * walletStack
Definition: walletframe.h:40
void removeAllWallets()
Definition: walletframe.cpp:56
void showOutOfSyncWarning(bool fShow)
Definition: walletframe.cpp:70
void gotoHistoryPage()
Switch to history (transactions) page.
Definition: walletframe.cpp:86
void gotoOverviewPage()
Switch to overview (home) page.
Definition: walletframe.cpp:81
void setClientModel(ClientModel *clientModel)
Definition: walletframe.cpp:38
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
BitcoinGUI * gui
Definition: walletframe.h:38
bool addWallet(const QString &name, WalletModel *walletModel)
Definition: walletframe.cpp:44
void changePassphrase()
Change encrypted wallet passphrase.
Model for Bitcoin network client.
Definition: clientmodel.h:24
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 gotoSendCoinsPage(QString addr="")
Switch to send coins page.
WalletFrame(BitcoinGUI *_gui=0)
Definition: walletframe.cpp:16
void gotoReceiveCoinsPage()
Switch to receive coins page.
Definition: walletframe.cpp:98
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:36
void backupWallet()
Backup the wallet.
const char * name
Definition: testharness.cc:18