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.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/events/callcandidatesevent.h b/lib/events/callcandidatesevent.h
index 4618832c..1c12b800 100644
--- a/lib/events/callcandidatesevent.h
+++ b/lib/events/callcandidatesevent.h
@@ -13,7 +13,7 @@
*
* 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
@@ -22,27 +22,27 @@
namespace QMatrixClient
{
- class CallCandidatesEvent: public CallEventBase
- {
- public:
- DEFINE_EVENT_TYPEID("m.call.candidates", CallCandidatesEvent)
+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)
+DEFINE_EVENTTYPE_ALIAS(CallCandidates, CallCandidatesEvent)
+} // namespace QMatrixClient