You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

transactiondesc.h 736B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2011-2014 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef STARWELS_QT_TRANSACTIONDESC_H
  5. #define STARWELS_QT_TRANSACTIONDESC_H
  6. #include <QObject>
  7. #include <QString>
  8. class TransactionRecord;
  9. class CWallet;
  10. class CWalletTx;
  11. /** Provide a human-readable extended HTML description of a transaction.
  12. */
  13. class TransactionDesc: public QObject
  14. {
  15. Q_OBJECT
  16. public:
  17. static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit);
  18. private:
  19. TransactionDesc() {}
  20. static QString FormatTxStatus(const CWalletTx& wtx);
  21. };
  22. #endif // STARWELS_QT_TRANSACTIONDESC_H