wallet api: added getTxKey()

This commit is contained in:
Jacob Brydolf 2016-11-06 19:27:08 +01:00
parent d628795b8d
commit cfa8929579
2 changed files with 7 additions and 0 deletions

View file

@ -270,6 +270,11 @@ QString Wallet::getUserNote(const QString &txid) const
return QString::fromStdString(m_walletImpl->getUserNote(txid.toStdString()));
}
QString Wallet::getTxKey(const QString &txid) const
{
return QString::fromStdString(m_walletImpl->getTxKey(txid.toStdString()));
}
Wallet::Wallet(Bitmonero::Wallet *w, QObject *parent)
: QObject(parent)
, m_walletImpl(w)

View file

@ -141,6 +141,8 @@ public:
Q_INVOKABLE bool setUserNote(const QString &txid, const QString &note);
Q_INVOKABLE QString getUserNote(const QString &txid) const;
Q_INVOKABLE QString getTxKey(const QString &txid) const;
// TODO: setListenter() when it implemented in API
signals:
// emitted on every event happened with wallet