Raven Core  3.0.0
P2P Digital Currency
transactiondesc.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_QT_TRANSACTIONDESC_H
7 #define RAVEN_QT_TRANSACTIONDESC_H
8 
9 #include <QObject>
10 #include <QString>
11 
12 class TransactionRecord;
13 
14 class CWallet;
15 class CWalletTx;
16 
19 class TransactionDesc: public QObject
20 {
21  Q_OBJECT
22 
23 public:
24  static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit);
25  static QString toAssetHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit);
26  static void CreateDebugString(QString& strHTML, CWallet *wallet, CWalletTx &wtx, int unit);
27 
28 private:
30 
31  static QString FormatTxStatus(const CWalletTx& wtx);
32 };
33 
34 #endif // RAVEN_QT_TRANSACTIONDESC_H
static void CreateDebugString(QString &strHTML, CWallet *wallet, CWalletTx &wtx, int unit)
Provide a human-readable extended HTML description of a transaction.
UI model for a transaction.
static QString toAssetHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit)
A transaction with a bunch of additional info that only the owner cares about.
Definition: wallet.h:285
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:673
static QString FormatTxStatus(const CWalletTx &wtx)
static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit)