diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-08-24 11:30:50 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-08-24 11:30:50 +0200 |
| commit | 94c92ba73c1ffc1d8efed78e30de2b65b4904a84 (patch) | |
| tree | 434ec0de908fcfb1d68b0f950cf719ccafcda57d /src | |
| parent | 8480c70571ed815bfbdf2c6120a9a6fe1e7e1149 (diff) | |
| download | monzero-gui-94c92ba73c1ffc1d8efed78e30de2b65b4904a84.tar.gz monzero-gui-94c92ba73c1ffc1d8efed78e30de2b65b4904a84.tar.xz monzero-gui-94c92ba73c1ffc1d8efed78e30de2b65b4904a84.zip | |
add daemon/wallet log path getters
Diffstat (limited to 'src')
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 10 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index b79d77e5..5a71debf 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -599,6 +599,16 @@ bool Wallet::useForkRules(quint8 required_version, quint64 earlyBlocks) const } } +QString Wallet::getDaemonLogPath() const +{ + return QString::fromStdString(m_walletImpl->getDefaultDataDir()) + "/bitmonero.log"; +} + +QString Wallet::getWalletLogPath() const +{ + return QCoreApplication::applicationDirPath() + "/monero-wallet-gui.log"; +} + Wallet::Wallet(Monero::Wallet *w, QObject *parent) : QObject(parent) , m_walletImpl(w) diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index 1224b24d..01298cf1 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -45,6 +45,8 @@ class Wallet : public QObject Q_PROPERTY(QString publicViewKey READ getPublicViewKey) Q_PROPERTY(QString secretSpendKey READ getSecretSpendKey) Q_PROPERTY(QString publicSpendKey READ getPublicSpendKey) + Q_PROPERTY(QString daemonLogPath READ getDaemonLogPath CONSTANT) + Q_PROPERTY(QString walletLogPath READ getWalletLogPath CONSTANT) public: @@ -241,6 +243,9 @@ public: QString getSecretSpendKey() const {return QString::fromStdString(m_walletImpl->secretSpendKey());} QString getPublicSpendKey() const {return QString::fromStdString(m_walletImpl->publicSpendKey());} + QString getDaemonLogPath() const; + QString getWalletLogPath() const; + // TODO: setListenter() when it implemented in API signals: // emitted on every event happened with wallet |
