PRCYCoin  2.0.0.7rc1
P2P Digital Currency
walletframe.h
Go to the documentation of this file.
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.
4 
5 #ifndef BITCOIN_QT_WALLETFRAME_H
6 #define BITCOIN_QT_WALLETFRAME_H
7 
8 #include "askpassphrasedialog.h"
9 
10 #include <QFrame>
11 #include <QMap>
12 #include <QSettings>
13 
14 class BitcoinGUI;
15 class ClientModel;
16 class SendCoinsRecipient;
17 class WalletModel;
18 class WalletView;
19 class BlockExplorer;
20 
21 QT_BEGIN_NAMESPACE
22 class QStackedWidget;
23 QT_END_NAMESPACE
24 
25 class WalletFrame : public QFrame
26 {
27  Q_OBJECT
28 
29 public:
30  explicit WalletFrame(BitcoinGUI* _gui = 0);
31  ~WalletFrame();
32 
34  bool addWallet(const QString& name, WalletModel* walletModel);
35  bool setCurrentWallet(const QString& name);
36  bool removeWallet(const QString& name);
37  void removeAllWallets();
38  void showSyncStatus(bool fShow);
39 
40 private:
41  QStackedWidget* walletStack;
44  QMap<QString, WalletView*> mapWalletViews;
45  bool bOutOfSync;
47 
48 public Q_SLOTS:
50  void gotoOverviewPage();
52  void gotoHistoryPage();
54  void gotoMasternodePage();
56  void gotoReceiveCoinsPage();
58  void gotoOptionsPage();
60  void gotoSendCoinsPage(QString addr = "");
62  void gotoBlockExplorerPage();
64  void gotoMultiSendDialog();
66  void encryptWallet(bool status);
68  void backupWallet();
70  void showSeedPhrase();
72  void changePassphrase();
75  void unlockWallet(bool setContext);
77  void lockWallet();
79  void toggleLockWallet();
80 
82  void usedSendingAddresses();
85 };
86 
87 #endif // BITCOIN_QT_WALLETFRAME_H
WalletFrame::encryptWallet
void encryptWallet(bool status)
Encrypt the wallet.
Definition: walletframe.cpp:159
WalletFrame
Definition: walletframe.h:25
WalletFrame::WalletFrame
WalletFrame(BitcoinGUI *_gui=0)
Definition: walletframe.cpp:15
WalletFrame::gotoReceiveCoinsPage
void gotoReceiveCoinsPage()
Switch to receive coins page.
Definition: walletframe.cpp:125
WalletFrame::toggleLockWallet
void toggleLockWallet()
Toggle Wallet Lock State.
Definition: walletframe.cpp:204
WalletView
Definition: walletview.h:38
WalletModel
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:102
AskPassphraseDialog::Context
Context
Definition: askpassphrasedialog.h:34
WalletFrame::removeWallet
bool removeWallet(const QString &name)
Definition: walletframe.cpp:71
WalletFrame::changePassphrase
void changePassphrase()
Change encrypted wallet passphrase.
Definition: walletframe.cpp:173
WalletFrame::showSeedPhrase
void showSeedPhrase()
Show 24 word seed phrase.
Definition: walletframe.cpp:225
WalletFrame::backupWallet
void backupWallet()
Backup the wallet.
Definition: walletframe.cpp:166
WalletFrame::gotoMultiSendDialog
void gotoMultiSendDialog()
Show MultiSend Dialog.
Definition: walletframe.cpp:151
WalletFrame::bOutOfSync
bool bOutOfSync
Definition: walletframe.h:45
SendCoinsRecipient
Definition: walletmodel.h:46
WalletFrame::~WalletFrame
~WalletFrame()
Definition: walletframe.cpp:30
WalletFrame::usedReceivingAddresses
void usedReceivingAddresses()
Show used receiving addresses.
Definition: walletframe.cpp:218
WalletFrame::gotoOptionsPage
void gotoOptionsPage()
Switch to options page.
Definition: walletframe.cpp:132
WalletFrame::lockWallet
void lockWallet()
Lock wallet.
Definition: walletframe.cpp:197
WalletFrame::gotoBlockExplorerPage
void gotoBlockExplorerPage()
Switch to explorer page.
Definition: walletframe.cpp:118
WalletFrame::gui
BitcoinGUI * gui
Definition: walletframe.h:42
WalletFrame::setCurrentWallet
bool setCurrentWallet(const QString &name)
Definition: walletframe.cpp:60
WalletFrame::clientModel
ClientModel * clientModel
Definition: walletframe.h:43
WalletFrame::usedSendingAddresses
void usedSendingAddresses()
Show used sending addresses.
Definition: walletframe.cpp:211
WalletFrame::gotoSendCoinsPage
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
Definition: walletframe.cpp:139
WalletFrame::gotoMasternodePage
void gotoMasternodePage()
Switch to masternode page.
Definition: walletframe.cpp:111
name
const char * name
Definition: rest.cpp:34
BlockExplorer
Definition: blockexplorer.h:25
ClientModel
Model for PRCY network client.
Definition: clientmodel.h:44
WalletFrame::setClientModel
void setClientModel(ClientModel *clientModel)
Definition: walletframe.cpp:34
WalletFrame::unlockWallet
void unlockWallet(AskPassphraseDialog::Context context)
Ask for passphrase to unlock wallet temporarily.
Definition: walletframe.cpp:190
WalletFrame::gotoOverviewPage
void gotoOverviewPage()
Switch to overview (home) page.
Definition: walletframe.cpp:97
WalletFrame::walletStack
QStackedWidget * walletStack
Definition: walletframe.h:41
WalletFrame::mapWalletViews
QMap< QString, WalletView * > mapWalletViews
Definition: walletframe.h:44
WalletFrame::removeAllWallets
void removeAllWallets()
Definition: walletframe.cpp:81
WalletFrame::currentWalletView
WalletView * currentWalletView()
Definition: walletframe.cpp:232
BitcoinGUI
Bitcoin GUI main class.
Definition: bitcoingui.h:48
WalletFrame::gotoHistoryPage
void gotoHistoryPage()
Switch to history (transactions) page.
Definition: walletframe.cpp:104
askpassphrasedialog.h
WalletFrame::showSyncStatus
void showSyncStatus(bool fShow)
Definition: walletframe.cpp:89
WalletFrame::addWallet
bool addWallet(const QString &name, WalletModel *walletModel)
Definition: walletframe.cpp:39