Changeset View
Changeset View
Standalone View
Standalone View
src/qt/openuridialog.h
// Copyright (c) 2011-2015 The Bitcoin Core developers | // Copyright (c) 2011-2015 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_OPENURIDIALOG_H | #ifndef BITCOIN_QT_OPENURIDIALOG_H | ||||
#define BITCOIN_QT_OPENURIDIALOG_H | #define BITCOIN_QT_OPENURIDIALOG_H | ||||
#include <QDialog> | #include <QDialog> | ||||
class Config; | class CChainParams; | ||||
namespace Ui { | namespace Ui { | ||||
class OpenURIDialog; | class OpenURIDialog; | ||||
} | } | ||||
class OpenURIDialog : public QDialog { | class OpenURIDialog : public QDialog { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit OpenURIDialog(const Config *configIn, QWidget *parent); | explicit OpenURIDialog(const CChainParams ¶ms, QWidget *parent); | ||||
~OpenURIDialog(); | ~OpenURIDialog(); | ||||
QString getURI(); | QString getURI(); | ||||
protected Q_SLOTS: | protected Q_SLOTS: | ||||
void accept() override; | void accept() override; | ||||
private Q_SLOTS: | private Q_SLOTS: | ||||
void on_selectFileButton_clicked(); | void on_selectFileButton_clicked(); | ||||
private: | private: | ||||
Ui::OpenURIDialog *ui; | Ui::OpenURIDialog *ui; | ||||
const Config *config; | const QString uriScheme; | ||||
}; | }; | ||||
#endif // BITCOIN_QT_OPENURIDIALOG_H | #endif // BITCOIN_QT_OPENURIDIALOG_H |