Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
walletview.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 WALLETVIEW_H
8 #define WALLETVIEW_H
9 
10 #include <QStackedWidget>
11 
12 class BitcoinGUI;
13 class ClientModel;
14 class WalletModel;
15 class TransactionView;
16 class OverviewPage;
17 class AddressBookPage;
18 class SendCoinsDialog;
20 class RPCConsole;
21 
22 QT_BEGIN_NAMESPACE
23 class QLabel;
24 class QModelIndex;
25 QT_END_NAMESPACE
26 
27 /*
28  WalletView class. This class represents the view to a single wallet.
29  It was added to support multiple wallet functionality. Each wallet gets its own WalletView instance.
30  It communicates with both the client and the wallet models to give the user an up-to-date view of the
31  current core state.
32 */
33 class WalletView : public QStackedWidget
34 {
35  Q_OBJECT
36 
37 public:
38  explicit WalletView(QWidget *parent, BitcoinGUI *_gui);
39  ~WalletView();
40 
51 
52  bool handleURI(const QString &uri);
53 
54  void showOutOfSyncWarning(bool fShow);
55 
56 private:
60 
62  QWidget *transactionsPage;
67 
69 
70 public slots:
72  void gotoOverviewPage();
74  void gotoHistoryPage();
76  void gotoAddressBookPage();
78  void gotoReceiveCoinsPage();
80  void gotoSendCoinsPage(QString addr = "");
81 
83  void gotoSignMessageTab(QString addr = "");
85  void gotoVerifyMessageTab(QString addr = "");
86 
91  void incomingTransaction(const QModelIndex& parent, int start, int /*end*/);
93  void encryptWallet(bool status);
95  void backupWallet();
97  void changePassphrase();
99  void unlockWallet();
101  void importWallet(QString privateKey);
102 
103  void setEncryptionStatus();
104 
105 signals:
107  void showNormalIfMinimized();
108 };
109 
110 #endif // WALLETVIEW_H
QWidget * transactionsPage
Definition: walletview.h:62
void gotoAddressBookPage()
Switch to address book page.
Definition: walletview.cpp:168
Local Bitcoin RPC console.
Definition: rpcconsole.h:12
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
Definition: walletview.cpp:198
OverviewPage * overviewPage
Definition: walletview.h:61
TransactionView * transactionView
Definition: walletview.h:68
void changePassphrase()
Change encrypted wallet passphrase.
Definition: walletview.cpp:265
ClientModel * clientModel
Definition: walletview.h:58
void importWallet(QString privateKey)
Import a wallet from a string.
Definition: walletview.cpp:207
bool start
Definition: db_bench.cc:282
AddressBookPage * receiveCoinsPage
Definition: walletview.h:64
WalletModel * walletModel
Definition: walletview.h:59
Bitcoin GUI main class.
Definition: bitcoingui.h:39
void incomingTransaction(const QModelIndex &parent, int start, int)
Show incoming transaction notification for new transactions.
Definition: walletview.cpp:140
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
Definition: walletview.cpp:180
SendCoinsDialog * sendCoinsPage
Definition: walletview.h:65
void gotoHistoryPage()
Switch to history (transactions) page.
Definition: walletview.cpp:162
void setBitcoinGUI(BitcoinGUI *gui)
Definition: walletview.cpp:96
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
Definition: walletview.cpp:112
Widget showing the transaction list for a wallet, including a filter row.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
Definition: walletview.cpp:272
Dialog for sending bitcoins.
Widget that shows a list of sending or receiving addresses.
Model for Bitcoin network client.
Definition: clientmodel.h:24
void showNormalIfMinimized()
Signal that we want to show the main window.
void backupWallet()
Backup the wallet.
Definition: walletview.cpp:246
void gotoOverviewPage()
Switch to overview (home) page.
Definition: walletview.cpp:156
AddressBookPage * addressBookPage
Definition: walletview.h:63
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
Definition: walletview.cpp:189
BitcoinGUI * gui
Definition: walletview.h:57
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:36
SignVerifyMessageDialog * signVerifyMessageDialog
Definition: walletview.h:66
void setClientModel(ClientModel *clientModel)
Set the client model.
Definition: walletview.cpp:101
void encryptWallet(bool status)
Encrypt the wallet.
Definition: walletview.cpp:235
bool handleURI(const QString &uri)
Definition: walletview.cpp:212
void gotoReceiveCoinsPage()
Switch to receive coins page.
Definition: walletview.cpp:174
WalletView(QWidget *parent, BitcoinGUI *_gui)
Definition: walletview.cpp:32
Overview ("home") page widget.
Definition: overviewpage.h:19
void showOutOfSyncWarning(bool fShow)
Definition: walletview.cpp:225
void setEncryptionStatus()
Definition: walletview.cpp:230