2014-01-05 21:03:23 +01:00
|
|
|
// Copyright (c) 2011-2014 The Bitcoin Core developers
|
2014-12-13 05:09:33 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2013-11-04 16:20:43 +01:00
|
|
|
// 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
|
|
|
|
2018-04-07 09:42:02 +02:00
|
|
|
namespace interfaces {
|
2017-04-18 22:42:30 +02:00
|
|
|
class Node;
|
|
|
|
class Wallet;
|
|
|
|
struct WalletTx;
|
|
|
|
struct WalletTxStatus;
|
|
|
|
}
|
2011-06-10 15:05:51 +02:00
|
|
|
|
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:
|
2018-04-07 09:42:02 +02:00
|
|
|
static QString toHTML(interfaces::Node& node, interfaces::Wallet& wallet, TransactionRecord *rec, int unit);
|
2013-01-23 21:51:02 +01:00
|
|
|
|
2011-08-08 17:38:17 +02:00
|
|
|
private:
|
|
|
|
TransactionDesc() {}
|
|
|
|
|
2018-04-07 09:42:02 +02:00
|
|
|
static QString FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks, int64_t adjustedTime);
|
2011-06-10 15:05:51 +02:00
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_TRANSACTIONDESC_H
|