2011-06-10 13:05:51 +00:00
|
|
|
#ifndef TRANSACTIONDESC_H
|
|
|
|
#define TRANSACTIONDESC_H
|
|
|
|
|
2011-08-08 15:38:17 +00:00
|
|
|
#include <QString>
|
|
|
|
#include <QObject>
|
2011-06-10 13:05:51 +00:00
|
|
|
#include <string>
|
|
|
|
|
2011-06-26 17:23:24 +00:00
|
|
|
class CWallet;
|
2011-06-10 13:05:51 +00:00
|
|
|
class CWalletTx;
|
|
|
|
|
2011-08-08 15:38:17 +00:00
|
|
|
class TransactionDesc: public QObject
|
2011-06-10 13:05:51 +00:00
|
|
|
{
|
2011-09-19 10:40:23 +00:00
|
|
|
Q_OBJECT
|
2011-06-10 13:05:51 +00:00
|
|
|
public:
|
2011-08-08 15:38:17 +00:00
|
|
|
// 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);
|
2011-06-10 13:05:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRANSACTIONDESC_H
|