Bitcoin Core  27.99.0
P2P Digital Currency
transactiondesc.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2022 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 <qt/bitcoinunits.h>
9 
10 #include <QObject>
11 #include <QString>
12 
13 class TransactionRecord;
14 
15 namespace interfaces {
16 class Node;
17 class Wallet;
18 struct WalletTx;
19 struct WalletTxStatus;
20 }
21 
24 class TransactionDesc: public QObject
25 {
26  Q_OBJECT
27 
28 public:
30 
31 private:
33 
34  static QString FormatTxStatus(const interfaces::WalletTxStatus& status, bool inMempool);
35 };
36 
37 #endif // BITCOIN_QT_TRANSACTIONDESC_H
Unit
Bitcoin units.
Definition: bitcoinunits.h:42
Provide a human-readable extended HTML description of a transaction.
static QString FormatTxStatus(const interfaces::WalletTxStatus &status, bool inMempool)
static QString toHTML(interfaces::Node &node, interfaces::Wallet &wallet, TransactionRecord *rec, BitcoinUnit unit)
UI model for a transaction.
Top-level interface for a bitcoin node (bitcoind process).
Definition: node.h:70
Interface for accessing a wallet.
Definition: wallet.h:61
Definition: init.h:25
Updated transaction status.
Definition: wallet.h:411