aboutsummaryrefslogtreecommitdiff
path: root/lib/events/callcandidatesevent.h
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-10 23:26:57 +0100
committerCarl Schwan <carl@carlschwan.eu>2021-01-21 19:21:44 +0100
commit17e62b85cae99d8485be44f90f0622e4ba843fa0 (patch)
tree7a735b87b7570e84669de48482c1ec30a728dbbf /lib/events/callcandidatesevent.h
parent9fb2970eadf810f7ae38389b333b543c22fb8be7 (diff)
downloadlibquotient-17e62b85cae99d8485be44f90f0622e4ba843fa0.tar.gz
libquotient-17e62b85cae99d8485be44f90f0622e4ba843fa0.zip
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)