PIVX Core  5.6.99
P2P Digital Currency
addnewcontactdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2020 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_ADDNEWCONTACTDIALOG_H
6 #define PIVX_QT_ADDNEWCONTACTDIALOG_H
7 
8 #include "focuseddialog.h"
9 
10 namespace Ui {
12 }
13 
15 {
16  Q_OBJECT
17 
18 public:
19  explicit AddNewContactDialog(QWidget *parent = nullptr);
21 
22  void setTexts(QString title, const char* message = nullptr);
23  void setData(QString address, QString label);
24  void showEvent(QShowEvent *event) override;
25  QString getLabel();
26 
27  bool res = false;
28 
29 public Q_SLOTS:
30  void accept() override;
31 private:
32  Ui::AddNewContactDialog *ui;
33  const char* message = nullptr;
34 };
35 
36 #endif // PIVX_QT_ADDNEWCONTACTDIALOG_H
AddNewContactDialog(QWidget *parent=nullptr)
void showEvent(QShowEvent *event) override
void setTexts(QString title, const char *message=nullptr)
Ui::AddNewContactDialog * ui
void setData(QString address, QString label)