Index: sources/canbus/MessageAcknowModel.h =================================================================== diff -u -r7866dbf6119b74e1a4f30a31746ec0fada6d5785 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/canbus/MessageAcknowModel.h (.../MessageAcknowModel.h) (revision 7866dbf6119b74e1a4f30a31746ec0fada6d5785) +++ sources/canbus/MessageAcknowModel.h (.../MessageAcknowModel.h) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,15 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file MessageAcknowModel.h - * \author (last) Behrouz NematiPour - * \date (last) 10-Aug-2020 - * \author (original) Behrouz NematiPour - * \date (original) 17-Jan-2020 + * \file MessageAcknowModel.h + * \author (last) Behrouz NematiPour + * \date (last) 29-Jul-2023 + * \author (original) Behrouz NematiPour + * \date (original) 26-Aug-2020 * */ #pragma once @@ -18,7 +18,7 @@ #include // Project -#include "main.h" // Doxygen : don't remove +#include "main.h" // Doxygen : do not remove #include "MessageGlobals.h" // Define @@ -34,7 +34,7 @@ * \brief The AcknowModel class * \details This is the private class of the MessageAcknowModel * which keeps list of the messages require Acknow. - * but since Qt doesn't support nested meta objects, + * but since Qt does not support nested meta objects, * it has been moved out with a meaningful namespace. */ class AcknowModel : public QObject { // Private Model @@ -53,11 +53,10 @@ explicit AcknowModel(QObject *parent = nullptr) : QObject (parent) { } public: - AcknowModel(Can_Id vCan_Id, Sequence vSequence, const FrameList &vFrameList) : AcknowModel (nullptr) - { - _can_Id = vCan_Id ; - _sequence = vSequence ; - _frameList = vFrameList; + AcknowModel(Can_Id vCan_Id, Sequence vSequence, const FrameList &vFrameList) : AcknowModel (nullptr) { + _can_Id = vCan_Id ; + _sequence = vSequence ; + _frameList = vFrameList ; } void start(); @@ -120,11 +119,12 @@ QThread *_thread = nullptr; bool _init = false; +public: + int count() const { return _acknowList.count(); } + public slots: bool init(); bool init(QThread &vThread); - -private slots: void quit(); private: