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