2016-12-03 13:06:57 +02:00
|
|
|
#ifndef TRANSFER_H
|
|
|
|
#define TRANSFER_H
|
|
|
|
|
2017-12-08 09:29:28 +02:00
|
|
|
#include <wallet/api/wallet2_api.h>
|
2016-12-03 13:06:57 +02:00
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class Transfer : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(quint64 amount READ amount)
|
|
|
|
Q_PROPERTY(QString address READ address)
|
|
|
|
private:
|
2016-12-03 13:07:47 +02:00
|
|
|
explicit Transfer(uint64_t _amount, const QString &_address, QObject *parent = 0): QObject(parent), m_amount(_amount), m_address(_address) {};
|
2016-12-03 13:06:57 +02:00
|
|
|
private:
|
|
|
|
friend class TransactionInfo;
|
2016-12-03 13:07:47 +02:00
|
|
|
quint64 m_amount;
|
2016-12-03 13:06:57 +02:00
|
|
|
QString m_address;
|
|
|
|
public:
|
2016-12-03 13:07:47 +02:00
|
|
|
quint64 amount() const { return m_amount; }
|
|
|
|
QString address() const { return m_address; }
|
2016-12-03 13:06:57 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRANSACTIONINFO_H
|