2014-01-05 12:03:23 -08:00
|
|
|
// Copyright (c) 2011-2014 The Bitcoin Core developers
|
2014-12-12 20:09:33 -08:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2013-11-04 07:20:43 -08:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-11-03 07:16:40 -08:00
|
|
|
#ifndef BITCOIN_QT_TRANSACTIONDESC_H
|
|
|
|
#define BITCOIN_QT_TRANSACTIONDESC_H
|
2011-06-10 06:05:51 -07:00
|
|
|
|
2011-08-08 08:38:17 -07:00
|
|
|
#include <QObject>
|
2013-04-12 22:13:08 -07:00
|
|
|
#include <QString>
|
2011-06-10 06:05:51 -07:00
|
|
|
|
2014-05-27 16:38:40 -07:00
|
|
|
class TransactionRecord;
|
2014-06-03 05:42:20 -07:00
|
|
|
|
2011-06-26 10:23:24 -07:00
|
|
|
class CWallet;
|
2011-06-10 06:05:51 -07:00
|
|
|
class CWalletTx;
|
|
|
|
|
2011-11-13 04:19:52 -08:00
|
|
|
/** Provide a human-readable extended HTML description of a transaction.
|
|
|
|
*/
|
2011-08-08 08:38:17 -07:00
|
|
|
class TransactionDesc: public QObject
|
2011-06-10 06:05:51 -07:00
|
|
|
{
|
2011-09-19 03:40:23 -07:00
|
|
|
Q_OBJECT
|
2013-01-23 12:51:02 -08:00
|
|
|
|
2011-06-10 06:05:51 -07:00
|
|
|
public:
|
2014-05-27 16:38:40 -07:00
|
|
|
static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit);
|
2013-01-23 12:51:02 -08:00
|
|
|
|
2011-08-08 08:38:17 -07:00
|
|
|
private:
|
|
|
|
TransactionDesc() {}
|
|
|
|
|
|
|
|
static QString FormatTxStatus(const CWalletTx& wtx);
|
2011-06-10 06:05:51 -07:00
|
|
|
};
|
|
|
|
|
2014-11-03 07:16:40 -08:00
|
|
|
#endif // BITCOIN_QT_TRANSACTIONDESC_H
|