2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2024-01-01 17:07:58 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
#ifndef TRANSFER_H
|
|
|
|
#define TRANSFER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class Transfer : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2022-03-12 14:03:33 +00:00
|
|
|
|
2023-11-17 13:05:31 +00:00
|
|
|
public:
|
2023-11-23 20:18:11 +00:00
|
|
|
explicit Transfer(uint64_t amount, QString address, QObject *parent = nullptr)
|
|
|
|
: QObject(parent)
|
|
|
|
, m_amount(amount)
|
|
|
|
, m_address(std::move(address)) {};
|
|
|
|
|
|
|
|
quint64 amount() const { return m_amount; }
|
|
|
|
QString address() const { return m_address; }
|
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
private:
|
|
|
|
friend class TransactionInfo;
|
2020-10-16 03:05:05 +00:00
|
|
|
friend class ConstructionInfo;
|
2023-11-23 20:18:11 +00:00
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
quint64 m_amount;
|
|
|
|
QString m_address;
|
|
|
|
};
|
|
|
|
|
2023-11-23 20:18:11 +00:00
|
|
|
#endif // TRANSFER_H
|