X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Ftransactiondesc.h;h=484bb1230ef3ca7ec3557a7d241be555c6db144b;hb=9b490f71b00227ceb9a32bb0b44a37f489a167a0;hp=5a85949341f213c56f7c688119fbb0b2316b0adf;hpb=ba4081c1fcaddf361abd61b2721994eff5475bb3;p=novacoin.git diff --git a/src/qt/transactiondesc.h b/src/qt/transactiondesc.h index 5a85949..484bb12 100644 --- a/src/qt/transactiondesc.h +++ b/src/qt/transactiondesc.h @@ -1,15 +1,25 @@ #ifndef TRANSACTIONDESC_H #define TRANSACTIONDESC_H +#include +#include #include +class CWallet; class CWalletTx; -class TransactionDesc +class TransactionDesc: public QObject { + Q_OBJECT public: - /* Provide human-readable extended HTML description of a transaction */ - static std::string toHTML(CWalletTx &wtx); + // Provide human-readable extended HTML description of a transaction + static QString toHTML(CWallet *wallet, CWalletTx &wtx); +private: + TransactionDesc() {} + + static QString HtmlEscape(const QString& str, bool fMultiLine=false); + static QString HtmlEscape(const std::string &str, bool fMultiLine=false); + static QString FormatTxStatus(const CWalletTx& wtx); }; #endif // TRANSACTIONDESC_H