]>
Commit | Line | Data |
---|---|---|
f914f1a7 | 1 | // Copyright (c) 2011-2013 The Bitcoin Core developers |
78253fcb | 2 | // Distributed under the MIT software license, see the accompanying |
e592d43f WL |
3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. |
4 | ||
84738627 PJ |
5 | #ifndef BITCOIN_QT_TRANSACTIONDESC_H |
6 | #define BITCOIN_QT_TRANSACTIONDESC_H | |
66d536ed | 7 | |
b0849613 | 8 | #include <QObject> |
51ed9ec9 | 9 | #include <QString> |
66d536ed | 10 | |
b90711ca | 11 | class TransactionRecord; |
bbe1925c | 12 | |
e8ef3da7 | 13 | class CWallet; |
66d536ed WL |
14 | class CWalletTx; |
15 | ||
af836ad5 WL |
16 | /** Provide a human-readable extended HTML description of a transaction. |
17 | */ | |
b0849613 | 18 | class TransactionDesc: public QObject |
66d536ed | 19 | { |
9b490f71 | 20 | Q_OBJECT |
32af5266 | 21 | |
66d536ed | 22 | public: |
b90711ca | 23 | static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit); |
32af5266 | 24 | |
b0849613 WL |
25 | private: |
26 | TransactionDesc() {} | |
27 | ||
b0849613 | 28 | static QString FormatTxStatus(const CWalletTx& wtx); |
66d536ed WL |
29 | }; |
30 | ||
84738627 | 31 | #endif // BITCOIN_QT_TRANSACTIONDESC_H |