1 #ifndef QTUM_QT_TOKENTRANSACTIONDESC_H 2 #define QTUM_QT_TOKENTRANSACTIONDESC_H 3 4 #include <QObject> 5 #include <QString> 6 7 class TokenTransactionRecord; 8 9 namespace interfaces { 10 class Wallet; 11 struct TokenTx; 12 } 13 14 /** Provide a human-readable extended HTML description of a token transaction. 15 */ 16 class TokenTransactionDesc: public QObject 17 { 18 Q_OBJECT 19 20 public: 21 static QString toHTML(interfaces::Wallet& wallet, interfaces::TokenTx& wtx, TokenTransactionRecord *rec); 22 23 private: TokenTransactionDesc()24 TokenTransactionDesc() {} 25 26 static QString FormatTxStatus(interfaces::Wallet& wallet, const interfaces::TokenTx& wtx); 27 }; 28 29 #endif // QTUM_QT_TOKENTRANSACTIONDESC_H 30