QtUI code cleanup / comment improvements
[novacoin.git] / src / qt / transactiondesc.h
1 #ifndef TRANSACTIONDESC_H
2 #define TRANSACTIONDESC_H
3
4 #include <QString>
5 #include <QObject>
6 #include <string>
7
8 class CWallet;
9 class CWalletTx;
10
11 class TransactionDesc: public QObject
12 {
13 public:
14     // Provide human-readable extended HTML description of a transaction
15     static QString toHTML(CWallet *wallet, CWalletTx &wtx);
16 private:
17     TransactionDesc() {}
18
19     static QString HtmlEscape(const QString& str, bool fMultiLine=false);
20     static QString HtmlEscape(const std::string &str, bool fMultiLine=false);
21     static QString FormatTxStatus(const CWalletTx& wtx);
22 };
23
24 #endif // TRANSACTIONDESC_H