monero-gui/src/libwalletqt/PendingTransaction.cpp

55 lines
987 B
C++
Raw Normal View History

2016-06-08 10:53:24 +00:00
#include "PendingTransaction.h"
2016-06-28 19:37:14 +00:00
2016-06-08 10:53:24 +00:00
PendingTransaction::Status PendingTransaction::status() const
{
return static_cast<Status>(m_pimpl->status());
}
QString PendingTransaction::errorString() const
{
return QString::fromStdString(m_pimpl->errorString());
}
bool PendingTransaction::commit()
{
return m_pimpl->commit();
}
quint64 PendingTransaction::amount() const
{
return m_pimpl->amount();
}
quint64 PendingTransaction::dust() const
{
return m_pimpl->dust();
}
quint64 PendingTransaction::fee() const
{
return m_pimpl->fee();
}
QStringList PendingTransaction::txid() const
{
QStringList list;
std::vector<std::string> txid = m_pimpl->txid();
for (const auto &t: txid)
list.append(QString::fromStdString(t));
return list;
}
quint64 PendingTransaction::txCount() const
{
return m_pimpl->txCount();
}
2016-12-13 18:51:07 +00:00
PendingTransaction::PendingTransaction(Monero::PendingTransaction *pt, QObject *parent)
2016-06-08 10:53:24 +00:00
: QObject(parent), m_pimpl(pt)
{
}