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