diff options
author | Josip Delic <delijati@googlemail.com> | 2018-08-25 21:32:32 +0200 |
---|---|---|
committer | Josip Delic <delijati@googlemail.com> | 2018-08-25 21:32:32 +0200 |
commit | 9357d2bb37029858b397d17e8aa64e57da4202e8 (patch) | |
tree | 165a4f27b9dfbaa1a02dfe34f8df33c20960c340 /lib/events | |
parent | 508d1f5e14f0286bb3feaf74c4f143ce2a950234 (diff) | |
download | libquotient-9357d2bb37029858b397d17e8aa64e57da4202e8.tar.gz libquotient-9357d2bb37029858b397d17e8aa64e57da4202e8.zip |
Set state event
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/callanswerevent.h | 2 | ||||
-rw-r--r-- | lib/events/callcandidatesevent.h | 2 | ||||
-rw-r--r-- | lib/events/callhangupevent.h | 2 | ||||
-rw-r--r-- | lib/events/callinviteevent.h | 2 |
4 files changed, 8 insertions, 0 deletions
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; } |