aboutsummaryrefslogtreecommitdiff
path: root/lib/events/callanswerevent.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-02-11 22:21:25 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-08 17:43:58 +0200
commitc42d268db0b40cdba06381fc64a6966a72c90709 (patch)
treecf61bf560deb441d032fe161088efd798a338e26 /lib/events/callanswerevent.h
parent4b35dfd8af196ff9e8669499ea3ed7e4127f5901 (diff)
downloadlibquotient-c42d268db0b40cdba06381fc64a6966a72c90709.tar.gz
libquotient-c42d268db0b40cdba06381fc64a6966a72c90709.zip
QUO_CONTENT_GETTER
To streamline adding of simple getters of content parts.
Diffstat (limited to 'lib/events/callanswerevent.h')
-rw-r--r--lib/events/callanswerevent.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/events/callanswerevent.h b/lib/events/callanswerevent.h
index 8ffe60f2..70292a7a 100644
--- a/lib/events/callanswerevent.h
+++ b/lib/events/callanswerevent.h
@@ -17,10 +17,8 @@ public:
const QString& sdp);
explicit CallAnswerEvent(const QString& callId, const QString& sdp);
- int lifetime() const
- {
- return contentPart<int>("lifetime"_ls);
- } // FIXME: Omittable<>?
+ QUO_CONTENT_GETTER(int, lifetime) // FIXME: Omittable<>?
+
QString sdp() const
{
return contentPart<QJsonObject>("answer"_ls).value("sdp"_ls).toString();