diff options
author | Raquel Medina <raquel.medina@konsulko.com> | 2020-05-26 01:41:35 +0200 |
---|---|---|
committer | Raquel Medina <raquel.medina@konsulko.com> | 2020-05-28 11:51:52 +0200 |
commit | cb62d2ee423ce7e10f4b6dd0127491e60f4cec83 (patch) | |
tree | abaf368c1ac9c6972e10c9499fc935fd9cb04a1c /callmessage.h | |
parent | 3bd1bb068819f29b480812bc7db61a87006103e1 (diff) |
block direct *Message objects creation
Make constructors private for the *Message objects
to ensure they are only created via factory.
Bug-AGL: SPEC-3112
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: I385775e7cc113aea792bfab4b7372e7b51c19f81
Diffstat (limited to 'callmessage.h')
-rw-r--r-- | callmessage.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/callmessage.h b/callmessage.h index 41098bc..d08024e 100644 --- a/callmessage.h +++ b/callmessage.h @@ -23,8 +23,6 @@ class CallMessage : public Message { public: - CallMessage() = default; - bool createRequest(QString api, QString verb, QJsonValue parameter = "None"); bool isEvent() override @@ -46,6 +44,9 @@ class CallMessage : public Message private: QMap<QString, QVariant> m_request; + + CallMessage() = default; + friend class MessageFactory; }; #endif // CALLMESSAGE_H |