22 #ifndef QTPDCOM_MESSAGE_MANAGER_H 23 #define QTPDCOM_MESSAGE_MANAGER_H 25 #include <pdcom5/MessageManagerBase.h> 30 #include <QFutureInterface> 31 #include <QFutureWatcher> 54 using QFutureWatcher<PdCom::Message>::QFutureWatcher;
63 using QFutureWatcher<std::vector<PdCom::Message>>::QFutureWatcher;
68 public PdCom::MessageManagerBase
81 template <
class Object,
typename Callback>
84 createWatcher<std::vector<PdCom::Message>>(obj, callback)
88 template <
class Object,
typename Callback>
89 void getMessage(uint32_t seqNo, Object *obj, Callback &&callback)
91 createWatcher<PdCom::Message>(obj, callback)
Definition: MessageManager.h:48
void processResetSignal()
QFutureInterface< PdCom::Message > MessageFutureInterface
Definition: MessageManager.h:43
QFuture< std::vector< PdCom::Message > > MessageListFuture
Definition: MessageManager.h:44
void getMessageReply(PdCom::Message message) override
Definition: MessageManager.cpp:72
Definition: BroadcastModel.h:32
QFuture< PdCom::Message > MessageFuture
Definition: MessageManager.h:42
QFutureInterface< std::vector< PdCom::Message > > MessageListFutureInterface
Definition: MessageManager.h:45
MessageListFuture activeMessagesQt()
Definition: MessageManager.cpp:86
void activeMessagesReply(std::vector< PdCom::Message > messageList) override
Definition: MessageManager.cpp:97
void activeMessages(Object *obj, Callback &&callback)
Definition: MessageManager.h:82
MessageFuture getMessageQt(uint32_t seqNo)
Definition: MessageManager.cpp:61
void getMessage(uint32_t seqNo, Object *obj, Callback &&callback)
Definition: MessageManager.h:89
QQueue< MessageFutureInterface > getMessageQueue
Definition: MessageManager.h:105
QQueue< MessageListFutureInterface > activeMessageQueue
Definition: MessageManager.h:106
Definition: MessageManager.h:66
virtual ~MessageManager()
Definition: MessageManager.cpp:36
void processMessage(PdCom::Message message) override
Definition: MessageManager.cpp:54
Definition: MessageManager.h:57
Definition: MessageManager.h:36
MessageManager()
Definition: MessageManager.cpp:30
void processMessageSignal(PdCom::Message message)
void reset()
Definition: MessageManager.cpp:43