File indexing completed on 2024-05-12 16:42:43

0001 /*
0002     SPDX-FileCopyrightText: 2013-2015 Christian Dávid <christian-david@web.de>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef ONLINEJOB_P_H
0007 #define ONLINEJOB_P_H
0008 
0009 #include "onlinejob.h"
0010 
0011 #include <QDateTime>
0012 #include <QHash>
0013 #include <QMap>
0014 
0015 #include "mymoneyobject_p.h"
0016 #include "onlinejobmessage.h"
0017 #include "mymoneyenums.h"
0018 
0019 namespace eMyMoney {
0020 namespace OnlineJob {
0021 enum class sendingState;
0022 }
0023 }
0024 
0025 class onlineJobPrivate : public MyMoneyObjectPrivate
0026 {
0027 public:
0028     /**
0029      * @brief Date-time the job was sent to the bank
0030      *
0031      * This does not mean an answer was given by the bank
0032      */
0033     QDateTime m_jobSend;
0034 
0035     /**
0036      * @brief Date-time of confirmation/rejection of the bank
0037      *
0038      * which state this timestamp belongs to is stored in m_jobBankAnswerState
0039      */
0040     QDateTime m_jobBankAnswerDate;
0041 
0042     /**
0043      * @brief Answer of the bank
0044      *
0045      * combined with m_jobBankAnswerDate
0046      */
0047     eMyMoney::OnlineJob::sendingState m_jobBankAnswerState;
0048 
0049     /**
0050      * @brief Validation result status
0051      */
0052     QList<onlineJobMessage> m_messageList;
0053 
0054     /**
0055      * @brief Locking state
0056      */
0057     bool m_locked;
0058 };
0059 
0060 #endif