Bitcoin ABC  0.24.10
P2P Digital Currency
transactiondesc.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_TRANSACTIONDESC_H
6 #define BITCOIN_QT_TRANSACTIONDESC_H
7 
8 #include <QObject>
9 #include <QString>
10 
11 class TransactionRecord;
12 
13 namespace interfaces {
14 class Node;
15 class Wallet;
16 struct WalletTx;
17 struct WalletTxStatus;
18 } // namespace interfaces
19 
23 class TransactionDesc : public QObject {
24  Q_OBJECT
25 
26 public:
27  static QString toHTML(interfaces::Node &node, interfaces::Wallet &wallet,
28  TransactionRecord *rec, int unit);
29 
30 private:
32 
33  static QString FormatTxStatus(const interfaces::WalletTx &wtx,
34  const interfaces::WalletTxStatus &status,
35  bool inMempool, int numBlocks);
36 };
37 
38 #endif // BITCOIN_QT_TRANSACTIONDESC_H
interfaces
Definition: dummywallet.cpp:12
TransactionDesc::TransactionDesc
TransactionDesc()
Definition: transactiondesc.h:31
TransactionDesc::toHTML
static QString toHTML(interfaces::Node &node, interfaces::Wallet &wallet, TransactionRecord *rec, int unit)
Definition: transactiondesc.cpp:92
TransactionRecord
UI model for a transaction.
Definition: transactionrecord.h:91
interfaces::WalletTx
Definition: wallet.h:372
TransactionDesc::FormatTxStatus
static QString FormatTxStatus(const interfaces::WalletTx &wtx, const interfaces::WalletTxStatus &status, bool inMempool, int numBlocks)
Definition: transactiondesc.cpp:31
interfaces::WalletTxStatus
Updated transaction status.
Definition: wallet.h:387
interfaces::Wallet
Interface for accessing a wallet.
Definition: wallet.h:59
interfaces::Node
Top-level interface for a bitcoin node (bitcoind process).
Definition: node.h:55
TransactionDesc
Provide a human-readable extended HTML description of a transaction.
Definition: transactiondesc.h:23