Raven Core  3.0.0
P2P Digital Currency
walletframe.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_QT_WALLETFRAME_H
7 #define RAVEN_QT_WALLETFRAME_H
8 
9 #include <QFrame>
10 #include <QMap>
11 
12 class RavenGUI;
13 class ClientModel;
14 class PlatformStyle;
15 class SendCoinsRecipient;
16 class WalletModel;
17 class WalletView;
18 
19 QT_BEGIN_NAMESPACE
20 class QStackedWidget;
21 QT_END_NAMESPACE
22 
30 class WalletFrame : public QFrame
31 {
32  Q_OBJECT
33 
34 public:
35  explicit WalletFrame(const PlatformStyle *platformStyle, RavenGUI *_gui = 0);
36  ~WalletFrame();
37 
39 
40  bool addWallet(const QString& name, WalletModel *walletModel);
41  bool setCurrentWallet(const QString& name);
42  bool removeWallet(const QString &name);
43  void removeAllWallets();
44 
45  bool handlePaymentRequest(const SendCoinsRecipient& recipient);
46 
47  void showOutOfSyncWarning(bool fShow);
48 
49 Q_SIGNALS:
52 
53 private:
54  QStackedWidget *walletStack;
57  QMap<QString, WalletView*> mapWalletViews;
58 
59  bool bOutOfSync;
60 
62 
64 
65 public Q_SLOTS:
67  void gotoOverviewPage();
69  void gotoHistoryPage();
71  void gotoReceiveCoinsPage();
73  void gotoSendCoinsPage(QString addr = "");
74 
76  void gotoSignMessageTab(QString addr = "");
78  void gotoVerifyMessageTab(QString addr = "");
79 
81  void encryptWallet(bool status);
83  void backupWallet();
85  void changePassphrase();
87  void unlockWallet();
88 
90  void usedSendingAddresses();
95 
99  void gotoAssetsPage();
100  void gotoCreateAssetsPage();
101  void gotoManageAssetsPage();
103 };
104 
105 #endif // RAVEN_QT_WALLETFRAME_H
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
Definition: walletframe.cpp:97
bool setCurrentWallet(const QString &name)
Definition: walletframe.cpp:67
RavenGUI * gui
Definition: walletframe.h:55
bool bOutOfSync
Definition: walletframe.h:59
WalletView * currentWalletView()
ClientModel * clientModel
Definition: walletframe.h:56
void usedReceivingAddresses()
Show used receiving addresses.
QStackedWidget * walletStack
Definition: walletframe.h:54
void encryptWallet(bool status)
Encrypt the wallet.
void outOfSyncWarningClicked()
Pass on signal over requested out-of-sync-warning information.
QMap< QString, WalletView * > mapWalletViews
Definition: walletframe.h:57
void removeAllWallets()
Definition: walletframe.cpp:89
void showOutOfSyncWarning(bool fShow)
void gotoHistoryPage()
Switch to history (transactions) page.
void gotoCreateAssetsPage()
void gotoOverviewPage()
Switch to overview (home) page.
void setClientModel(ClientModel *clientModel)
Definition: walletframe.cpp:38
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
bool addWallet(const QString &name, WalletModel *walletModel)
Definition: walletframe.cpp:43
void changePassphrase()
Change encrypted wallet passphrase.
Model for Raven network client.
Definition: clientmodel.h:39
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.
const PlatformStyle * platformStyle
Definition: walletframe.h:61
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void gotoReceiveCoinsPage()
Switch to receive coins page.
Interface to Raven wallet from Qt view code.
Definition: walletmodel.h:165
Raven GUI main class.
Definition: ravengui.h:47
bool removeWallet(const QString &name)
Definition: walletframe.cpp:79
void gotoManageAssetsPage()
void backupWallet()
Backup the wallet.
void gotoAssetsPage()
RVN START.
A container for embedding all wallet-related controls into RavenGUI.
Definition: walletframe.h:30
void usedSendingAddresses()
Show used sending addresses.
WalletFrame(const PlatformStyle *platformStyle, RavenGUI *_gui=0)
Definition: walletframe.cpp:17