From e57b4f75b55c2befad4f9944f43c8aa2310321b7 Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Thu, 9 Apr 2020 16:39:32 +0200 Subject: add missing overrides in ResponseMessage The original message hierarchy rework patch is missing functionality which results in received replies being discarded. Basically, ResponseMessage class is missing the override required to match replies to the original calls. Bug-AGL: SPEC-3112 Fixes: 0ed292d3ccf9 (rework Message hierarchy) Signed-off-by: Raquel Medina Change-Id: I39030ef212b2175a590deca02f9f9ff41bf7abf4 --- responsemessage.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'responsemessage.h') diff --git a/responsemessage.h b/responsemessage.h index edad3b1..bac4296 100644 --- a/responsemessage.h +++ b/responsemessage.h @@ -60,6 +60,11 @@ class ResponseMessage : public Message return m_reply_data; } + bool getCallId(unsigned int *id) const override + { + *id = m_reply_callid; + return true; + } bool isEvent() override { return false; @@ -70,7 +75,7 @@ class ResponseMessage : public Message return true; } - bool setAdditionalData(QByteArray data); + bool setAdditionalData(QByteArray data) override; bool copyCallId(unsigned int *id); QByteArray serialize(QJsonDocument::JsonFormat format = QJsonDocument::Compact) override; -- cgit 1.2.3-korg