aboutsummaryrefslogtreecommitdiff
path: root/src/libwalletqt/Wallet.cpp
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2019-06-17 17:14:13 +0200
committerDusan Klinec <dusan.klinec@gmail.com>2019-07-15 17:54:50 +0200
commit2d72f55e57ace903d705cf617f305f366cf5665e (patch)
treedbfab7ca5cbdff6eda96c3c74b614b9c954623b4 /src/libwalletqt/Wallet.cpp
parent702b654f09785d7aacd0794293947a09d611c5ad (diff)
downloadmonzero-gui-2d72f55e57ace903d705cf617f305f366cf5665e.tar.gz
monzero-gui-2d72f55e57ace903d705cf617f305f366cf5665e.tar.xz
monzero-gui-2d72f55e57ace903d705cf617f305f366cf5665e.zip
device: show address on device display
Diffstat (limited to 'src/libwalletqt/Wallet.cpp')
-rw-r--r--src/libwalletqt/Wallet.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
index 46f843de..9cafd98c 100644
--- a/src/libwalletqt/Wallet.cpp
+++ b/src/libwalletqt/Wallet.cpp
@@ -253,6 +253,11 @@ void Wallet::initAsync(const QString &daemonAddress, quint64 upperTransactionLim
});
}
+bool Wallet::isHwBacked() const
+{
+ return m_walletImpl->getDeviceType() != Monero::Wallet::Device_Software;
+}
+
//! create a view only wallet
bool Wallet::createViewOnly(const QString &path, const QString &password) const
{
@@ -335,6 +340,13 @@ void Wallet::setSubaddressLabel(quint32 accountIndex, quint32 addressIndex, cons
{
m_walletImpl->setSubaddressLabel(accountIndex, addressIndex, label.toStdString());
}
+void Wallet::deviceShowAddressAsync(quint32 accountIndex, quint32 addressIndex, const QString &paymentId)
+{
+ m_scheduler.run([this, accountIndex, addressIndex, paymentId] {
+ m_walletImpl->deviceShowAddress(accountIndex, addressIndex, paymentId.toStdString());
+ emit deviceShowAddressShowed();
+ });
+}
void Wallet::refreshHeightAsync()
{