From ad5115ac3c478d8cb8a4e040f9cc064e826a7af6 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Fri, 13 Jan 2017 23:21:58 +0100 Subject: Add estimated time countdown for locked balance --- src/libwalletqt/TransactionHistory.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libwalletqt/TransactionHistory.h') diff --git a/src/libwalletqt/TransactionHistory.h b/src/libwalletqt/TransactionHistory.h index 7ded833c..0c8bfc9d 100644 --- a/src/libwalletqt/TransactionHistory.h +++ b/src/libwalletqt/TransactionHistory.h @@ -17,6 +17,8 @@ class TransactionHistory : public QObject Q_PROPERTY(int count READ count) Q_PROPERTY(QDateTime firstDateTime READ firstDateTime NOTIFY firstDateTimeChanged) Q_PROPERTY(QDateTime lastDateTime READ lastDateTime NOTIFY lastDateTimeChanged) + Q_PROPERTY(int minutesToUnlock READ minutesToUnlock) + Q_PROPERTY(bool locked READ locked) public: Q_INVOKABLE TransactionInfo *transaction(int index); @@ -26,6 +28,8 @@ public: quint64 count() const; QDateTime firstDateTime() const; QDateTime lastDateTime() const; + quint64 minutesToUnlock() const; + bool locked() const; signals: void refreshStarted() const; @@ -45,6 +49,9 @@ private: mutable QList m_tinfo; mutable QDateTime m_firstDateTime; mutable QDateTime m_lastDateTime; + mutable int m_minutesToUnlock; + // history contains locked transfers + mutable bool m_locked; }; -- cgit v1.2.3