aboutsummaryrefslogtreecommitdiff
path: root/lib/identity/definitions/sid.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/identity/definitions/sid.h')
-rw-r--r--lib/identity/definitions/sid.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/lib/identity/definitions/sid.h b/lib/identity/definitions/sid.h
index ac8c4130..0f7ce58a 100644
--- a/lib/identity/definitions/sid.h
+++ b/lib/identity/definitions/sid.h
@@ -6,23 +6,25 @@
#include "converters.h"
+namespace Quotient
+{
+
+// Data structures
-namespace QMatrixClient
+struct Sid
{
- // Data structures
+ /// The session ID. Session IDs are opaque strings generated by the
+ /// identityserver. They must consist entirely of the
+ /// characters``[0-9a-zA-Z.=_-]``. Their length must not exceed 255
+ /// characters and theymust not be empty.
+ QString sid;
+};
- struct Sid
- {
- /// The session ID. Session IDs are opaque strings generated by the identity
- /// server. They must consist entirely of the characters
- /// ``[0-9a-zA-Z.=_-]``. Their length must not exceed 255 characters and they
- /// must not be empty.
- QString sid;
- };
- template <> struct JsonObjectConverter<Sid>
- {
- static void dumpTo(QJsonObject& jo, const Sid& pod);
- static void fillFrom(const QJsonObject& jo, Sid& pod);
- };
+template <>
+struct JsonObjectConverter<Sid>
+{
+ static void dumpTo(QJsonObject& jo, const Sid& pod);
+ static void fillFrom(const QJsonObject& jo, Sid& pod);
+};
-} // namespace QMatrixClient
+} // namespace Quotient