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
|
|
|
|
2011-06-26 19:23:24 +02:00
|
|
|
class CWallet;
|
2011-06-10 15:05:51 +02:00
|
|
|
class CWalletTx;
|
|
|
|
|
2011-11-13 13:19:52 +01:00
|
|
|
/** Provide a human-readable extended HTML description of a transaction.
|
|
|
|
*/
|
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
|
2013-01-23 21:51:02 +01:00
|
|
|
|
2011-06-10 15:05:51 +02:00
|
|
|
public:
|
2013-09-05 12:23:08 +02:00
|
|
|
static QString toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int unit);
|
2013-01-23 21:51:02 +01:00
|
|
|
|
2011-08-08 17:38:17 +02:00
|
|
|
private:
|
|
|
|
TransactionDesc() {}
|
|
|
|
|
|
|
|
static QString FormatTxStatus(const CWalletTx& wtx);
|
2011-06-10 15:05:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRANSACTIONDESC_H
|