Files
thehub/hub-qt/transactiondesc.h
T

46 lines
1.2 KiB
C++
Raw Permalink Normal View History

2017-11-09 19:34:51 +01:00
/*
* This file is part of the Flowee project
* Copyright (C) 2011-2013 The Bitcoin Core developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2013-11-04 16:20:43 +01:00
2018-01-16 10:47:52 +00:00
#ifndef FLOWEE_QT_TRANSACTIONDESC_H
#define FLOWEE_QT_TRANSACTIONDESC_H
2011-06-10 15:05:51 +02:00
2011-08-08 17:38:17 +02:00
#include <QObject>
2013-04-13 00:13:08 -05:00
#include <QString>
2011-06-10 15:05:51 +02:00
class TransactionRecord;
2011-06-26 19:23:24 +02:00
class CWallet;
2011-06-10 15:05:51 +02:00
class CWalletTx;
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
{
Q_OBJECT
2013-01-23 21:51:02 +01:00
2011-06-10 15:05:51 +02:00
public:
static QString toHTML(CWallet *wallet, CWalletTx &wtx, TransactionRecord *rec, int unit);
2013-01-23 21:51:02 +01:00
2011-08-08 17:38:17 +02:00
private:
TransactionDesc() {}
static QString FormatTxStatus(const CWalletTx& wtx);
2011-06-10 15:05:51 +02:00
};
2018-01-16 10:47:52 +00:00
#endif