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