diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-01-04 17:25:22 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-01-15 12:32:25 +0100 |
| commit | fd983955b4dbdbd612fbdf5ed08d8c8a049fb840 (patch) | |
| tree | 998ef5867e5439aa96c19439c1fe65eb244d51cb /src/libwalletqt/Wallet.cpp | |
| parent | 8f56e9839739c8b0d821b1b38c06e458a1ab6d06 (diff) | |
| download | monzero-gui-fd983955b4dbdbd612fbdf5ed08d8c8a049fb840.tar.gz monzero-gui-fd983955b4dbdbd612fbdf5ed08d8c8a049fb840.tar.xz monzero-gui-fd983955b4dbdbd612fbdf5ed08d8c8a049fb840.zip | |
view only wallets
wizard: fix dots on pw page
wizard: fix focus on pw field
viewOnly: added success message
Diffstat (limited to 'src/libwalletqt/Wallet.cpp')
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 47f4a06a..b39851dc 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -158,6 +158,15 @@ void Wallet::initAsync(const QString &daemonAddress, quint64 upperTransactionLim m_walletImpl->initAsync(daemonAddress.toStdString(), upperTransactionLimit); } +//! create a view only wallet +bool Wallet::createViewOnly(const QString &path, const QString &password) const +{ + // Create path + QDir d = QFileInfo(path).absoluteDir(); + d.mkpath(d.absolutePath()); + return m_walletImpl->createWatchOnly(path.toStdString(),password.toStdString(),m_walletImpl->getSeedLanguage()); +} + bool Wallet::connectToDaemon() { return m_walletImpl->connectToDaemon(); @@ -168,6 +177,11 @@ void Wallet::setTrustedDaemon(bool arg) m_walletImpl->setTrustedDaemon(arg); } +bool Wallet::viewOnly() const +{ + return m_walletImpl->watchOnly(); +} + quint64 Wallet::balance() const { return m_walletImpl->balance(); |
