diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-04-18 16:42:30 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-04-04 16:52:40 -0400 |
commit | 58845587e11140e81f087a74c3db76a4d1fc3a1a (patch) | |
tree | 9a150957bd523137b38de0909e8ae1ab5e7b9984 /src/qt/transactiondesc.h | |
parent | 3cab2ce5f9e159ad5a2e9ed682f28121b5248580 (diff) |
Remove direct bitcoin calls from qt transaction table files
Diffstat (limited to 'src/qt/transactiondesc.h')
-rw-r--r-- | src/qt/transactiondesc.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/qt/transactiondesc.h b/src/qt/transactiondesc.h index 01b90b130f..ea9ab28ee3 100644 --- a/src/qt/transactiondesc.h +++ b/src/qt/transactiondesc.h @@ -10,8 +10,12 @@ class TransactionRecord; -class CWallet; -class CWalletTx; +namespace interface { +class Node; +class Wallet; +struct WalletTx; +struct WalletTxStatus; +} /** Provide a human-readable extended HTML description of a transaction. */ @@ -20,12 +24,12 @@ class TransactionDesc: public QObject Q_OBJECT public: - static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit); + static QString toHTML(interface::Node& node, interface::Wallet& wallet, TransactionRecord *rec, int unit); private: TransactionDesc() {} - static QString FormatTxStatus(const CWalletTx& wtx); + static QString FormatTxStatus(const interface::WalletTx& wtx, const interface::WalletTxStatus& status, bool inMempool, int numBlocks, int64_t adjustedTime); }; #endif // BITCOIN_QT_TRANSACTIONDESC_H |