File indexing completed on 2024-05-12 16:44:08

0001 /*
0002     SPDX-FileCopyrightText: 2008-2018 Thomas Baumgart <tbaumgart@kde.org>
0003     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef STDTRANSACTIONDOWNLOADED_H
0008 #define STDTRANSACTIONDOWNLOADED_H
0009 
0010 // ----------------------------------------------------------------------------
0011 // QT Includes
0012 
0013 // ----------------------------------------------------------------------------
0014 // KDE Includes
0015 
0016 // ----------------------------------------------------------------------------
0017 // Project Includes
0018 
0019 #include "stdtransaction.h"
0020 #include "investtransaction.h"
0021 
0022 namespace KMyMoneyRegister
0023 {
0024 
0025 class StdTransactionDownloaded : public StdTransaction
0026 {
0027 public:
0028     explicit StdTransactionDownloaded(Register* getParent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId);
0029     ~StdTransactionDownloaded() override;
0030 
0031     const char* className() override;
0032 
0033     bool paintRegisterCellSetup(QPainter *painter, QStyleOptionViewItem &option, const QModelIndex &index) override;
0034 };
0035 
0036 class InvestTransactionDownloaded : public InvestTransaction
0037 {
0038 public:
0039     explicit InvestTransactionDownloaded(Register* getParent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId);
0040     ~InvestTransactionDownloaded() override;
0041 
0042     const char* className() override;
0043 
0044     bool paintRegisterCellSetup(QPainter *painter, QStyleOptionViewItem &option, const QModelIndex &index) override;
0045 };
0046 
0047 
0048 } // namespace
0049 
0050 #endif