mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-08 20:09:43 +00:00
29 lines
727 B
C
29 lines
727 B
C
|
// 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;
|
||
|
quint64 m_amount;
|
||
|
QString m_address;
|
||
|
public:
|
||
|
quint64 amount() const { return m_amount; }
|
||
|
QString address() const { return m_address; }
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // TRANSACTIONINFO_H
|