mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-11 13:24:33 +00:00
wallet api: added getTxKey()
This commit is contained in:
parent
d628795b8d
commit
cfa8929579
2 changed files with 7 additions and 0 deletions
|
@ -270,6 +270,11 @@ QString Wallet::getUserNote(const QString &txid) const
|
||||||
return QString::fromStdString(m_walletImpl->getUserNote(txid.toStdString()));
|
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)
|
Wallet::Wallet(Bitmonero::Wallet *w, QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_walletImpl(w)
|
, m_walletImpl(w)
|
||||||
|
|
|
@ -141,6 +141,8 @@ public:
|
||||||
Q_INVOKABLE bool setUserNote(const QString &txid, const QString ¬e);
|
Q_INVOKABLE bool setUserNote(const QString &txid, const QString ¬e);
|
||||||
Q_INVOKABLE QString getUserNote(const QString &txid) const;
|
Q_INVOKABLE QString getUserNote(const QString &txid) const;
|
||||||
|
|
||||||
|
Q_INVOKABLE QString getTxKey(const QString &txid) const;
|
||||||
|
|
||||||
// TODO: setListenter() when it implemented in API
|
// TODO: setListenter() when it implemented in API
|
||||||
signals:
|
signals:
|
||||||
// emitted on every event happened with wallet
|
// emitted on every event happened with wallet
|
||||||
|
|
Loading…
Reference in a new issue