PIVX Core  5.6.99
P2P Digital Currency
mninfodialog.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2021 The PIVX 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 PIVX_QT_MNINFODIALOG_H
6 #define PIVX_QT_MNINFODIALOG_H
7 
8 #include "focuseddialog.h"
9 #include "snackbar.h"
10 
11 class WalletModel;
12 
13 namespace Ui {
14 class MnInfoDialog;
15 }
16 
18 {
19  Q_OBJECT
20 
21 public:
22  explicit MnInfoDialog(QWidget *parent = nullptr);
23  ~MnInfoDialog();
24 
25  bool exportMN = false;
26 
27  void setData(const QString& _pubKey, const QString& name, const QString& address, const QString& _txId, const QString& outputIndex, const QString& status);
28 
29 public Q_SLOTS:
30  void reject() override;
31 
32 private:
33  Ui::MnInfoDialog *ui;
34  SnackBar *snackBar = nullptr;
35  int nDisplayUnit = 0;
36  WalletModel *model = nullptr;
37  QString txId;
38  QString pubKey;
39 
40  void copyInform(const QString& copyStr, const QString& message);
41 };
42 
43 #endif // PIVX_QT_MNINFODIALOG_H
QString txId
Definition: mninfodialog.h:37
void copyInform(const QString &copyStr, const QString &message)
QString pubKey
Definition: mninfodialog.h:38
MnInfoDialog(QWidget *parent=nullptr)
SnackBar * snackBar
Definition: mninfodialog.h:34
WalletModel * model
Definition: mninfodialog.h:36
void reject() override
void setData(const QString &_pubKey, const QString &name, const QString &address, const QString &_txId, const QString &outputIndex, const QString &status)
Ui::MnInfoDialog * ui
Definition: mninfodialog.h:33
Interface to PIVX wallet from Qt view code.
Definition: walletmodel.h:109
const char * name
Definition: rest.cpp:37