Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

walletframe.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Distributed under the MIT 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 <QFrame>
9 #include <QMap>
10 
11 class BitcoinGUI;
12 class ClientModel;
13 class SendCoinsRecipient;
14 class WalletModel;
15 class WalletView;
16 
17 QT_BEGIN_NAMESPACE
18 class QStackedWidget;
19 QT_END_NAMESPACE
20 
28 class WalletFrame : public QFrame
29 {
30  Q_OBJECT
31 
32 public:
33  explicit WalletFrame(BitcoinGUI* _gui = 0);
34  ~WalletFrame();
35 
37 
38  bool addWallet(const QString& name, WalletModel *walletModel);
39  bool setCurrentWallet(const QString& name);
40  bool removeWallet(const QString &name);
41  void removeAllWallets();
42 
43  bool handlePaymentRequest(const SendCoinsRecipient& recipient);
44 
45  void showOutOfSyncWarning(bool fShow);
46 
47 Q_SIGNALS:
50 
51 private:
52  QStackedWidget *walletStack;
55  QMap<QString, WalletView*> mapWalletViews;
56 
57  bool bOutOfSync;
58 
59 public:
61 
62 public Q_SLOTS:
64  void gotoOverviewPage();
66  void gotoHistoryPage();
68  void gotoMasternodePage();
70  void gotoReceiveCoinsPage();
72  void gotoSendCoinsPage(QString addr = "");
74  void gotoPrivateSendCoinsPage(QString addr = "");
75 
77  void gotoSignMessageTab(QString addr = "");
79  void gotoVerifyMessageTab(QString addr = "");
80 
82  void encryptWallet(bool status);
84  void backupWallet();
86  void changePassphrase();
88  void unlockWallet();
90  void lockWallet();
91 
93  void usedSendingAddresses();
98 };
99 
100 #endif // BITCOIN_QT_WALLETFRAME_H
void lockWallet()
Lock wallet.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
Definition: walletframe.cpp:95
bool setCurrentWallet(const QString &name)
Definition: walletframe.cpp:65
void gotoMasternodePage()
Switch to masternode page.
bool bOutOfSync
Definition: walletframe.h:57
WalletView * currentWalletView()
ClientModel * clientModel
Definition: walletframe.h:54
void usedReceivingAddresses()
Show used receiving addresses.
QStackedWidget * walletStack
Definition: walletframe.h:52
void encryptWallet(bool status)
Encrypt the wallet.
Bitcoin GUI main class.
Definition: bitcoingui.h:49
void outOfSyncWarningClicked()
Pass on signal over requested out-of-sync-warning information.
QMap< QString, WalletView * > mapWalletViews
Definition: walletframe.h:55
void removeAllWallets()
Definition: walletframe.cpp:87
void showOutOfSyncWarning(bool fShow)
void gotoHistoryPage()
Switch to history (transactions) page.
void gotoOverviewPage()
Switch to overview (home) page.
void setClientModel(ClientModel *clientModel)
Definition: walletframe.cpp:36
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
BitcoinGUI * gui
Definition: walletframe.h:53
const char * name
Definition: rest.cpp:36
bool addWallet(const QString &name, WalletModel *walletModel)
Definition: walletframe.cpp:41
void gotoPrivateSendCoinsPage(QString addr="")
Switch to PrivateSend coins page.
void changePassphrase()
Change encrypted wallet passphrase.
Model for Dash network client.
Definition: clientmodel.h:42
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 requestedSyncWarningInfo()
Notify that the user has requested more information about the out-of-sync warning.
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
WalletFrame(BitcoinGUI *_gui=0)
Definition: walletframe.cpp:16
void gotoReceiveCoinsPage()
Switch to receive coins page.
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:100
bool removeWallet(const QString &name)
Definition: walletframe.cpp:77
void backupWallet()
Backup the wallet.
A container for embedding all wallet-related controls into BitcoinGUI.
Definition: walletframe.h:28
void usedSendingAddresses()
Show used sending addresses.
Released under the MIT license