add start/pauseRefresh()

This commit is contained in:
Jaquee 2017-02-25 19:49:09 +01:00
parent 2ed59f41ed
commit df60c8190b
No known key found for this signature in database
GPG key ID: 384E52B09F45DC39
2 changed files with 14 additions and 0 deletions

View file

@ -302,6 +302,16 @@ int Wallet::autoRefreshInterval() const
return m_walletImpl->autoRefreshInterval();
}
void Wallet::startRefresh() const
{
m_walletImpl->startRefresh();
}
void Wallet::pauseRefresh() const
{
m_walletImpl->pauseRefresh();
}
PendingTransaction *Wallet::createTransaction(const QString &dst_addr, const QString &payment_id,
quint64 amount, quint32 mixin_count,
PendingTransaction::Priority priority)

View file

@ -146,6 +146,10 @@ public:
//! return auto-refresh interval in seconds
Q_INVOKABLE int autoRefreshInterval() const;
// pause/resume refresh
Q_INVOKABLE void startRefresh() const;
Q_INVOKABLE void pauseRefresh() const;
//! creates transaction
Q_INVOKABLE PendingTransaction * createTransaction(const QString &dst_addr, const QString &payment_id,
quint64 amount, quint32 mixin_count,