2013-11-04 12:20:43 -03:00
|
|
|
// Copyright (c) 2011-2013 The Bitcoin developers
|
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2011-06-10 09:05:51 -04:00
|
|
|
#ifndef TRANSACTIONDESC_H
|
|
|
|
#define TRANSACTIONDESC_H
|
|
|
|
|
2011-08-08 11:38:17 -04:00
|
|
|
#include <QObject>
|
2013-04-13 02:13:08 -03:00
|
|
|
#include <QString>
|
2011-06-10 09:05:51 -04:00
|
|
|
|
2014-05-27 19:38:40 -04:00
|
|
|
class TransactionRecord;
|
2014-06-03 08:42:20 -04:00
|
|
|
|
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
|
2013-01-23 17:51:02 -03:00
|
|
|
|
2011-06-10 09:05:51 -04:00
|
|
|
public:
|
2014-05-27 19:38:40 -04:00
|
|
|
static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit);
|
2013-01-23 17:51:02 -03:00
|
|
|
|
2011-08-08 11:38:17 -04:00
|
|
|
private:
|
|
|
|
TransactionDesc() {}
|
|
|
|
|
|
|
|
static QString FormatTxStatus(const CWalletTx& wtx);
|
2011-06-10 09:05:51 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRANSACTIONDESC_H
|