diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 10 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 7643f379..0047f8dd 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -336,6 +336,16 @@ quint64 Wallet::daemonBlockChainTargetHeight() const return m_daemonBlockChainTargetHeight; } +bool Wallet::exportKeyImages(const QString& path) +{ + return m_walletImpl->exportKeyImages(path.toStdString()); +} + +bool Wallet::importKeyImages(const QString& path) +{ + return m_walletImpl->importKeyImages(path.toStdString()); +} + bool Wallet::refresh() { bool result = m_walletImpl->refresh(); diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index f37d556d..df413363 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -159,6 +159,10 @@ public: //! returns daemon's blockchain target height Q_INVOKABLE quint64 daemonBlockChainTargetHeight() const; + //! export/import key images + Q_INVOKABLE bool exportKeyImages(const QString& path); + Q_INVOKABLE bool importKeyImages(const QString& path); + //! refreshes the wallet Q_INVOKABLE bool refresh(); |
