feather/src/libwalletqt/Transfer.h

31 lines
654 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2024-01-01 17:07:58 +00:00
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
#ifndef TRANSFER_H
#define TRANSFER_H
#include <QObject>
class Transfer : public QObject
{
Q_OBJECT
2022-03-12 14:03:33 +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; }
private:
friend class TransactionInfo;
2020-10-16 03:05:05 +00:00
friend class ConstructionInfo;
2023-11-23 20:18:11 +00:00
quint64 m_amount;
QString m_address;
};
2023-11-23 20:18:11 +00:00
#endif // TRANSFER_H