2013-11-04 16:20:43 +01: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.
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#ifndef BITCOIN_QT_TRANSACTIONDESC_H
|
|
|
|
#define BITCOIN_QT_TRANSACTIONDESC_H
|
2011-06-10 15:05:51 +02:00
|
|
|
|
2011-08-08 17:38:17 +02:00
|
|
|
#include <QObject>
|
2013-04-13 07:13:08 +02:00
|
|
|
#include <QString>
|
2011-06-10 15:05:51 +02:00
|
|
|
|
2014-05-28 01:38:40 +02:00
|
|
|
class TransactionRecord;
|
2014-06-03 14:42:20 +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:
|
2014-05-28 01:38:40 +02:00
|
|
|
static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, 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
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_TRANSACTIONDESC_H
|