aboutsummaryrefslogtreecommitdiff
path: root/lib/events/callcandidatesevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/callcandidatesevent.h')
-rw-r--r--lib/events/callcandidatesevent.h43
1 files changed, 20 insertions, 23 deletions
diff --git a/lib/events/callcandidatesevent.h b/lib/events/callcandidatesevent.h
index 4618832c..e224f048 100644
--- a/lib/events/callcandidatesevent.h
+++ b/lib/events/callcandidatesevent.h
@@ -13,36 +13,33 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#include "roomevent.h"
-namespace QMatrixClient
-{
- class CallCandidatesEvent: public CallEventBase
- {
- public:
- DEFINE_EVENT_TYPEID("m.call.candidates", CallCandidatesEvent)
+namespace Quotient {
+class CallCandidatesEvent : public CallEventBase {
+public:
+ DEFINE_EVENT_TYPEID("m.call.candidates", CallCandidatesEvent)
- explicit CallCandidatesEvent(const QJsonObject& obj)
- : CallEventBase(typeId(), obj)
- { }
+ explicit CallCandidatesEvent(const QJsonObject& obj)
+ : CallEventBase(typeId(), obj)
+ {}
- explicit CallCandidatesEvent(const QString& callId,
- const QJsonArray& candidates)
- : CallEventBase(typeId(), matrixTypeId(), callId, 0,
- {{ QStringLiteral("candidates"), candidates }})
- { }
+ explicit CallCandidatesEvent(const QString& callId,
+ const QJsonArray& candidates)
+ : CallEventBase(typeId(), matrixTypeId(), callId, 0,
+ { { QStringLiteral("candidates"), candidates } })
+ {}
- QJsonArray candidates() const
- {
- return content<QJsonArray>("candidates"_ls);
- }
- };
+ QJsonArray candidates() const
+ {
+ return content<QJsonArray>("candidates"_ls);
+ }
+};
- REGISTER_EVENT_TYPE(CallCandidatesEvent)
- DEFINE_EVENTTYPE_ALIAS(CallCandidates, CallCandidatesEvent)
-}
+REGISTER_EVENT_TYPE(CallCandidatesEvent)
+} // namespace Quotient