QtPdCom  1.0.0
MessageManager.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2022 Florian Pose <fp@igh.de>
4  *
5  * This file is part of the QtPdCom library.
6  *
7  * The QtPdCom library is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or (at your
10  * option) any later version.
11  *
12  * The QtPdCom library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15  * License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with the QtPdCom Library. If not, see <http://www.gnu.org/licenses/>.
19  *
20  ****************************************************************************/
21 
22 #ifndef QTPDCOM_MESSAGE_MANAGER_H
23 #define QTPDCOM_MESSAGE_MANAGER_H
24 
25 #include <pdcom5/MessageManagerBase.h>
26 
27 #include <QObject>
28 
29 /****************************************************************************/
30 
31 namespace PdCom {
32  class Process;
33 }
34 
35 namespace QtPdCom {
36 
38  public QObject,
39  public PdCom::MessageManagerBase
40 {
41  Q_OBJECT
42 
43  public:
45  virtual ~MessageManager();
46 
47  void reset();
48 
49  using PdCom::MessageManagerBase::getMessage;
50  using PdCom::MessageManagerBase::activeMessages;
51 
52  signals:
53  void processMessageSignal(PdCom::Message message);
54  void getMessageReplySignal(PdCom::Message message);
55  void activeMessagesReplySignal(std::vector<PdCom::Message>);
56  void processResetSignal();
57 
58  private:
59  void processMessage(PdCom::Message message) override;
60  void getMessageReply(PdCom::Message message) override;
61  void activeMessagesReply(std::vector<PdCom::Message> messageList) override;
62 };
63 
64 }
65 
66 #endif
67 
68 /****************************************************************************/
void getMessageReply(PdCom::Message message) override
Definition: MessageManager.cpp:57
Definition: Message.h:31
void activeMessagesReply(std::vector< PdCom::Message > messageList) override
Definition: MessageManager.cpp:64
void getMessageReplySignal(PdCom::Message message)
void activeMessagesReplySignal(std::vector< PdCom::Message >)
Definition: MessageManager.h:37
virtual ~MessageManager()
Definition: MessageManager.cpp:36
void processMessage(PdCom::Message message) override
Definition: MessageManager.cpp:50
Definition: MessageManager.h:31
MessageManager()
Definition: MessageManager.cpp:30
void processMessageSignal(PdCom::Message message)
void reset()
Definition: MessageManager.cpp:43