2020-12-31 09:48:25 +01:00
|
|
|
// Copyright (c) 2011-2020 The Bitcoin Core developers
|
2014-12-13 12:09:33 +08:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2013-11-04 16:20:43 +01:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#ifndef BITCOIN_QT_RECEIVEREQUESTDIALOG_H
|
|
|
|
#define BITCOIN_QT_RECEIVEREQUESTDIALOG_H
|
2011-11-11 01:20:17 +11:00
|
|
|
|
2019-11-19 11:10:40 +02:00
|
|
|
#include <qt/sendcoinsrecipient.h>
|
2013-10-18 13:45:11 +02:00
|
|
|
|
2011-11-11 01:20:17 +11:00
|
|
|
#include <QDialog>
|
|
|
|
|
2019-11-19 13:45:32 +02:00
|
|
|
class WalletModel;
|
|
|
|
|
2011-11-11 01:20:17 +11:00
|
|
|
namespace Ui {
|
2013-10-16 15:14:26 +02:00
|
|
|
class ReceiveRequestDialog;
|
2011-11-11 01:20:17 +11:00
|
|
|
}
|
2014-06-03 14:42:20 +02:00
|
|
|
|
2013-10-16 15:14:26 +02:00
|
|
|
class ReceiveRequestDialog : public QDialog
|
2011-11-11 01:20:17 +11:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-07-30 12:37:09 +02:00
|
|
|
explicit ReceiveRequestDialog(QWidget *parent = nullptr);
|
2013-10-16 15:14:26 +02:00
|
|
|
~ReceiveRequestDialog();
|
2011-11-11 01:20:17 +11:00
|
|
|
|
2018-03-06 13:17:36 +08:00
|
|
|
void setModel(WalletModel *model);
|
2013-10-18 14:25:35 +02:00
|
|
|
void setInfo(const SendCoinsRecipient &info);
|
2012-06-24 18:28:05 +02:00
|
|
|
|
2015-07-14 13:59:05 +02:00
|
|
|
private Q_SLOTS:
|
2013-10-18 14:25:35 +02:00
|
|
|
void on_btnCopyURI_clicked();
|
2013-10-18 19:42:40 +02:00
|
|
|
void on_btnCopyAddress_clicked();
|
2020-05-05 05:57:08 +03:00
|
|
|
void updateDisplayUnit();
|
2011-11-11 01:20:17 +11:00
|
|
|
|
|
|
|
private:
|
2013-10-16 15:14:26 +02:00
|
|
|
Ui::ReceiveRequestDialog *ui;
|
2018-03-06 13:17:36 +08:00
|
|
|
WalletModel *model;
|
2013-10-18 13:45:11 +02:00
|
|
|
SendCoinsRecipient info;
|
2011-11-11 01:20:17 +11:00
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_RECEIVEREQUESTDIALOG_H
|