2011-06-10 09:05:51 -04:00
|
|
|
#ifndef TRANSACTIONDESC_H
|
|
|
|
#define TRANSACTIONDESC_H
|
|
|
|
|
2011-08-08 11:38:17 -04:00
|
|
|
#include <QString>
|
|
|
|
#include <QObject>
|
2011-06-10 09:05:51 -04:00
|
|
|
#include <string>
|
|
|
|
|
2011-06-26 13:23:24 -04:00
|
|
|
class CWallet;
|
2011-06-10 09:05:51 -04:00
|
|
|
class CWalletTx;
|
|
|
|
|
2011-11-13 09:19:52 -03:00
|
|
|
/** Provide a human-readable extended HTML description of a transaction.
|
|
|
|
*/
|
2011-08-08 11:38:17 -04:00
|
|
|
class TransactionDesc: public QObject
|
2011-06-10 09:05:51 -04:00
|
|
|
{
|
2011-09-19 07:40:23 -03:00
|
|
|
Q_OBJECT
|
2011-06-10 09:05:51 -04:00
|
|
|
public:
|
2011-08-08 11:38:17 -04:00
|
|
|
static QString toHTML(CWallet *wallet, CWalletTx &wtx);
|
|
|
|
private:
|
|
|
|
TransactionDesc() {}
|
|
|
|
|
|
|
|
static QString FormatTxStatus(const CWalletTx& wtx);
|
2011-06-10 09:05:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRANSACTIONDESC_H
|