aboutsummaryrefslogtreecommitdiff
path: root/lib/events/callcandidatesevent.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-01-22 16:38:34 +0100
committerGitHub <noreply@github.com>2021-01-22 16:38:34 +0100
commit0e3973cade9348946a3675a242723711b9b75ad1 (patch)
tree243fc6758f175e0e9d2d2a8581b7072400b63566 /lib/events/callcandidatesevent.h
parent9fb2970eadf810f7ae38389b333b543c22fb8be7 (diff)
parent390162a0c707c51590acb27df81e98a85d3b6cf7 (diff)
downloadlibquotient-0e3973cade9348946a3675a242723711b9b75ad1.tar.gz
libquotient-0e3973cade9348946a3675a242723711b9b75ad1.zip
Merge pull request #440 from ognarb/callcandidateupdate
Add more properties to CallCandidateEvent
Diffstat (limited to 'lib/events/callcandidatesevent.h')
-rw-r--r--lib/events/callcandidatesevent.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/events/callcandidatesevent.h b/lib/events/callcandidatesevent.h
index b9de7556..c2ccac3b 100644
--- a/lib/events/callcandidatesevent.h
+++ b/lib/events/callcandidatesevent.h
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2017 Marius Gripsgard <marius@ubports.com>
// SPDX-FileCopyrightText: 2018 Josip Delic <delijati@googlemail.com>
// SPDX-FileCopyrightText: 2018 Kitsune Ral <Kitsune-Ral@users.sf.net>
+// SPDX-FileCopyrightText: 2020 Carl Schwan <carlschwan@kde.org>
// SPDX-License-Identifier: LGPL-2.1-or-later
#pragma once
@@ -26,6 +27,16 @@ public:
{
return content<QJsonArray>("candidates"_ls);
}
+
+ QString callId() const
+ {
+ return content<QString>("call_id");
+ }
+
+ int version() const
+ {
+ return content<int>("version");
+ }
};
REGISTER_EVENT_TYPE(CallCandidatesEvent)