Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
walletview.h
Go to the documentation of this file.
1// Copyright (c) 2011-2016 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_WALLETVIEW_H
6#define BITCOIN_QT_WALLETVIEW_H
7
8#include <consensus/amount.h>
9
10#include <QStackedWidget>
11
12class ClientModel;
13class OverviewPage;
14class PlatformStyle;
16class SendCoinsDialog;
18class TransactionView;
19class WalletModel;
20class AddressBookPage;
21
23class QModelIndex;
24class QProgressDialog;
26
34class WalletView : public QStackedWidget {
36
37public:
39 QWidget *parent);
41
55
56 bool handlePaymentRequest(const SendCoinsRecipient &recipient);
57
58 void showOutOfSyncWarning(bool fShow);
59
60private:
63
70
72
75
76public Q_SLOTS:
78 void gotoOverviewPage();
80 void gotoHistoryPage();
84 void gotoSendCoinsPage(QString addr = "");
85
87 void gotoSignMessageTab(QString addr = "");
89 void gotoVerifyMessageTab(QString addr = "");
91 void gotoLoadPSBT();
92
99 void processNewTransaction(const QModelIndex &parent, int start, int end);
101 void encryptWallet();
103 void backupWallet();
105 void changePassphrase();
107 void unlockWallet();
108
113
116
118 void showProgress(const QString &title, int nProgress);
119
122
124 void setPrivacy(bool privacy);
126 void coinsSent();
128 void message(const QString &title, const QString &message,
129 unsigned int style);
135 void incomingTransaction(const QString &date, int unit, const Amount amount,
136 const QString &type, const QString &address,
137 const QString &label, const QString &walletName);
140};
141
142#endif // BITCOIN_QT_WALLETVIEW_H
Widget that shows a list of sending or receiving addresses.
Model for Bitcoin network client.
Definition clientmodel.h:43
Overview ("home") page widget.
Dialog for requesting payment of bitcoins.
Dialog for sending bitcoins.
Widget showing the transaction list for a wallet, including a filter row.
Interface to Bitcoin wallet from Qt view code.
Definition walletmodel.h:47
WalletView class.
Definition walletview.h:34
const PlatformStyle * platformStyle
Definition walletview.h:74
void gotoHistoryPage()
Switch to history (transactions) page.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void incomingTransaction(const QString &date, int unit, const Amount amount, const QString &type, const QString &address, const QString &label, const QString &walletName)
Notify that a new transaction appeared.
void changePassphrase()
Change encrypted wallet passphrase.
QProgressDialog * progressDialog
Definition walletview.h:73
SendCoinsDialog * sendCoinsPage
Definition walletview.h:67
OverviewPage * overviewPage
Definition walletview.h:64
void setClientModel(ClientModel *clientModel)
Set the client model.
void outOfSyncWarningClicked()
Notify that the out of sync warning icon has been pressed.
void gotoReceiveCoinsPage()
Switch to receive coins page.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
QWidget * transactionsPage
Definition walletview.h:65
void usedSendingAddresses()
Show used sending addresses.
ReceiveCoinsDialog * receiveCoinsPage
Definition walletview.h:66
void encryptWallet()
Encrypt the wallet.
TransactionView * transactionView
Definition walletview.h:71
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
AddressBookPage * usedReceivingAddressesPage
Definition walletview.h:69
void backupWallet()
Backup the wallet.
ClientModel * clientModel
Definition walletview.h:61
void gotoLoadPSBT()
Load Partially Signed Bitcoin Transaction.
void requestedSyncWarningInfo()
User has requested more information about the out of sync state.
AddressBookPage * usedSendingAddressesPage
Definition walletview.h:68
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
WalletModel * walletModel
Definition walletview.h:62
void gotoOverviewPage()
Switch to overview (home) page.
void usedReceivingAddresses()
Show used receiving addresses.
void transactionClicked()
WalletModel * getWalletModel()
Definition walletview.h:48
void updateEncryptionStatus()
Re-emit encryption status signal.
void hdEnabledStatusChanged()
HD-Enabled status of wallet changed (only possible during startup)
void coinsSent()
void setPrivacy(bool privacy)
void processNewTransaction(const QModelIndex &parent, int start, int end)
Show incoming transaction notification for new transactions.
void showOutOfSyncWarning(bool fShow)
void encryptionStatusChanged()
Encryption status of wallet changed.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85