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