Bitcoin Core  24.99.0
P2P Digital Currency
signverifymessagedialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2021 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_SIGNVERIFYMESSAGEDIALOG_H
6 #define BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
7 
8 #include <QDialog>
9 
10 class PlatformStyle;
11 class WalletModel;
12 
13 namespace Ui {
15 }
16 
17 class SignVerifyMessageDialog : public QDialog
18 {
19  Q_OBJECT
20 
21 public:
22  explicit SignVerifyMessageDialog(const PlatformStyle *platformStyle, QWidget *parent);
24 
25  void setModel(WalletModel *model);
26  void setAddress_SM(const QString &address);
27  void setAddress_VM(const QString &address);
28 
29  void showTab_SM(bool fShow);
30  void showTab_VM(bool fShow);
31 
32 protected:
33  bool eventFilter(QObject *object, QEvent *event) override;
34  void changeEvent(QEvent* e) override;
35 
36 private:
37  Ui::SignVerifyMessageDialog *ui;
38  WalletModel* model{nullptr};
40 
41 private Q_SLOTS:
42  /* sign message */
48  /* verify message */
52 };
53 
54 #endif // BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
bool eventFilter(QObject *object, QEvent *event) override
void setAddress_SM(const QString &address)
void changeEvent(QEvent *e) override
SignVerifyMessageDialog(const PlatformStyle *platformStyle, QWidget *parent)
const PlatformStyle * platformStyle
void setModel(WalletModel *model)
Ui::SignVerifyMessageDialog * ui
void setAddress_VM(const QString &address)
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:53