mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-04 04:02:23 +02:00
Rename `interface` to `interfaces` Build failure reported by Chun Kuan Lee <ken2812221@gmail.com> https://github.com/bitcoin/bitcoin/pull/10244#issuecomment-379434756 -BEGIN VERIFY SCRIPT- git mv src/interface src/interfaces ren() { git grep -l "$1" | xargs sed -i "s,$1,$2,g"; } ren interface/ interfaces/ ren interface:: interfaces:: ren BITCOIN_INTERFACE_ BITCOIN_INTERFACES_ ren "namespace interface" "namespace interfaces" -END VERIFY SCRIPT-
36 lines
921 B
C++
36 lines
921 B
C++
// Copyright (c) 2011-2014 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_QT_TRANSACTIONDESC_H
|
|
#define BITCOIN_QT_TRANSACTIONDESC_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
class TransactionRecord;
|
|
|
|
namespace interfaces {
|
|
class Node;
|
|
class Wallet;
|
|
struct WalletTx;
|
|
struct WalletTxStatus;
|
|
}
|
|
|
|
/** Provide a human-readable extended HTML description of a transaction.
|
|
*/
|
|
class TransactionDesc: public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static QString toHTML(interfaces::Node& node, interfaces::Wallet& wallet, TransactionRecord *rec, int unit);
|
|
|
|
private:
|
|
TransactionDesc() {}
|
|
|
|
static QString FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks, int64_t adjustedTime);
|
|
};
|
|
|
|
#endif // BITCOIN_QT_TRANSACTIONDESC_H
|