feather/src/libwalletqt/Transfer.h

30 lines
696 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2023-01-02 19:30:11 +00:00
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
#ifndef TRANSFER_H
#define TRANSFER_H
#include <wallet/api/wallet2_api.h>
#include <QObject>
#include <utility>
class Transfer : public QObject
{
Q_OBJECT
2022-03-12 14:03:33 +00:00
private:
2021-01-29 14:51:59 +00:00
explicit Transfer(uint64_t _amount, QString _address, QObject *parent = 0)
: QObject(parent), m_amount(_amount), m_address(std::move(_address)) {};
private:
friend class TransactionInfo;
2020-10-16 03:05:05 +00:00
friend class ConstructionInfo;
quint64 m_amount;
QString m_address;
public:
quint64 amount() const { return m_amount; }
QString address() const { return m_address; }
};
#endif // TRANSACTIONINFO_H