mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
30 lines
722 B
C
30 lines
722 B
C
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2014-2020, The Monero Project.
|
||
|
|
||
|
#ifndef FEATHER_INPUT_H
|
||
|
#define FEATHER_INPUT_H
|
||
|
|
||
|
#include <wallet/api/wallet2_api.h>
|
||
|
#include <QObject>
|
||
|
#include <utility>
|
||
|
|
||
|
class Input : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
Q_PROPERTY(quint64 amount READ amount)
|
||
|
Q_PROPERTY(QString pubKey READ pubKey)
|
||
|
|
||
|
private:
|
||
|
explicit Input(uint64_t _amount, QString _address, QObject *parent = nullptr): QObject(parent), m_amount(_amount), m_pubkey(std::move(_address)) {};
|
||
|
|
||
|
friend class ConstructionInfo;
|
||
|
quint64 m_amount;
|
||
|
QString m_pubkey;
|
||
|
public:
|
||
|
quint64 amount() const { return m_amount; }
|
||
|
QString pubKey() const { return m_pubkey; }
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif //FEATHER_INPUT_H
|