From 257c3fbea9d995697206e88402bebe450b027d8a Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Thu, 16 Apr 2020 17:26:33 +0200 Subject: register with QMetaType Register std::shared_ptr with QMetaType to allow for queued signal/slot connections across threads. This change is required for the library split where MessageEngine (signal source) will be part of a core library while the clients (slots) will be spread in different library binaries. TaskManager also requires this change, as it is already implemented in terms of a queued signal/slot connection across threads. Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina Change-Id: I0f412e524c7321d35136860ae0d82c022f1c0d3f --- message.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/message.h b/message.h index 38936f3..acbbefd 100644 --- a/message.h +++ b/message.h @@ -17,6 +17,7 @@ #ifndef MESSAGE_H #define MESSAGE_H +#include #include #include #include @@ -65,5 +66,6 @@ class Message bool m_init; QJsonDocument m_jdoc; }; +Q_DECLARE_METATYPE(std::shared_ptr) #endif // MESSAGE_H -- cgit 1.2.3-korg