mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-03-20 22:28:53 +00:00
add start/pauseRefresh()
This commit is contained in:
parent
2ed59f41ed
commit
df60c8190b
2 changed files with 14 additions and 0 deletions
|
@ -302,6 +302,16 @@ int Wallet::autoRefreshInterval() const
|
||||||
return m_walletImpl->autoRefreshInterval();
|
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,
|
PendingTransaction *Wallet::createTransaction(const QString &dst_addr, const QString &payment_id,
|
||||||
quint64 amount, quint32 mixin_count,
|
quint64 amount, quint32 mixin_count,
|
||||||
PendingTransaction::Priority priority)
|
PendingTransaction::Priority priority)
|
||||||
|
|
|
@ -146,6 +146,10 @@ public:
|
||||||
//! return auto-refresh interval in seconds
|
//! return auto-refresh interval in seconds
|
||||||
Q_INVOKABLE int autoRefreshInterval() const;
|
Q_INVOKABLE int autoRefreshInterval() const;
|
||||||
|
|
||||||
|
// pause/resume refresh
|
||||||
|
Q_INVOKABLE void startRefresh() const;
|
||||||
|
Q_INVOKABLE void pauseRefresh() const;
|
||||||
|
|
||||||
//! creates transaction
|
//! creates transaction
|
||||||
Q_INVOKABLE PendingTransaction * createTransaction(const QString &dst_addr, const QString &payment_id,
|
Q_INVOKABLE PendingTransaction * createTransaction(const QString &dst_addr, const QString &payment_id,
|
||||||
quint64 amount, quint32 mixin_count,
|
quint64 amount, quint32 mixin_count,
|
||||||
|
|
Loading…
Reference in a new issue