WalletManager: add logging API from QML

requires #3345
This commit is contained in:
moneromooo-monero
2018-03-04 18:12:44 +00:00
parent 084c1c84f3
commit c85388815b
3 changed files with 26 additions and 1 deletions

View File

@@ -372,6 +372,26 @@ bool WalletManager::clearWalletCache(const QString &wallet_path) const
return walletCache.rename(newFileName);
}
void WalletManager::debug(const QString &s)
{
Monero::Wallet::debug("qml", s.toStdString());
}
void WalletManager::info(const QString &s)
{
Monero::Wallet::info("qml", s.toStdString());
}
void WalletManager::warning(const QString &s)
{
Monero::Wallet::warning("qml", s.toStdString());
}
void WalletManager::error(const QString &s)
{
Monero::Wallet::error("qml", s.toStdString());
}
WalletManager::WalletManager(QObject *parent) : QObject(parent)
{
m_pimpl = Monero::WalletManagerFactory::getWalletManager();