wowlet/src/libwalletqt/Transfer.h

30 lines
762 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2014-2020, 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
Q_PROPERTY(quint64 amount READ amount)
Q_PROPERTY(QString address READ address)
private:
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