diff --git a/include/events/AliasesEventContent.h b/include/events/AliasesEventContent.h
index 03218715..44224fd9 100644
--- a/include/events/AliasesEventContent.h
+++ b/include/events/AliasesEventContent.h
@@ -23,6 +23,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
class AliasesEventContent : public Deserializable
{
public:
@@ -38,5 +42,7 @@ inline QList<QString> AliasesEventContent::aliases() const
{
return aliases_;
}
+} // namespace events
+} // namespace matrix
#endif // ALIASES_EVENT_CONTENT_H
diff --git a/include/events/AvatarEventContent.h b/include/events/AvatarEventContent.h
index c77cb6d6..adf85b1f 100644
--- a/include/events/AvatarEventContent.h
+++ b/include/events/AvatarEventContent.h
@@ -23,6 +23,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
/*
* A picture that is associated with the room.
*/
@@ -42,5 +46,7 @@ inline QUrl AvatarEventContent::url() const
{
return url_;
}
+} // namespace events
+} // namespace matrix
#endif // AVATAR_EVENT_CONTENT_H
diff --git a/include/events/CanonicalAliasEventContent.h b/include/events/CanonicalAliasEventContent.h
index 3c031b8e..bcaf514b 100644
--- a/include/events/CanonicalAliasEventContent.h
+++ b/include/events/CanonicalAliasEventContent.h
@@ -24,6 +24,10 @@
#include "CanonicalAliasEventContent.h"
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
/*
* This event is used to inform the room about which alias should be considered
* the canonical one. This could be for display purposes or as suggestion to
@@ -45,5 +49,7 @@ inline QString CanonicalAliasEventContent::alias() const
{
return alias_;
}
+} // namespace events
+} // namespace matrix
#endif // CANONICAL_ALIAS_EVENT_CONTENT_H
diff --git a/include/events/CreateEventContent.h b/include/events/CreateEventContent.h
index ed1a8ce7..d48b8769 100644
--- a/include/events/CreateEventContent.h
+++ b/include/events/CreateEventContent.h
@@ -22,6 +22,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
/*
* This is the first event in a room and cannot be changed. It acts as the root of all other events.
*/
@@ -42,5 +46,7 @@ inline QString CreateEventContent::creator() const
{
return creator_;
}
+} // namespace events
+} // namespace matrix
#endif // CREATE_EVENT_CONTENT_H
diff --git a/include/events/Event.h b/include/events/Event.h
index 25b340bb..2621eadb 100644
--- a/include/events/Event.h
+++ b/include/events/Event.h
@@ -22,6 +22,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
enum EventType {
/// m.room.aliases
RoomAliases,
@@ -85,5 +89,7 @@ void Event<Content>::deserialize(const QJsonValue &data)
content_.deserialize(object.value("content"));
}
+} // namespace events
+} // namespace matrix
#endif // MATRIX_EVENT_H
diff --git a/include/events/HistoryVisibilityEventContent.h b/include/events/HistoryVisibilityEventContent.h
index ac7316f4..84738480 100644
--- a/include/events/HistoryVisibilityEventContent.h
+++ b/include/events/HistoryVisibilityEventContent.h
@@ -22,6 +22,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
enum HistoryVisibility {
Invited,
Joined,
@@ -44,5 +48,7 @@ inline HistoryVisibility HistoryVisibilityEventContent::historyVisibility() cons
{
return history_visibility_;
}
+} // namespace events
+} // namespace matrix
#endif // HISTORY_VISIBILITY_EVENT_CONTENT_H
diff --git a/include/events/JoinRulesEventContent.h b/include/events/JoinRulesEventContent.h
index 8b647fb4..ff03a26e 100644
--- a/include/events/JoinRulesEventContent.h
+++ b/include/events/JoinRulesEventContent.h
@@ -22,6 +22,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
enum JoinRule {
// A user who wishes to join the room must first receive
// an invite to the room from someone already inside of the room.
@@ -56,5 +60,7 @@ inline JoinRule JoinRulesEventContent::joinRule() const
{
return join_rule_;
}
+} // namespace events
+} // namespace matrix
#endif // JOIN_RULES_EVENT_CONTENT_H
diff --git a/include/events/MemberEventContent.h b/include/events/MemberEventContent.h
index 046dda0f..39ff0db1 100644
--- a/include/events/MemberEventContent.h
+++ b/include/events/MemberEventContent.h
@@ -23,6 +23,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
enum Membership {
// The user is banned.
BanState,
@@ -73,5 +77,7 @@ inline Membership MemberEventContent::membershipState() const
{
return membership_state_;
}
+} // namespace events
+} // namespace matrix
#endif // MEMBER_EVENT_CONTENT_H
diff --git a/include/events/NameEventContent.h b/include/events/NameEventContent.h
index d6f60e2d..970edab8 100644
--- a/include/events/NameEventContent.h
+++ b/include/events/NameEventContent.h
@@ -22,6 +22,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
/*
* A human-friendly room name designed to be displayed to the end-user.
*/
@@ -41,5 +45,7 @@ inline QString NameEventContent::name() const
{
return name_;
}
+} // namespace events
+} // namespace matrix
#endif // NAME_EVENT_CONTENT_H
diff --git a/include/events/PowerLevelsEventContent.h b/include/events/PowerLevelsEventContent.h
index c2a3f1fa..c51755d8 100644
--- a/include/events/PowerLevelsEventContent.h
+++ b/include/events/PowerLevelsEventContent.h
@@ -23,6 +23,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
enum PowerLevels {
User = 0,
Moderator = 50,
@@ -98,5 +102,7 @@ inline int PowerLevelsEventContent::usersDefaultLevel() const
{
return users_default_;
}
+} // namespace events
+} // namespace matrix
#endif // POWER_LEVELS_EVENT_CONTENT_H
diff --git a/include/events/RoomEvent.h b/include/events/RoomEvent.h
index 7d9b99a3..d8fa6e0e 100644
--- a/include/events/RoomEvent.h
+++ b/include/events/RoomEvent.h
@@ -23,6 +23,10 @@
#include "Event.h"
+namespace matrix
+{
+namespace events
+{
template <class Content>
class RoomEvent : public Event<Content>
{
@@ -90,5 +94,7 @@ void RoomEvent<Content>::deserialize(const QJsonValue &data)
sender_ = object.value("sender").toString();
origin_server_ts_ = object.value("origin_server_ts").toDouble();
}
+} // namespace events
+} // namespace matrix
#endif // MATRIX_ROOM_EVENT_H
diff --git a/include/events/StateEvent.h b/include/events/StateEvent.h
index d82d53c4..35d5fa31 100644
--- a/include/events/StateEvent.h
+++ b/include/events/StateEvent.h
@@ -22,6 +22,10 @@
#include "RoomEvent.h"
+namespace matrix
+{
+namespace events
+{
template <class Content>
class StateEvent : public RoomEvent<Content>
{
@@ -63,5 +67,7 @@ void StateEvent<Content>::deserialize(const QJsonValue &data)
if (object.contains("prev_content"))
prev_content_.deserialize(object.value("prev_content"));
}
+} // namespace events
+} // namespace matrix
#endif // MATRIX_STATE_EVENT_H
diff --git a/include/events/TopicEventContent.h b/include/events/TopicEventContent.h
index fd12de98..e3062d0c 100644
--- a/include/events/TopicEventContent.h
+++ b/include/events/TopicEventContent.h
@@ -22,6 +22,10 @@
#include "Deserializable.h"
+namespace matrix
+{
+namespace events
+{
/*
* A topic is a short message detailing what is currently being discussed in the room.
*/
@@ -41,5 +45,7 @@ inline QString TopicEventContent::topic() const
{
return topic_;
}
+} // namespace events
+} // namespace matrix
#endif // TOPIC_EVENT_CONTENT_H
|