From 9357d2bb37029858b397d17e8aa64e57da4202e8 Mon Sep 17 00:00:00 2001 From: Josip Delic Date: Sat, 25 Aug 2018 21:32:32 +0200 Subject: Set state event --- lib/events/callanswerevent.h | 2 ++ lib/events/callcandidatesevent.h | 2 ++ lib/events/callhangupevent.h | 2 ++ lib/events/callinviteevent.h | 2 ++ 4 files changed, 8 insertions(+) (limited to 'lib/events') diff --git a/lib/events/callanswerevent.h b/lib/events/callanswerevent.h index 05a20aac..b5b47899 100644 --- a/lib/events/callanswerevent.h +++ b/lib/events/callanswerevent.h @@ -33,6 +33,8 @@ namespace QMatrixClient const QString& sdp); explicit CallAnswerEvent(const QString& callId, const QString& sdp); + bool isStateEvent() const override { return true; } + const int lifetime() const { return _lifetime; } const QString& sdp() const { return _sdp; } const QString& callId() const { return _callId; } diff --git a/lib/events/callcandidatesevent.h b/lib/events/callcandidatesevent.h index faf3fb7d..8e66499d 100644 --- a/lib/events/callcandidatesevent.h +++ b/lib/events/callcandidatesevent.h @@ -33,6 +33,8 @@ namespace QMatrixClient explicit CallCandidatesEvent(const QString& callId, const QJsonArray& candidates); + bool isStateEvent() const override { return true; } + const QJsonArray& candidates() const { return _candidates; } const QString& callId() const { return _callId; } const int version() const { return _version; } diff --git a/lib/events/callhangupevent.h b/lib/events/callhangupevent.h index c0f120da..57e565a6 100644 --- a/lib/events/callhangupevent.h +++ b/lib/events/callhangupevent.h @@ -31,6 +31,8 @@ namespace QMatrixClient explicit CallHangupEvent(const QString& callId); + bool isStateEvent() const override { return true; } + const QString& callId() const { return _callId; } const int version() const { return _version; } diff --git a/lib/events/callinviteevent.h b/lib/events/callinviteevent.h index 553a8024..029b2e3d 100644 --- a/lib/events/callinviteevent.h +++ b/lib/events/callinviteevent.h @@ -32,6 +32,8 @@ namespace QMatrixClient explicit CallInviteEvent(const QString& callId, const int lifetime, const QString& sdp); + bool isStateEvent() const override { return true; } + const int lifetime() const { return _lifetime; } const QString& sdp() const { return _sdp; } const QString& callId() const { return _callId; } -- cgit v1.2.3