summaryrefslogtreecommitdiffstats
path: root/eventmessage.h
diff options
context:
space:
mode:
Diffstat (limited to 'eventmessage.h')
-rw-r--r--eventmessage.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/eventmessage.h b/eventmessage.h
index 41bf7b6..133574c 100644
--- a/eventmessage.h
+++ b/eventmessage.h
@@ -23,9 +23,7 @@
class EventMessage : public Message
{
public:
- explicit EventMessage(QJsonDocument data);
-
- inline QString eventApi() const
+ inline QString eventApi() const
{
return m_event_api;
}
@@ -55,6 +53,9 @@ class EventMessage : public Message
private:
QString m_event_api, m_event_name;
QJsonObject m_event_data;
+
+ explicit EventMessage(QJsonDocument data);
+ friend class MessageFactory;
};
#endif // EVENTMESSAGE_H