openuridialog.h raw
1 // Copyright (c) 2011-present 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_OPENURIDIALOG_H
6 #define BITCOIN_QT_OPENURIDIALOG_H
7
8 #include <QDialog>
9
10 class PlatformStyle;
11
12 namespace Ui {
13 class OpenURIDialog;
14 }
15
16 class OpenURIDialog : public QDialog
17 {
18 Q_OBJECT
19
20 public:
21 explicit OpenURIDialog(const PlatformStyle* platformStyle, QWidget* parent);
22 ~OpenURIDialog();
23
24 QString getURI();
25
26 protected Q_SLOTS:
27 void accept() override;
28 void changeEvent(QEvent* e) override;
29
30 private:
31 Ui::OpenURIDialog* ui;
32
33 const PlatformStyle* m_platform_style;
34 };
35
36 #endif // BITCOIN_QT_OPENURIDIALOG_H
37