aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-07-07 19:32:34 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-09 10:18:37 +0900
commit27ca32a1e5a56e09b9cc1d94224d2831004dcf3d (patch)
treef2e8d19705a13e39bd9484d13098f323c8d30194
parent7a5b359b8823646ce97cbaf05c251cb04c291466 (diff)
downloadlibquotient-27ca32a1e5a56e09b9cc1d94224d2831004dcf3d.tar.gz
libquotient-27ca32a1e5a56e09b9cc1d94224d2831004dcf3d.zip
Namespace: QMatrixClient -> Quotient (with back comp alias)
-rw-r--r--examples/qmc-example.cpp2
-rw-r--r--lib/application-service/definitions/location.cpp2
-rw-r--r--lib/application-service/definitions/location.h4
-rw-r--r--lib/application-service/definitions/protocol.cpp2
-rw-r--r--lib/application-service/definitions/protocol.h4
-rw-r--r--lib/application-service/definitions/user.cpp2
-rw-r--r--lib/application-service/definitions/user.h4
-rw-r--r--lib/avatar.cpp2
-rw-r--r--lib/avatar.h6
-rw-r--r--lib/connection.cpp6
-rw-r--r--lib/connection.h6
-rw-r--r--lib/connectiondata.cpp2
-rw-r--r--lib/connectiondata.h4
-rw-r--r--lib/converters.cpp2
-rw-r--r--lib/converters.h4
-rw-r--r--lib/csapi/account-data.cpp2
-rw-r--r--lib/csapi/account-data.h4
-rw-r--r--lib/csapi/admin.cpp6
-rw-r--r--lib/csapi/admin.h4
-rw-r--r--lib/csapi/administrative_contact.cpp10
-rw-r--r--lib/csapi/administrative_contact.h4
-rw-r--r--lib/csapi/appservice_room_directory.cpp2
-rw-r--r--lib/csapi/appservice_room_directory.h4
-rw-r--r--lib/csapi/banning.cpp2
-rw-r--r--lib/csapi/banning.h4
-rw-r--r--lib/csapi/capabilities.cpp6
-rw-r--r--lib/csapi/capabilities.h4
-rw-r--r--lib/csapi/content-repo.cpp2
-rw-r--r--lib/csapi/content-repo.h4
-rw-r--r--lib/csapi/create_room.cpp6
-rw-r--r--lib/csapi/create_room.h4
-rw-r--r--lib/csapi/definitions/auth_data.cpp2
-rw-r--r--lib/csapi/definitions/auth_data.h4
-rw-r--r--lib/csapi/definitions/client_device.cpp2
-rw-r--r--lib/csapi/definitions/client_device.h4
-rw-r--r--lib/csapi/definitions/device_keys.cpp2
-rw-r--r--lib/csapi/definitions/device_keys.h4
-rw-r--r--lib/csapi/definitions/event_filter.cpp2
-rw-r--r--lib/csapi/definitions/event_filter.h4
-rw-r--r--lib/csapi/definitions/public_rooms_response.cpp2
-rw-r--r--lib/csapi/definitions/public_rooms_response.h4
-rw-r--r--lib/csapi/definitions/push_condition.cpp2
-rw-r--r--lib/csapi/definitions/push_condition.h4
-rw-r--r--lib/csapi/definitions/push_rule.cpp2
-rw-r--r--lib/csapi/definitions/push_rule.h4
-rw-r--r--lib/csapi/definitions/push_ruleset.cpp2
-rw-r--r--lib/csapi/definitions/push_ruleset.h4
-rw-r--r--lib/csapi/definitions/room_event_filter.cpp2
-rw-r--r--lib/csapi/definitions/room_event_filter.h4
-rw-r--r--lib/csapi/definitions/sync_filter.cpp2
-rw-r--r--lib/csapi/definitions/sync_filter.h4
-rw-r--r--lib/csapi/definitions/user_identifier.cpp2
-rw-r--r--lib/csapi/definitions/user_identifier.h4
-rw-r--r--lib/csapi/definitions/wellknown/full.cpp2
-rw-r--r--lib/csapi/definitions/wellknown/full.h4
-rw-r--r--lib/csapi/definitions/wellknown/homeserver.cpp2
-rw-r--r--lib/csapi/definitions/wellknown/homeserver.h4
-rw-r--r--lib/csapi/definitions/wellknown/identity_server.cpp2
-rw-r--r--lib/csapi/definitions/wellknown/identity_server.h4
-rw-r--r--lib/csapi/device_management.cpp2
-rw-r--r--lib/csapi/device_management.h4
-rw-r--r--lib/csapi/directory.cpp2
-rw-r--r--lib/csapi/directory.h4
-rw-r--r--lib/csapi/event_context.cpp2
-rw-r--r--lib/csapi/event_context.h4
-rw-r--r--lib/csapi/filter.cpp2
-rw-r--r--lib/csapi/filter.h4
-rw-r--r--lib/csapi/inviting.cpp2
-rw-r--r--lib/csapi/inviting.h4
-rw-r--r--lib/csapi/joining.cpp10
-rw-r--r--lib/csapi/joining.h4
-rw-r--r--lib/csapi/keys.cpp6
-rw-r--r--lib/csapi/keys.h4
-rw-r--r--lib/csapi/kicking.cpp2
-rw-r--r--lib/csapi/kicking.h4
-rw-r--r--lib/csapi/leaving.cpp2
-rw-r--r--lib/csapi/leaving.h4
-rw-r--r--lib/csapi/list_joined_rooms.cpp2
-rw-r--r--lib/csapi/list_joined_rooms.h4
-rw-r--r--lib/csapi/list_public_rooms.cpp6
-rw-r--r--lib/csapi/list_public_rooms.h4
-rw-r--r--lib/csapi/login.cpp6
-rw-r--r--lib/csapi/login.h4
-rw-r--r--lib/csapi/logout.cpp2
-rw-r--r--lib/csapi/logout.h4
-rw-r--r--lib/csapi/message_pagination.cpp2
-rw-r--r--lib/csapi/message_pagination.h4
-rw-r--r--lib/csapi/notifications.cpp6
-rw-r--r--lib/csapi/notifications.h4
-rw-r--r--lib/csapi/openid.cpp2
-rw-r--r--lib/csapi/openid.h4
-rw-r--r--lib/csapi/peeking_events.cpp2
-rw-r--r--lib/csapi/peeking_events.h4
-rw-r--r--lib/csapi/presence.cpp2
-rw-r--r--lib/csapi/presence.h4
-rw-r--r--lib/csapi/profile.cpp2
-rw-r--r--lib/csapi/profile.h4
-rw-r--r--lib/csapi/pusher.cpp10
-rw-r--r--lib/csapi/pusher.h4
-rw-r--r--lib/csapi/pushrules.cpp2
-rw-r--r--lib/csapi/pushrules.h4
-rw-r--r--lib/csapi/read_markers.cpp2
-rw-r--r--lib/csapi/read_markers.h4
-rw-r--r--lib/csapi/receipts.cpp2
-rw-r--r--lib/csapi/receipts.h4
-rw-r--r--lib/csapi/redaction.cpp2
-rw-r--r--lib/csapi/redaction.h4
-rw-r--r--lib/csapi/registration.cpp2
-rw-r--r--lib/csapi/registration.h4
-rw-r--r--lib/csapi/report_content.cpp2
-rw-r--r--lib/csapi/report_content.h4
-rw-r--r--lib/csapi/room_send.cpp2
-rw-r--r--lib/csapi/room_send.h4
-rw-r--r--lib/csapi/room_state.cpp2
-rw-r--r--lib/csapi/room_state.h4
-rw-r--r--lib/csapi/room_upgrades.cpp2
-rw-r--r--lib/csapi/room_upgrades.h4
-rw-r--r--lib/csapi/rooms.cpp6
-rw-r--r--lib/csapi/rooms.h4
-rw-r--r--lib/csapi/search.cpp6
-rw-r--r--lib/csapi/search.h4
-rw-r--r--lib/csapi/sso_login_redirect.cpp2
-rw-r--r--lib/csapi/sso_login_redirect.h4
-rw-r--r--lib/csapi/tags.cpp6
-rw-r--r--lib/csapi/tags.h4
-rw-r--r--lib/csapi/third_party_lookup.cpp2
-rw-r--r--lib/csapi/third_party_lookup.h4
-rw-r--r--lib/csapi/third_party_membership.cpp2
-rw-r--r--lib/csapi/third_party_membership.h4
-rw-r--r--lib/csapi/to_device.cpp2
-rw-r--r--lib/csapi/to_device.h4
-rw-r--r--lib/csapi/typing.cpp2
-rw-r--r--lib/csapi/typing.h4
-rw-r--r--lib/csapi/users.cpp6
-rw-r--r--lib/csapi/users.h4
-rw-r--r--lib/csapi/versions.cpp2
-rw-r--r--lib/csapi/versions.h4
-rw-r--r--lib/csapi/voip.cpp2
-rw-r--r--lib/csapi/voip.h4
-rw-r--r--lib/csapi/wellknown.cpp2
-rw-r--r--lib/csapi/wellknown.h4
-rw-r--r--lib/csapi/whoami.cpp2
-rw-r--r--lib/csapi/whoami.h4
-rw-r--r--lib/csapi/{{base}}.cpp.mustache4
-rw-r--r--lib/csapi/{{base}}.h.mustache4
-rw-r--r--lib/e2ee.h4
-rw-r--r--lib/encryptionmanager.cpp2
-rw-r--r--lib/encryptionmanager.h4
-rw-r--r--lib/eventitem.cpp2
-rw-r--r--lib/eventitem.h6
-rw-r--r--lib/events/accountdataevents.h4
-rw-r--r--lib/events/callanswerevent.cpp2
-rw-r--r--lib/events/callanswerevent.h4
-rw-r--r--lib/events/callcandidatesevent.h4
-rw-r--r--lib/events/callhangupevent.cpp2
-rw-r--r--lib/events/callhangupevent.h4
-rw-r--r--lib/events/callinviteevent.cpp2
-rw-r--r--lib/events/callinviteevent.h4
-rw-r--r--lib/events/directchatevent.cpp2
-rw-r--r--lib/events/directchatevent.h4
-rw-r--r--lib/events/encryptedevent.h4
-rw-r--r--lib/events/encryptionevent.cpp6
-rw-r--r--lib/events/encryptionevent.h4
-rw-r--r--lib/events/event.cpp2
-rw-r--r--lib/events/event.h10
-rw-r--r--lib/events/eventcontent.cpp2
-rw-r--r--lib/events/eventcontent.h4
-rw-r--r--lib/events/eventloader.h4
-rw-r--r--lib/events/reactionevent.cpp4
-rw-r--r--lib/events/reactionevent.h4
-rw-r--r--lib/events/receiptevent.cpp2
-rw-r--r--lib/events/receiptevent.h4
-rw-r--r--lib/events/redactionevent.h4
-rw-r--r--lib/events/roomavatarevent.h4
-rw-r--r--lib/events/roomcreateevent.cpp2
-rw-r--r--lib/events/roomcreateevent.h4
-rw-r--r--lib/events/roomevent.cpp4
-rw-r--r--lib/events/roomevent.h8
-rw-r--r--lib/events/roommemberevent.cpp6
-rw-r--r--lib/events/roommemberevent.h4
-rw-r--r--lib/events/roommessageevent.cpp6
-rw-r--r--lib/events/roommessageevent.h4
-rw-r--r--lib/events/roomtombstoneevent.cpp2
-rw-r--r--lib/events/roomtombstoneevent.h4
-rw-r--r--lib/events/simplestateevents.h6
-rw-r--r--lib/events/stateevent.cpp2
-rw-r--r--lib/events/stateevent.h8
-rw-r--r--lib/events/typingevent.cpp2
-rw-r--r--lib/events/typingevent.h4
-rw-r--r--lib/identity/definitions/request_email_validation.cpp2
-rw-r--r--lib/identity/definitions/request_email_validation.h4
-rw-r--r--lib/identity/definitions/request_msisdn_validation.cpp2
-rw-r--r--lib/identity/definitions/request_msisdn_validation.h4
-rw-r--r--lib/identity/definitions/sid.cpp2
-rw-r--r--lib/identity/definitions/sid.h4
-rw-r--r--lib/jobs/basejob.cpp2
-rw-r--r--lib/jobs/basejob.h4
-rw-r--r--lib/jobs/downloadfilejob.cpp2
-rw-r--r--lib/jobs/downloadfilejob.h4
-rw-r--r--lib/jobs/mediathumbnailjob.cpp2
-rw-r--r--lib/jobs/mediathumbnailjob.h4
-rw-r--r--lib/jobs/postreadmarkersjob.h2
-rw-r--r--lib/jobs/requestdata.cpp2
-rw-r--r--lib/jobs/requestdata.h6
-rw-r--r--lib/jobs/syncjob.cpp2
-rw-r--r--lib/jobs/syncjob.h4
-rw-r--r--lib/joinstate.h6
-rw-r--r--lib/logging.h6
-rw-r--r--lib/networkaccessmanager.cpp2
-rw-r--r--lib/networkaccessmanager.h4
-rw-r--r--lib/networksettings.cpp2
-rw-r--r--lib/networksettings.h2
-rw-r--r--lib/qt_connection_util.h4
-rw-r--r--lib/room.cpp4
-rw-r--r--lib/room.h10
-rw-r--r--lib/settings.cpp2
-rw-r--r--lib/settings.h4
-rw-r--r--lib/syncdata.cpp4
-rw-r--r--lib/syncdata.h4
-rw-r--r--lib/user.cpp2
-rw-r--r--lib/user.h6
-rw-r--r--lib/util.cpp14
-rw-r--r--lib/util.h6
223 files changed, 414 insertions, 406 deletions
diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp
index 4a06d9b8..bf4d04c7 100644
--- a/examples/qmc-example.cpp
+++ b/examples/qmc-example.cpp
@@ -19,7 +19,7 @@
#include <functional>
#include <iostream>
-using namespace QMatrixClient;
+using namespace Quotient;
using std::cout;
using std::endl;
using namespace std::placeholders;
diff --git a/lib/application-service/definitions/location.cpp b/lib/application-service/definitions/location.cpp
index 2ab83ae9..0a054029 100644
--- a/lib/application-service/definitions/location.cpp
+++ b/lib/application-service/definitions/location.cpp
@@ -4,7 +4,7 @@
#include "location.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<ThirdPartyLocation>::dumpTo(
QJsonObject& jo, const ThirdPartyLocation& pod)
diff --git a/lib/application-service/definitions/location.h b/lib/application-service/definitions/location.h
index caf28615..77512514 100644
--- a/lib/application-service/definitions/location.h
+++ b/lib/application-service/definitions/location.h
@@ -8,7 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -30,4 +30,4 @@ struct JsonObjectConverter<ThirdPartyLocation>
static void fillFrom(const QJsonObject& jo, ThirdPartyLocation& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/application-service/definitions/protocol.cpp b/lib/application-service/definitions/protocol.cpp
index e87001fb..8c66aa4d 100644
--- a/lib/application-service/definitions/protocol.cpp
+++ b/lib/application-service/definitions/protocol.cpp
@@ -4,7 +4,7 @@
#include "protocol.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<FieldType>::dumpTo(QJsonObject& jo,
const FieldType& pod)
diff --git a/lib/application-service/definitions/protocol.h b/lib/application-service/definitions/protocol.h
index 0d227851..ab99264f 100644
--- a/lib/application-service/definitions/protocol.h
+++ b/lib/application-service/definitions/protocol.h
@@ -10,7 +10,7 @@
#include <QtCore/QJsonObject>
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -85,4 +85,4 @@ struct JsonObjectConverter<ThirdPartyProtocol>
static void fillFrom(const QJsonObject& jo, ThirdPartyProtocol& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/application-service/definitions/user.cpp b/lib/application-service/definitions/user.cpp
index 0f3c3130..17d15a20 100644
--- a/lib/application-service/definitions/user.cpp
+++ b/lib/application-service/definitions/user.cpp
@@ -4,7 +4,7 @@
#include "user.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<ThirdPartyUser>::dumpTo(QJsonObject& jo,
const ThirdPartyUser& pod)
diff --git a/lib/application-service/definitions/user.h b/lib/application-service/definitions/user.h
index 3fd099d0..34c6829c 100644
--- a/lib/application-service/definitions/user.h
+++ b/lib/application-service/definitions/user.h
@@ -8,7 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -30,4 +30,4 @@ struct JsonObjectConverter<ThirdPartyUser>
static void fillFrom(const QJsonObject& jo, ThirdPartyUser& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/avatar.cpp b/lib/avatar.cpp
index 614f008d..cb734984 100644
--- a/lib/avatar.cpp
+++ b/lib/avatar.cpp
@@ -29,7 +29,7 @@
#include <QtCore/QStringBuilder>
#include <QtGui/QPainter>
-using namespace QMatrixClient;
+using namespace Quotient;
using std::move;
class Avatar::Private {
diff --git a/lib/avatar.h b/lib/avatar.h
index c33e1982..7a566bfa 100644
--- a/lib/avatar.h
+++ b/lib/avatar.h
@@ -24,7 +24,7 @@
#include <functional>
#include <memory>
-namespace QMatrixClient {
+namespace Quotient {
class Connection;
class Avatar {
@@ -56,4 +56,6 @@ private:
class Private;
std::unique_ptr<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
+/// \deprecated Use namespace Quotient instead
+namespace QMatrixClient = Quotient; \ No newline at end of file
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 58d2e01a..22db8e3d 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -53,7 +53,7 @@
#include <QtCore/QStringBuilder>
#include <QtNetwork/QDnsLookup>
-using namespace QMatrixClient;
+using namespace Quotient;
// This is very much Qt-specific; STL iterators don't have key() and value()
template <typename HashT, typename Pred>
@@ -1349,9 +1349,9 @@ void Connection::setCacheState(bool newValue)
}
}
-bool QMatrixClient::Connection::lazyLoading() const { return d->lazyLoading; }
+bool Connection::lazyLoading() const { return d->lazyLoading; }
-void QMatrixClient::Connection::setLazyLoading(bool newValue)
+void Connection::setLazyLoading(bool newValue)
{
if (d->lazyLoading != newValue) {
d->lazyLoading = newValue;
diff --git a/lib/connection.h b/lib/connection.h
index b89c0c65..c807b827 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -36,7 +36,7 @@ namespace QtOlm {
class Account;
}
-namespace QMatrixClient {
+namespace Quotient {
class Room;
class User;
class ConnectionData;
@@ -778,5 +778,5 @@ private:
static room_factory_t _roomFactory;
static user_factory_t _userFactory;
};
-} // namespace QMatrixClient
-Q_DECLARE_METATYPE(QMatrixClient::Connection*)
+} // namespace Quotient
+Q_DECLARE_METATYPE(Quotient::Connection*)
diff --git a/lib/connectiondata.cpp b/lib/connectiondata.cpp
index df4cece2..486de03d 100644
--- a/lib/connectiondata.cpp
+++ b/lib/connectiondata.cpp
@@ -21,7 +21,7 @@
#include "logging.h"
#include "networkaccessmanager.h"
-using namespace QMatrixClient;
+using namespace Quotient;
struct ConnectionData::Private {
explicit Private(QUrl url) : baseUrl(std::move(url)) {}
diff --git a/lib/connectiondata.h b/lib/connectiondata.h
index 9b579b1c..80ace08c 100644
--- a/lib/connectiondata.h
+++ b/lib/connectiondata.h
@@ -24,7 +24,7 @@
class QNetworkAccessManager;
-namespace QMatrixClient {
+namespace Quotient {
class ConnectionData {
public:
explicit ConnectionData(QUrl baseUrl);
@@ -50,4 +50,4 @@ private:
struct Private;
std::unique_ptr<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/converters.cpp b/lib/converters.cpp
index ef58c85e..9f4b9360 100644
--- a/lib/converters.cpp
+++ b/lib/converters.cpp
@@ -20,7 +20,7 @@
#include <QtCore/QVariant>
-using namespace QMatrixClient;
+using namespace Quotient;
QJsonValue JsonConverter<QVariant>::dump(const QVariant& v)
{
diff --git a/lib/converters.h b/lib/converters.h
index 0085fa4b..587e4544 100644
--- a/lib/converters.h
+++ b/lib/converters.h
@@ -55,7 +55,7 @@ struct hash<QString> {
class QVariant;
-namespace QMatrixClient {
+namespace Quotient {
template <typename T>
struct JsonObjectConverter {
static void dumpTo(QJsonObject& jo, const T& pod) { jo = pod.toJson(); }
@@ -439,4 +439,4 @@ inline void addParam(ContT& container, const QString& key, ValT&& value)
_impl::AddNode<std::decay_t<ValT>, Force>::impl(container, key,
std::forward<ValT>(value));
}
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/account-data.cpp b/lib/csapi/account-data.cpp
index 7d4f1ad7..2e466fa3 100644
--- a/lib/csapi/account-data.cpp
+++ b/lib/csapi/account-data.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/account-data.h b/lib/csapi/account-data.h
index 75bb9ce3..7417da0d 100644
--- a/lib/csapi/account-data.h
+++ b/lib/csapi/account-data.h
@@ -8,7 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -122,4 +122,4 @@ public:
const QString& roomId, const QString& type);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/admin.cpp b/lib/csapi/admin.cpp
index 58334118..d2c20ba8 100644
--- a/lib/csapi/admin.cpp
+++ b/lib/csapi/admin.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -46,7 +46,7 @@ struct JsonObjectConverter<GetWhoIsJob::DeviceInfo>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetWhoIsJob::Private
{
diff --git a/lib/csapi/admin.h b/lib/csapi/admin.h
index bc27c025..472ccf72 100644
--- a/lib/csapi/admin.h
+++ b/lib/csapi/admin.h
@@ -11,7 +11,7 @@
#include <QtCore/QHash>
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -94,4 +94,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/administrative_contact.cpp b/lib/csapi/administrative_contact.cpp
index 067fb68a..32bc8c86 100644
--- a/lib/csapi/administrative_contact.cpp
+++ b/lib/csapi/administrative_contact.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -29,7 +29,7 @@ struct JsonObjectConverter<GetAccount3PIDsJob::ThirdPartyIdentifier>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetAccount3PIDsJob::Private
{
@@ -67,7 +67,7 @@ BaseJob::Status GetAccount3PIDsJob::parseJson(const QJsonDocument& data)
}
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -82,7 +82,7 @@ struct JsonObjectConverter<Post3PIDsJob::ThreePidCredentials>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
static const auto Post3PIDsJobName = QStringLiteral("Post3PIDsJob");
diff --git a/lib/csapi/administrative_contact.h b/lib/csapi/administrative_contact.h
index 7f2d0cdc..4ccd7596 100644
--- a/lib/csapi/administrative_contact.h
+++ b/lib/csapi/administrative_contact.h
@@ -12,7 +12,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -256,4 +256,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/appservice_room_directory.cpp b/lib/csapi/appservice_room_directory.cpp
index 74e037cd..87221aa4 100644
--- a/lib/csapi/appservice_room_directory.cpp
+++ b/lib/csapi/appservice_room_directory.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/appservice_room_directory.h b/lib/csapi/appservice_room_directory.h
index d1c3f89f..e19bf320 100644
--- a/lib/csapi/appservice_room_directory.h
+++ b/lib/csapi/appservice_room_directory.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -42,4 +42,4 @@ public:
const QString& visibility);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/banning.cpp b/lib/csapi/banning.cpp
index a46e78f1..eac09d5a 100644
--- a/lib/csapi/banning.cpp
+++ b/lib/csapi/banning.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/banning.h b/lib/csapi/banning.h
index 0aa5785b..5df878a8 100644
--- a/lib/csapi/banning.h
+++ b/lib/csapi/banning.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -58,4 +58,4 @@ public:
explicit UnbanJob(const QString& roomId, const QString& userId);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/capabilities.cpp b/lib/csapi/capabilities.cpp
index 9a054fe9..6a544a1e 100644
--- a/lib/csapi/capabilities.cpp
+++ b/lib/csapi/capabilities.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -49,7 +49,7 @@ struct JsonObjectConverter<GetCapabilitiesJob::Capabilities>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetCapabilitiesJob::Private
{
diff --git a/lib/csapi/capabilities.h b/lib/csapi/capabilities.h
index f6e7ad06..b608a2f2 100644
--- a/lib/csapi/capabilities.h
+++ b/lib/csapi/capabilities.h
@@ -11,7 +11,7 @@
#include <QtCore/QHash>
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -84,4 +84,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/content-repo.cpp b/lib/csapi/content-repo.cpp
index c2720d63..395337f3 100644
--- a/lib/csapi/content-repo.cpp
+++ b/lib/csapi/content-repo.cpp
@@ -9,7 +9,7 @@
#include <QtCore/QStringBuilder>
#include <QtNetwork/QNetworkReply>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/media/r0");
diff --git a/lib/csapi/content-repo.h b/lib/csapi/content-repo.h
index 9f267f6c..83069490 100644
--- a/lib/csapi/content-repo.h
+++ b/lib/csapi/content-repo.h
@@ -10,7 +10,7 @@
#include <QtCore/QIODevice>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -282,4 +282,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/create_room.cpp b/lib/csapi/create_room.cpp
index e94cb008..68741f13 100644
--- a/lib/csapi/create_room.cpp
+++ b/lib/csapi/create_room.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -38,7 +38,7 @@ struct JsonObjectConverter<CreateRoomJob::StateEvent>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class CreateRoomJob::Private
{
diff --git a/lib/csapi/create_room.h b/lib/csapi/create_room.h
index a066a3f3..e7000155 100644
--- a/lib/csapi/create_room.h
+++ b/lib/csapi/create_room.h
@@ -11,7 +11,7 @@
#include <QtCore/QJsonObject>
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -235,4 +235,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/auth_data.cpp b/lib/csapi/definitions/auth_data.cpp
index 3bb51626..edeb7111 100644
--- a/lib/csapi/definitions/auth_data.cpp
+++ b/lib/csapi/definitions/auth_data.cpp
@@ -4,7 +4,7 @@
#include "auth_data.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<AuthenticationData>::dumpTo(
QJsonObject& jo, const AuthenticationData& pod)
diff --git a/lib/csapi/definitions/auth_data.h b/lib/csapi/definitions/auth_data.h
index 9e46812c..1aeea6c2 100644
--- a/lib/csapi/definitions/auth_data.h
+++ b/lib/csapi/definitions/auth_data.h
@@ -9,7 +9,7 @@
#include <QtCore/QHash>
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -34,4 +34,4 @@ struct JsonObjectConverter<AuthenticationData>
static void fillFrom(QJsonObject jo, AuthenticationData& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/client_device.cpp b/lib/csapi/definitions/client_device.cpp
index c9e6a223..09544138 100644
--- a/lib/csapi/definitions/client_device.cpp
+++ b/lib/csapi/definitions/client_device.cpp
@@ -4,7 +4,7 @@
#include "client_device.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<Device>::dumpTo(QJsonObject& jo, const Device& pod)
{
diff --git a/lib/csapi/definitions/client_device.h b/lib/csapi/definitions/client_device.h
index e4accc35..f076c4da 100644
--- a/lib/csapi/definitions/client_device.h
+++ b/lib/csapi/definitions/client_device.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -34,4 +34,4 @@ struct JsonObjectConverter<Device>
static void fillFrom(const QJsonObject& jo, Device& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/device_keys.cpp b/lib/csapi/definitions/device_keys.cpp
index cc5262b7..0583840d 100644
--- a/lib/csapi/definitions/device_keys.cpp
+++ b/lib/csapi/definitions/device_keys.cpp
@@ -4,7 +4,7 @@
#include "device_keys.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<DeviceKeys>::dumpTo(QJsonObject& jo,
const DeviceKeys& pod)
diff --git a/lib/csapi/definitions/device_keys.h b/lib/csapi/definitions/device_keys.h
index 6bd96584..d1d8abef 100644
--- a/lib/csapi/definitions/device_keys.h
+++ b/lib/csapi/definitions/device_keys.h
@@ -8,7 +8,7 @@
#include <QtCore/QHash>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -41,4 +41,4 @@ struct JsonObjectConverter<DeviceKeys>
static void fillFrom(const QJsonObject& jo, DeviceKeys& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/event_filter.cpp b/lib/csapi/definitions/event_filter.cpp
index 9b2c7a33..b21e08b5 100644
--- a/lib/csapi/definitions/event_filter.cpp
+++ b/lib/csapi/definitions/event_filter.cpp
@@ -4,7 +4,7 @@
#include "event_filter.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<EventFilter>::dumpTo(QJsonObject& jo,
const EventFilter& pod)
diff --git a/lib/csapi/definitions/event_filter.h b/lib/csapi/definitions/event_filter.h
index 9b9b3fa3..b41e2e9e 100644
--- a/lib/csapi/definitions/event_filter.h
+++ b/lib/csapi/definitions/event_filter.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -40,4 +40,4 @@ struct JsonObjectConverter<EventFilter>
static void fillFrom(const QJsonObject& jo, EventFilter& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/public_rooms_response.cpp b/lib/csapi/definitions/public_rooms_response.cpp
index d07b1494..b6009718 100644
--- a/lib/csapi/definitions/public_rooms_response.cpp
+++ b/lib/csapi/definitions/public_rooms_response.cpp
@@ -4,7 +4,7 @@
#include "public_rooms_response.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<PublicRoomsChunk>::dumpTo(QJsonObject& jo,
const PublicRoomsChunk& pod)
diff --git a/lib/csapi/definitions/public_rooms_response.h b/lib/csapi/definitions/public_rooms_response.h
index e86e306f..1cb3aad5 100644
--- a/lib/csapi/definitions/public_rooms_response.h
+++ b/lib/csapi/definitions/public_rooms_response.h
@@ -8,7 +8,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -67,4 +67,4 @@ struct JsonObjectConverter<PublicRoomsResponse>
static void fillFrom(const QJsonObject& jo, PublicRoomsResponse& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/push_condition.cpp b/lib/csapi/definitions/push_condition.cpp
index 5bcb845e..343b4f1a 100644
--- a/lib/csapi/definitions/push_condition.cpp
+++ b/lib/csapi/definitions/push_condition.cpp
@@ -4,7 +4,7 @@
#include "push_condition.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<PushCondition>::dumpTo(QJsonObject& jo,
const PushCondition& pod)
diff --git a/lib/csapi/definitions/push_condition.h b/lib/csapi/definitions/push_condition.h
index 2c17023e..34a183de 100644
--- a/lib/csapi/definitions/push_condition.h
+++ b/lib/csapi/definitions/push_condition.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -36,4 +36,4 @@ struct JsonObjectConverter<PushCondition>
static void fillFrom(const QJsonObject& jo, PushCondition& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/push_rule.cpp b/lib/csapi/definitions/push_rule.cpp
index fc2be2c7..eae7e446 100644
--- a/lib/csapi/definitions/push_rule.cpp
+++ b/lib/csapi/definitions/push_rule.cpp
@@ -4,7 +4,7 @@
#include "push_rule.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<PushRule>::dumpTo(QJsonObject& jo, const PushRule& pod)
{
diff --git a/lib/csapi/definitions/push_rule.h b/lib/csapi/definitions/push_rule.h
index fe6eb0e6..e64d6ba8 100644
--- a/lib/csapi/definitions/push_rule.h
+++ b/lib/csapi/definitions/push_rule.h
@@ -12,7 +12,7 @@
#include <QtCore/QVariant>
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -43,4 +43,4 @@ struct JsonObjectConverter<PushRule>
static void fillFrom(const QJsonObject& jo, PushRule& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/push_ruleset.cpp b/lib/csapi/definitions/push_ruleset.cpp
index 6f48d27b..a2db35d9 100644
--- a/lib/csapi/definitions/push_ruleset.cpp
+++ b/lib/csapi/definitions/push_ruleset.cpp
@@ -4,7 +4,7 @@
#include "push_ruleset.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<PushRuleset>::dumpTo(QJsonObject& jo,
const PushRuleset& pod)
diff --git a/lib/csapi/definitions/push_ruleset.h b/lib/csapi/definitions/push_ruleset.h
index f9aedad8..b6b9670e 100644
--- a/lib/csapi/definitions/push_ruleset.h
+++ b/lib/csapi/definitions/push_ruleset.h
@@ -10,7 +10,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -36,4 +36,4 @@ struct JsonObjectConverter<PushRuleset>
static void fillFrom(const QJsonObject& jo, PushRuleset& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/room_event_filter.cpp b/lib/csapi/definitions/room_event_filter.cpp
index bd38ebc7..5613d8d2 100644
--- a/lib/csapi/definitions/room_event_filter.cpp
+++ b/lib/csapi/definitions/room_event_filter.cpp
@@ -4,7 +4,7 @@
#include "room_event_filter.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<RoomEventFilter>::dumpTo(QJsonObject& jo,
const RoomEventFilter& pod)
diff --git a/lib/csapi/definitions/room_event_filter.h b/lib/csapi/definitions/room_event_filter.h
index 72bf34d3..ae06a615 100644
--- a/lib/csapi/definitions/room_event_filter.h
+++ b/lib/csapi/definitions/room_event_filter.h
@@ -8,7 +8,7 @@
#include "csapi/definitions/event_filter.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -35,4 +35,4 @@ struct JsonObjectConverter<RoomEventFilter>
static void fillFrom(const QJsonObject& jo, RoomEventFilter& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/sync_filter.cpp b/lib/csapi/definitions/sync_filter.cpp
index 87274a06..15c4bdc1 100644
--- a/lib/csapi/definitions/sync_filter.cpp
+++ b/lib/csapi/definitions/sync_filter.cpp
@@ -4,7 +4,7 @@
#include "sync_filter.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<StateFilter>::dumpTo(QJsonObject& jo,
const StateFilter& pod)
diff --git a/lib/csapi/definitions/sync_filter.h b/lib/csapi/definitions/sync_filter.h
index 1d6a845c..9ea39a65 100644
--- a/lib/csapi/definitions/sync_filter.h
+++ b/lib/csapi/definitions/sync_filter.h
@@ -9,7 +9,7 @@
#include "csapi/definitions/event_filter.h"
#include "csapi/definitions/room_event_filter.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -104,4 +104,4 @@ struct JsonObjectConverter<Filter>
static void fillFrom(const QJsonObject& jo, Filter& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/user_identifier.cpp b/lib/csapi/definitions/user_identifier.cpp
index 52bb1ae6..9e9b4fe9 100644
--- a/lib/csapi/definitions/user_identifier.cpp
+++ b/lib/csapi/definitions/user_identifier.cpp
@@ -4,7 +4,7 @@
#include "user_identifier.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<UserIdentifier>::dumpTo(QJsonObject& jo,
const UserIdentifier& pod)
diff --git a/lib/csapi/definitions/user_identifier.h b/lib/csapi/definitions/user_identifier.h
index 51c47cca..74e6ce2b 100644
--- a/lib/csapi/definitions/user_identifier.h
+++ b/lib/csapi/definitions/user_identifier.h
@@ -8,7 +8,7 @@
#include <QtCore/QVariant>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -31,4 +31,4 @@ struct JsonObjectConverter<UserIdentifier>
static void fillFrom(QJsonObject jo, UserIdentifier& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/wellknown/full.cpp b/lib/csapi/definitions/wellknown/full.cpp
index 34d3bfbe..595db0e5 100644
--- a/lib/csapi/definitions/wellknown/full.cpp
+++ b/lib/csapi/definitions/wellknown/full.cpp
@@ -4,7 +4,7 @@
#include "full.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<DiscoveryInformation>::dumpTo(
QJsonObject& jo, const DiscoveryInformation& pod)
diff --git a/lib/csapi/definitions/wellknown/full.h b/lib/csapi/definitions/wellknown/full.h
index ddc06653..92c8afff 100644
--- a/lib/csapi/definitions/wellknown/full.h
+++ b/lib/csapi/definitions/wellknown/full.h
@@ -12,7 +12,7 @@
#include <QtCore/QHash>
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -39,4 +39,4 @@ struct JsonObjectConverter<DiscoveryInformation>
static void fillFrom(QJsonObject jo, DiscoveryInformation& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/wellknown/homeserver.cpp b/lib/csapi/definitions/wellknown/homeserver.cpp
index f5746ede..7b87aa95 100644
--- a/lib/csapi/definitions/wellknown/homeserver.cpp
+++ b/lib/csapi/definitions/wellknown/homeserver.cpp
@@ -4,7 +4,7 @@
#include "homeserver.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<HomeserverInformation>::dumpTo(
QJsonObject& jo, const HomeserverInformation& pod)
diff --git a/lib/csapi/definitions/wellknown/homeserver.h b/lib/csapi/definitions/wellknown/homeserver.h
index b73cee17..606df88b 100644
--- a/lib/csapi/definitions/wellknown/homeserver.h
+++ b/lib/csapi/definitions/wellknown/homeserver.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -25,4 +25,4 @@ struct JsonObjectConverter<HomeserverInformation>
static void fillFrom(const QJsonObject& jo, HomeserverInformation& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/definitions/wellknown/identity_server.cpp b/lib/csapi/definitions/wellknown/identity_server.cpp
index 922d4665..3b2a5720 100644
--- a/lib/csapi/definitions/wellknown/identity_server.cpp
+++ b/lib/csapi/definitions/wellknown/identity_server.cpp
@@ -4,7 +4,7 @@
#include "identity_server.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<IdentityServerInformation>::dumpTo(
QJsonObject& jo, const IdentityServerInformation& pod)
diff --git a/lib/csapi/definitions/wellknown/identity_server.h b/lib/csapi/definitions/wellknown/identity_server.h
index a35644fc..b4304ef7 100644
--- a/lib/csapi/definitions/wellknown/identity_server.h
+++ b/lib/csapi/definitions/wellknown/identity_server.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -25,4 +25,4 @@ struct JsonObjectConverter<IdentityServerInformation>
static void fillFrom(const QJsonObject& jo, IdentityServerInformation& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/device_management.cpp b/lib/csapi/device_management.cpp
index 9135c22d..0889089e 100644
--- a/lib/csapi/device_management.cpp
+++ b/lib/csapi/device_management.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/device_management.h b/lib/csapi/device_management.h
index 01838c6f..d380a44f 100644
--- a/lib/csapi/device_management.h
+++ b/lib/csapi/device_management.h
@@ -13,7 +13,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -145,4 +145,4 @@ public:
const Omittable<AuthenticationData>& auth = none);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/directory.cpp b/lib/csapi/directory.cpp
index 992d1da5..b2689d1e 100644
--- a/lib/csapi/directory.cpp
+++ b/lib/csapi/directory.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0/directory");
diff --git a/lib/csapi/directory.h b/lib/csapi/directory.h
index f5331db8..7863aa1a 100644
--- a/lib/csapi/directory.h
+++ b/lib/csapi/directory.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -93,4 +93,4 @@ public:
static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomAlias);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/event_context.cpp b/lib/csapi/event_context.cpp
index 936b2430..d233eedb 100644
--- a/lib/csapi/event_context.cpp
+++ b/lib/csapi/event_context.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/event_context.h b/lib/csapi/event_context.h
index ca06f4b9..755fc662 100644
--- a/lib/csapi/event_context.h
+++ b/lib/csapi/event_context.h
@@ -9,7 +9,7 @@
#include "events/eventloader.h"
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -71,4 +71,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/filter.cpp b/lib/csapi/filter.cpp
index 79dd5ea5..b4160ba4 100644
--- a/lib/csapi/filter.cpp
+++ b/lib/csapi/filter.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/filter.h b/lib/csapi/filter.h
index 0a5a98ae..5001a492 100644
--- a/lib/csapi/filter.h
+++ b/lib/csapi/filter.h
@@ -10,7 +10,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -88,4 +88,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/inviting.cpp b/lib/csapi/inviting.cpp
index 4ddbe5d0..b60df6f8 100644
--- a/lib/csapi/inviting.cpp
+++ b/lib/csapi/inviting.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/inviting.h b/lib/csapi/inviting.h
index b0911ea8..faf315b1 100644
--- a/lib/csapi/inviting.h
+++ b/lib/csapi/inviting.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -44,4 +44,4 @@ public:
explicit InviteUserJob(const QString& roomId, const QString& userId);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/joining.cpp b/lib/csapi/joining.cpp
index cb40cb96..2dd617bb 100644
--- a/lib/csapi/joining.cpp
+++ b/lib/csapi/joining.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -29,7 +29,7 @@ struct JsonObjectConverter<JoinRoomByIdJob::ThirdPartySigned>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class JoinRoomByIdJob::Private
{
@@ -67,7 +67,7 @@ BaseJob::Status JoinRoomByIdJob::parseJson(const QJsonDocument& data)
}
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -91,7 +91,7 @@ struct JsonObjectConverter<JoinRoomJob::ThirdPartySigned>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class JoinRoomJob::Private
{
diff --git a/lib/csapi/joining.h b/lib/csapi/joining.h
index a96f323d..cf456da9 100644
--- a/lib/csapi/joining.h
+++ b/lib/csapi/joining.h
@@ -10,7 +10,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -165,4 +165,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/keys.cpp b/lib/csapi/keys.cpp
index 1752b865..cd33ad19 100644
--- a/lib/csapi/keys.cpp
+++ b/lib/csapi/keys.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
@@ -50,7 +50,7 @@ BaseJob::Status UploadKeysJob::parseJson(const QJsonDocument& data)
}
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -74,7 +74,7 @@ struct JsonObjectConverter<QueryKeysJob::DeviceInformation>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class QueryKeysJob::Private
{
diff --git a/lib/csapi/keys.h b/lib/csapi/keys.h
index f69028fd..27867b8c 100644
--- a/lib/csapi/keys.h
+++ b/lib/csapi/keys.h
@@ -14,7 +14,7 @@
#include <QtCore/QJsonObject>
#include <QtCore/QVariant>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -231,4 +231,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/kicking.cpp b/lib/csapi/kicking.cpp
index 05c4c581..ce7fcdad 100644
--- a/lib/csapi/kicking.cpp
+++ b/lib/csapi/kicking.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/kicking.h b/lib/csapi/kicking.h
index 9566a9a4..d51edb47 100644
--- a/lib/csapi/kicking.h
+++ b/lib/csapi/kicking.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -39,4 +39,4 @@ public:
const QString& reason = {});
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/leaving.cpp b/lib/csapi/leaving.cpp
index 325b1e04..abf04888 100644
--- a/lib/csapi/leaving.cpp
+++ b/lib/csapi/leaving.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/leaving.h b/lib/csapi/leaving.h
index 2ed6c8e7..280545b0 100644
--- a/lib/csapi/leaving.h
+++ b/lib/csapi/leaving.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -73,4 +73,4 @@ public:
static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/list_joined_rooms.cpp b/lib/csapi/list_joined_rooms.cpp
index 43c948f7..1260499a 100644
--- a/lib/csapi/list_joined_rooms.cpp
+++ b/lib/csapi/list_joined_rooms.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/list_joined_rooms.h b/lib/csapi/list_joined_rooms.h
index 1b64a004..5dab9dfc 100644
--- a/lib/csapi/list_joined_rooms.h
+++ b/lib/csapi/list_joined_rooms.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -43,4 +43,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/list_public_rooms.cpp b/lib/csapi/list_public_rooms.cpp
index 4d96dac3..0e065440 100644
--- a/lib/csapi/list_public_rooms.cpp
+++ b/lib/csapi/list_public_rooms.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
@@ -108,7 +108,7 @@ BaseJob::Status GetPublicRoomsJob::parseJson(const QJsonDocument& data)
}
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -121,7 +121,7 @@ struct JsonObjectConverter<QueryPublicRoomsJob::Filter>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class QueryPublicRoomsJob::Private
{
diff --git a/lib/csapi/list_public_rooms.h b/lib/csapi/list_public_rooms.h
index da68416d..e68030ad 100644
--- a/lib/csapi/list_public_rooms.h
+++ b/lib/csapi/list_public_rooms.h
@@ -10,7 +10,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -189,4 +189,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/login.cpp b/lib/csapi/login.cpp
index 29ee4ab5..02730ff0 100644
--- a/lib/csapi/login.cpp
+++ b/lib/csapi/login.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -26,7 +26,7 @@ struct JsonObjectConverter<GetLoginFlowsJob::LoginFlow>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetLoginFlowsJob::Private
{
diff --git a/lib/csapi/login.h b/lib/csapi/login.h
index 3ab0648f..dc944782 100644
--- a/lib/csapi/login.h
+++ b/lib/csapi/login.h
@@ -13,7 +13,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -143,4 +143,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/logout.cpp b/lib/csapi/logout.cpp
index d0bef20e..4b391967 100644
--- a/lib/csapi/logout.cpp
+++ b/lib/csapi/logout.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/logout.h b/lib/csapi/logout.h
index c03af180..34d5a441 100644
--- a/lib/csapi/logout.h
+++ b/lib/csapi/logout.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -55,4 +55,4 @@ public:
static QUrl makeRequestUrl(QUrl baseUrl);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/message_pagination.cpp b/lib/csapi/message_pagination.cpp
index 3f09bd85..b612ee91 100644
--- a/lib/csapi/message_pagination.cpp
+++ b/lib/csapi/message_pagination.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/message_pagination.h b/lib/csapi/message_pagination.h
index 03b3d42a..271e1dd9 100644
--- a/lib/csapi/message_pagination.h
+++ b/lib/csapi/message_pagination.h
@@ -9,7 +9,7 @@
#include "events/eventloader.h"
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -80,4 +80,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/notifications.cpp b/lib/csapi/notifications.cpp
index 3a05a0b2..da568a0f 100644
--- a/lib/csapi/notifications.cpp
+++ b/lib/csapi/notifications.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -31,7 +31,7 @@ struct JsonObjectConverter<GetNotificationsJob::Notification>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetNotificationsJob::Private
{
diff --git a/lib/csapi/notifications.h b/lib/csapi/notifications.h
index 4170d539..eeec5d4e 100644
--- a/lib/csapi/notifications.h
+++ b/lib/csapi/notifications.h
@@ -13,7 +13,7 @@
#include <QtCore/QVariant>
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -94,4 +94,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/openid.cpp b/lib/csapi/openid.cpp
index 39ba3b9e..8c00df97 100644
--- a/lib/csapi/openid.cpp
+++ b/lib/csapi/openid.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/openid.h b/lib/csapi/openid.h
index 40f1bc40..b2f003e5 100644
--- a/lib/csapi/openid.h
+++ b/lib/csapi/openid.h
@@ -10,7 +10,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -64,4 +64,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/peeking_events.cpp b/lib/csapi/peeking_events.cpp
index 6962d363..bc29b682 100644
--- a/lib/csapi/peeking_events.cpp
+++ b/lib/csapi/peeking_events.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/peeking_events.h b/lib/csapi/peeking_events.h
index 1fe63c4d..c5cc07f6 100644
--- a/lib/csapi/peeking_events.h
+++ b/lib/csapi/peeking_events.h
@@ -9,7 +9,7 @@
#include "events/eventloader.h"
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -74,4 +74,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/presence.cpp b/lib/csapi/presence.cpp
index b6e8caf2..0f019026 100644
--- a/lib/csapi/presence.cpp
+++ b/lib/csapi/presence.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/presence.h b/lib/csapi/presence.h
index 82c3a300..c5ecb987 100644
--- a/lib/csapi/presence.h
+++ b/lib/csapi/presence.h
@@ -8,7 +8,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -78,4 +78,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/profile.cpp b/lib/csapi/profile.cpp
index 630452f6..27168f77 100644
--- a/lib/csapi/profile.cpp
+++ b/lib/csapi/profile.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/profile.h b/lib/csapi/profile.h
index 95d3ec97..54dc53aa 100644
--- a/lib/csapi/profile.h
+++ b/lib/csapi/profile.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -164,4 +164,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/pusher.cpp b/lib/csapi/pusher.cpp
index 41a0cffe..90877a95 100644
--- a/lib/csapi/pusher.cpp
+++ b/lib/csapi/pusher.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -43,7 +43,7 @@ struct JsonObjectConverter<GetPushersJob::Pusher>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetPushersJob::Private
{
@@ -79,7 +79,7 @@ BaseJob::Status GetPushersJob::parseJson(const QJsonDocument& data)
}
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -92,7 +92,7 @@ struct JsonObjectConverter<PostPusherJob::PusherData>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
static const auto PostPusherJobName = QStringLiteral("PostPusherJob");
diff --git a/lib/csapi/pusher.h b/lib/csapi/pusher.h
index a909b9a0..65f8aa15 100644
--- a/lib/csapi/pusher.h
+++ b/lib/csapi/pusher.h
@@ -10,7 +10,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -169,4 +169,4 @@ public:
Omittable<bool> append = none);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/pushrules.cpp b/lib/csapi/pushrules.cpp
index 5842369f..eae5445f 100644
--- a/lib/csapi/pushrules.cpp
+++ b/lib/csapi/pushrules.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/pushrules.h b/lib/csapi/pushrules.h
index 9074addb..cb94fe7b 100644
--- a/lib/csapi/pushrules.h
+++ b/lib/csapi/pushrules.h
@@ -14,7 +14,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -297,4 +297,4 @@ public:
const QStringList& actions);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/read_markers.cpp b/lib/csapi/read_markers.cpp
index 5ea45f88..a07d09ce 100644
--- a/lib/csapi/read_markers.cpp
+++ b/lib/csapi/read_markers.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/read_markers.h b/lib/csapi/read_markers.h
index e1fbc263..35c428b2 100644
--- a/lib/csapi/read_markers.h
+++ b/lib/csapi/read_markers.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -34,4 +34,4 @@ public:
const QString& mRead = {});
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/receipts.cpp b/lib/csapi/receipts.cpp
index 28d7032f..f9a45912 100644
--- a/lib/csapi/receipts.cpp
+++ b/lib/csapi/receipts.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/receipts.h b/lib/csapi/receipts.h
index bb037c08..376d4006 100644
--- a/lib/csapi/receipts.h
+++ b/lib/csapi/receipts.h
@@ -8,7 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -37,4 +37,4 @@ public:
const QJsonObject& receipt = {});
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/redaction.cpp b/lib/csapi/redaction.cpp
index f944cdd4..d2dbe19b 100644
--- a/lib/csapi/redaction.cpp
+++ b/lib/csapi/redaction.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/redaction.h b/lib/csapi/redaction.h
index c75421cb..42022930 100644
--- a/lib/csapi/redaction.h
+++ b/lib/csapi/redaction.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -53,4 +53,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/registration.cpp b/lib/csapi/registration.cpp
index 52b4098d..270011e1 100644
--- a/lib/csapi/registration.cpp
+++ b/lib/csapi/registration.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/registration.h b/lib/csapi/registration.h
index 40f1caa6..89aecb80 100644
--- a/lib/csapi/registration.h
+++ b/lib/csapi/registration.h
@@ -11,7 +11,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -480,4 +480,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/report_content.cpp b/lib/csapi/report_content.cpp
index eb62cd12..352f52c9 100644
--- a/lib/csapi/report_content.cpp
+++ b/lib/csapi/report_content.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/report_content.h b/lib/csapi/report_content.h
index c545d800..c86a4301 100644
--- a/lib/csapi/report_content.h
+++ b/lib/csapi/report_content.h
@@ -8,7 +8,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -36,4 +36,4 @@ public:
int score, const QString& reason);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/room_send.cpp b/lib/csapi/room_send.cpp
index a29dd99a..5e970d65 100644
--- a/lib/csapi/room_send.cpp
+++ b/lib/csapi/room_send.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/room_send.h b/lib/csapi/room_send.h
index aa2efd79..110fc83b 100644
--- a/lib/csapi/room_send.h
+++ b/lib/csapi/room_send.h
@@ -8,7 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -62,4 +62,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/room_state.cpp b/lib/csapi/room_state.cpp
index ef4afcd0..bfcd6e17 100644
--- a/lib/csapi/room_state.cpp
+++ b/lib/csapi/room_state.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/room_state.h b/lib/csapi/room_state.h
index 6ddd5594..80619d63 100644
--- a/lib/csapi/room_state.h
+++ b/lib/csapi/room_state.h
@@ -8,7 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -126,4 +126,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/room_upgrades.cpp b/lib/csapi/room_upgrades.cpp
index a72304d1..1d6006ef 100644
--- a/lib/csapi/room_upgrades.cpp
+++ b/lib/csapi/room_upgrades.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/room_upgrades.h b/lib/csapi/room_upgrades.h
index 94520aca..5f9262f1 100644
--- a/lib/csapi/room_upgrades.h
+++ b/lib/csapi/room_upgrades.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -41,4 +41,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/rooms.cpp b/lib/csapi/rooms.cpp
index 280e8d59..5bfbe44d 100644
--- a/lib/csapi/rooms.cpp
+++ b/lib/csapi/rooms.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
@@ -168,7 +168,7 @@ BaseJob::Status GetMembersByRoomJob::parseJson(const QJsonDocument& data)
}
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -182,7 +182,7 @@ struct JsonObjectConverter<GetJoinedMembersByRoomJob::RoomMember>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetJoinedMembersByRoomJob::Private
{
diff --git a/lib/csapi/rooms.h b/lib/csapi/rooms.h
index 29d7808e..1020fdb1 100644
--- a/lib/csapi/rooms.h
+++ b/lib/csapi/rooms.h
@@ -12,7 +12,7 @@
#include <QtCore/QHash>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -269,4 +269,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/search.cpp b/lib/csapi/search.cpp
index ee1fa70c..9619f340 100644
--- a/lib/csapi/search.cpp
+++ b/lib/csapi/search.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -144,7 +144,7 @@ struct JsonObjectConverter<SearchJob::ResultCategories>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class SearchJob::Private
{
diff --git a/lib/csapi/search.h b/lib/csapi/search.h
index f965a72a..079ac8e9 100644
--- a/lib/csapi/search.h
+++ b/lib/csapi/search.h
@@ -16,7 +16,7 @@
#include <unordered_map>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -200,4 +200,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/sso_login_redirect.cpp b/lib/csapi/sso_login_redirect.cpp
index b1dc3674..c2cc81cf 100644
--- a/lib/csapi/sso_login_redirect.cpp
+++ b/lib/csapi/sso_login_redirect.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/sso_login_redirect.h b/lib/csapi/sso_login_redirect.h
index af9e7780..b932a15e 100644
--- a/lib/csapi/sso_login_redirect.h
+++ b/lib/csapi/sso_login_redirect.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -37,4 +37,4 @@ public:
static QUrl makeRequestUrl(QUrl baseUrl, const QString& redirectUrl);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/tags.cpp b/lib/csapi/tags.cpp
index 13c933e5..3df38074 100644
--- a/lib/csapi/tags.cpp
+++ b/lib/csapi/tags.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -26,7 +26,7 @@ struct JsonObjectConverter<GetRoomTagsJob::Tag>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class GetRoomTagsJob::Private
{
diff --git a/lib/csapi/tags.h b/lib/csapi/tags.h
index dc20cd3d..8ddebd6b 100644
--- a/lib/csapi/tags.h
+++ b/lib/csapi/tags.h
@@ -11,7 +11,7 @@
#include <QtCore/QHash>
#include <QtCore/QVariant>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -123,4 +123,4 @@ public:
const QString& roomId, const QString& tag);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/third_party_lookup.cpp b/lib/csapi/third_party_lookup.cpp
index 986ead01..678f6b3c 100644
--- a/lib/csapi/third_party_lookup.cpp
+++ b/lib/csapi/third_party_lookup.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/third_party_lookup.h b/lib/csapi/third_party_lookup.h
index d25c1cf3..63607549 100644
--- a/lib/csapi/third_party_lookup.h
+++ b/lib/csapi/third_party_lookup.h
@@ -15,7 +15,7 @@
#include <QtCore/QHash>
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -253,4 +253,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/third_party_membership.cpp b/lib/csapi/third_party_membership.cpp
index 9fe702aa..7e401163 100644
--- a/lib/csapi/third_party_membership.cpp
+++ b/lib/csapi/third_party_membership.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/third_party_membership.h b/lib/csapi/third_party_membership.h
index 36622c94..bd4c6896 100644
--- a/lib/csapi/third_party_membership.h
+++ b/lib/csapi/third_party_membership.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -74,4 +74,4 @@ public:
const QString& medium, const QString& address);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/to_device.cpp b/lib/csapi/to_device.cpp
index 3fb17109..3f6e8097 100644
--- a/lib/csapi/to_device.cpp
+++ b/lib/csapi/to_device.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/to_device.h b/lib/csapi/to_device.h
index e0bbbe28..14445439 100644
--- a/lib/csapi/to_device.h
+++ b/lib/csapi/to_device.h
@@ -9,7 +9,7 @@
#include <QtCore/QHash>
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -39,4 +39,4 @@ public:
const QHash<QString, QHash<QString, QJsonObject>>& messages = {});
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/typing.cpp b/lib/csapi/typing.cpp
index 03499c76..064ebe39 100644
--- a/lib/csapi/typing.cpp
+++ b/lib/csapi/typing.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/typing.h b/lib/csapi/typing.h
index 0c3f75a8..350c209d 100644
--- a/lib/csapi/typing.h
+++ b/lib/csapi/typing.h
@@ -8,7 +8,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -38,4 +38,4 @@ public:
bool typing, Omittable<int> timeout = none);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/users.cpp b/lib/csapi/users.cpp
index 39b05a77..77c297dd 100644
--- a/lib/csapi/users.cpp
+++ b/lib/csapi/users.cpp
@@ -8,12 +8,12 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
// Converters
-namespace QMatrixClient
+namespace Quotient
{
template <>
@@ -28,7 +28,7 @@ struct JsonObjectConverter<SearchUserDirectoryJob::User>
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
class SearchUserDirectoryJob::Private
{
diff --git a/lib/csapi/users.h b/lib/csapi/users.h
index 2e86c009..d9a16a9d 100644
--- a/lib/csapi/users.h
+++ b/lib/csapi/users.h
@@ -10,7 +10,7 @@
#include <QtCore/QVector>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -80,4 +80,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/versions.cpp b/lib/csapi/versions.cpp
index 1d66b94f..9607a1b6 100644
--- a/lib/csapi/versions.cpp
+++ b/lib/csapi/versions.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client");
diff --git a/lib/csapi/versions.h b/lib/csapi/versions.h
index 513e7f27..aa8cbac6 100644
--- a/lib/csapi/versions.h
+++ b/lib/csapi/versions.h
@@ -10,7 +10,7 @@
#include <QtCore/QHash>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -70,4 +70,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/voip.cpp b/lib/csapi/voip.cpp
index 0e83c915..c95afe16 100644
--- a/lib/csapi/voip.cpp
+++ b/lib/csapi/voip.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/voip.h b/lib/csapi/voip.h
index ab34dcad..38abfa27 100644
--- a/lib/csapi/voip.h
+++ b/lib/csapi/voip.h
@@ -8,7 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -46,4 +46,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/wellknown.cpp b/lib/csapi/wellknown.cpp
index c2bd7822..9a52a2a5 100644
--- a/lib/csapi/wellknown.cpp
+++ b/lib/csapi/wellknown.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/.well-known");
diff --git a/lib/csapi/wellknown.h b/lib/csapi/wellknown.h
index 66917806..bce67d00 100644
--- a/lib/csapi/wellknown.h
+++ b/lib/csapi/wellknown.h
@@ -10,7 +10,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -54,4 +54,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/whoami.cpp b/lib/csapi/whoami.cpp
index 2ca9c435..fb7f54dc 100644
--- a/lib/csapi/whoami.cpp
+++ b/lib/csapi/whoami.cpp
@@ -8,7 +8,7 @@
#include <QtCore/QStringBuilder>
-using namespace QMatrixClient;
+using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
diff --git a/lib/csapi/whoami.h b/lib/csapi/whoami.h
index e62b7dad..bbbb3899 100644
--- a/lib/csapi/whoami.h
+++ b/lib/csapi/whoami.h
@@ -6,7 +6,7 @@
#include "jobs/basejob.h"
-namespace QMatrixClient
+namespace Quotient
{
// Operations
@@ -50,4 +50,4 @@ private:
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/csapi/{{base}}.cpp.mustache b/lib/csapi/{{base}}.cpp.mustache
index 8ebac6ef..6cbd1b65 100644
--- a/lib/csapi/{{base}}.cpp.mustache
+++ b/lib/csapi/{{base}}.cpp.mustache
@@ -8,7 +8,7 @@
{{/producesNonJson?}}
#include <QtCore/QStringBuilder>
{{/operations}}
-using namespace QMatrixClient;
+using namespace Quotient;
{{#models.model}}
{{#in?}}
void JsonObjectConverter<{{qualifiedName}}>::dumpTo(QJsonObject& jo, const {{qualifiedName}}& pod)
@@ -38,7 +38,7 @@ void JsonObjectConverter<{{qualifiedName}}>::fillFrom({{>maybeCrefJsonObject}} j
static const auto basePath = QStringLiteral("{{basePathWithoutHost}}");
{{#operation}}{{#models}}
// Converters
-namespace QMatrixClient
+namespace Quotient
{
{{#model}}
template <> struct JsonObjectConverter<{{qualifiedName}}>
diff --git a/lib/csapi/{{base}}.h.mustache b/lib/csapi/{{base}}.h.mustache
index 61380ec6..56044e7d 100644
--- a/lib/csapi/{{base}}.h.mustache
+++ b/lib/csapi/{{base}}.h.mustache
@@ -8,7 +8,7 @@
{{#imports}}
#include {{_}}{{/imports}}
-namespace QMatrixClient
+namespace Quotient
{
{{#models}}
// Data structures
@@ -92,4 +92,4 @@ private:
};
{{/ operation}}
{{/operations}}
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/e2ee.h b/lib/e2ee.h
index c85211be..5a9b83c5 100644
--- a/lib/e2ee.h
+++ b/lib/e2ee.h
@@ -4,7 +4,7 @@
#include <QtCore/QStringList>
-namespace QMatrixClient {
+namespace Quotient {
static const auto CiphertextKeyL = "ciphertext"_ls;
static const auto SenderKeyKeyL = "sender_key"_ls;
static const auto DeviceIdKeyL = "device_id"_ls;
@@ -28,4 +28,4 @@ static const auto MegolmV1AesSha2AlgoKey =
QStringLiteral("m.megolm.v1.aes-sha2");
static const QStringList SupportedAlgorithms = { OlmV1Curve25519AesSha2AlgoKey,
MegolmV1AesSha2AlgoKey };
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/encryptionmanager.cpp b/lib/encryptionmanager.cpp
index 15723688..22387cf9 100644
--- a/lib/encryptionmanager.cpp
+++ b/lib/encryptionmanager.cpp
@@ -12,7 +12,7 @@
#include <functional>
#include <memory>
-using namespace QMatrixClient;
+using namespace Quotient;
using namespace QtOlm;
using std::move;
diff --git a/lib/encryptionmanager.h b/lib/encryptionmanager.h
index 79c25a00..b210a85a 100644
--- a/lib/encryptionmanager.h
+++ b/lib/encryptionmanager.h
@@ -9,7 +9,7 @@ namespace QtOlm {
class Account;
}
-namespace QMatrixClient {
+namespace Quotient {
class Connection;
class EncryptionManager : public QObject {
@@ -35,4 +35,4 @@ private:
std::unique_ptr<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/eventitem.cpp b/lib/eventitem.cpp
index de0a5c9f..2e2b11c0 100644
--- a/lib/eventitem.cpp
+++ b/lib/eventitem.cpp
@@ -21,7 +21,7 @@
#include "events/roomavatarevent.h"
#include "events/roommessageevent.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void PendingEventItem::setFileUploaded(const QUrl& remoteUrl)
{
diff --git a/lib/eventitem.h b/lib/eventitem.h
index 68d1ae06..3a7061d3 100644
--- a/lib/eventitem.h
+++ b/lib/eventitem.h
@@ -22,7 +22,7 @@
#include <utility>
-namespace QMatrixClient {
+namespace Quotient {
class StateEventBase;
class EventStatus {
@@ -153,5 +153,5 @@ inline QDebug& operator<<(QDebug& d, const TimelineItem& ti)
d.nospace() << "(" << ti.index() << "|" << ti->id() << ")";
return d;
}
-} // namespace QMatrixClient
-Q_DECLARE_METATYPE(QMatrixClient::EventStatus)
+} // namespace Quotient
+Q_DECLARE_METATYPE(Quotient::EventStatus)
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h
index 3f519668..600fa5be 100644
--- a/lib/events/accountdataevents.h
+++ b/lib/events/accountdataevents.h
@@ -24,7 +24,7 @@
#include "event.h"
#include "eventcontent.h"
-namespace QMatrixClient {
+namespace Quotient {
constexpr const char* FavouriteTag = "m.favourite";
constexpr const char* LowPriorityTag = "m.lowpriority";
@@ -93,4 +93,4 @@ DEFINE_SIMPLE_EVENT(IgnoredUsersEvent, "m.ignored_user_list", QSet<QString>,
DEFINE_EVENTTYPE_ALIAS(Tag, TagEvent)
DEFINE_EVENTTYPE_ALIAS(ReadMarker, ReadMarkerEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/callanswerevent.cpp b/lib/events/callanswerevent.cpp
index 7ab4a6fb..d6622b30 100644
--- a/lib/events/callanswerevent.cpp
+++ b/lib/events/callanswerevent.cpp
@@ -44,7 +44,7 @@ m.call.answer
}
*/
-using namespace QMatrixClient;
+using namespace Quotient;
CallAnswerEvent::CallAnswerEvent(const QJsonObject& obj)
: CallEventBase(typeId(), obj)
diff --git a/lib/events/callanswerevent.h b/lib/events/callanswerevent.h
index 052f732d..e01b39db 100644
--- a/lib/events/callanswerevent.h
+++ b/lib/events/callanswerevent.h
@@ -20,7 +20,7 @@
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class CallAnswerEvent : public CallEventBase {
public:
DEFINE_EVENT_TYPEID("m.call.answer", CallAnswerEvent)
@@ -43,4 +43,4 @@ public:
REGISTER_EVENT_TYPE(CallAnswerEvent)
DEFINE_EVENTTYPE_ALIAS(CallAnswer, CallAnswerEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/callcandidatesevent.h b/lib/events/callcandidatesevent.h
index 2a915a43..3d13ba8a 100644
--- a/lib/events/callcandidatesevent.h
+++ b/lib/events/callcandidatesevent.h
@@ -20,7 +20,7 @@
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class CallCandidatesEvent : public CallEventBase {
public:
DEFINE_EVENT_TYPEID("m.call.candidates", CallCandidatesEvent)
@@ -43,4 +43,4 @@ public:
REGISTER_EVENT_TYPE(CallCandidatesEvent)
DEFINE_EVENTTYPE_ALIAS(CallCandidates, CallCandidatesEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/callhangupevent.cpp b/lib/events/callhangupevent.cpp
index 2a4fd3da..d41849c3 100644
--- a/lib/events/callhangupevent.cpp
+++ b/lib/events/callhangupevent.cpp
@@ -39,7 +39,7 @@ m.call.hangup
}
*/
-using namespace QMatrixClient;
+using namespace Quotient;
CallHangupEvent::CallHangupEvent(const QJsonObject& obj)
: CallEventBase(typeId(), obj)
diff --git a/lib/events/callhangupevent.h b/lib/events/callhangupevent.h
index 97fa2f52..d23e29db 100644
--- a/lib/events/callhangupevent.h
+++ b/lib/events/callhangupevent.h
@@ -20,7 +20,7 @@
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class CallHangupEvent : public CallEventBase {
public:
DEFINE_EVENT_TYPEID("m.call.hangup", CallHangupEvent)
@@ -31,4 +31,4 @@ public:
REGISTER_EVENT_TYPE(CallHangupEvent)
DEFINE_EVENTTYPE_ALIAS(CallHangup, CallHangupEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/callinviteevent.cpp b/lib/events/callinviteevent.cpp
index f565fc3e..54faac8d 100644
--- a/lib/events/callinviteevent.cpp
+++ b/lib/events/callinviteevent.cpp
@@ -44,7 +44,7 @@ m.call.invite
}
*/
-using namespace QMatrixClient;
+using namespace Quotient;
CallInviteEvent::CallInviteEvent(const QJsonObject& obj)
: CallEventBase(typeId(), obj)
diff --git a/lib/events/callinviteevent.h b/lib/events/callinviteevent.h
index 9b9d0ae5..3e39e0ba 100644
--- a/lib/events/callinviteevent.h
+++ b/lib/events/callinviteevent.h
@@ -20,7 +20,7 @@
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class CallInviteEvent : public CallEventBase {
public:
DEFINE_EVENT_TYPEID("m.call.invite", CallInviteEvent)
@@ -42,4 +42,4 @@ public:
REGISTER_EVENT_TYPE(CallInviteEvent)
DEFINE_EVENTTYPE_ALIAS(CallInvite, CallInviteEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/directchatevent.cpp b/lib/events/directchatevent.cpp
index 4ba098c2..b4027e16 100644
--- a/lib/events/directchatevent.cpp
+++ b/lib/events/directchatevent.cpp
@@ -20,7 +20,7 @@
#include <QtCore/QJsonArray>
-using namespace QMatrixClient;
+using namespace Quotient;
QMultiHash<QString, QString> DirectChatEvent::usersToDirectChats() const
{
diff --git a/lib/events/directchatevent.h b/lib/events/directchatevent.h
index 94857a93..b4981f2e 100644
--- a/lib/events/directchatevent.h
+++ b/lib/events/directchatevent.h
@@ -20,7 +20,7 @@
#include "event.h"
-namespace QMatrixClient {
+namespace Quotient {
class DirectChatEvent : public Event {
public:
DEFINE_EVENT_TYPEID("m.direct", DirectChatEvent)
@@ -31,4 +31,4 @@ public:
};
REGISTER_EVENT_TYPE(DirectChatEvent)
DEFINE_EVENTTYPE_ALIAS(DirectChat, DirectChatEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/encryptedevent.h b/lib/events/encryptedevent.h
index 67298a27..235b2aa4 100644
--- a/lib/events/encryptedevent.h
+++ b/lib/events/encryptedevent.h
@@ -3,7 +3,7 @@
#include "e2ee.h"
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class Room;
/*
* While the specification states:
@@ -63,4 +63,4 @@ public:
};
REGISTER_EVENT_TYPE(EncryptedEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/encryptionevent.cpp b/lib/events/encryptionevent.cpp
index 0c732a51..945e6696 100644
--- a/lib/events/encryptionevent.cpp
+++ b/lib/events/encryptionevent.cpp
@@ -12,10 +12,10 @@
#include <array>
static const std::array<QString, 1> encryptionStrings = {
- { QMatrixClient::MegolmV1AesSha2AlgoKey }
+ { Quotient::MegolmV1AesSha2AlgoKey }
};
-namespace QMatrixClient {
+namespace Quotient {
template <>
struct JsonConverter<EncryptionType> {
static EncryptionType load(const QJsonValue& jv)
@@ -32,7 +32,7 @@ struct JsonConverter<EncryptionType> {
};
} // namespace QMatrixClient
-using namespace QMatrixClient;
+using namespace Quotient;
EncryptionEventContent::EncryptionEventContent(const QJsonObject& json)
: encryption(fromJson<EncryptionType>(json["algorithm"_ls]))
diff --git a/lib/events/encryptionevent.h b/lib/events/encryptionevent.h
index debabcae..68e41719 100644
--- a/lib/events/encryptionevent.h
+++ b/lib/events/encryptionevent.h
@@ -21,7 +21,7 @@
#include "eventcontent.h"
#include "stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class EncryptionEventContent : public EventContent::Base {
public:
enum EncryptionType : size_t { MegolmV1AesSha2 = 0, Undefined };
@@ -71,4 +71,4 @@ private:
REGISTER_EVENT_TYPE(EncryptionEvent)
DEFINE_EVENTTYPE_ALIAS(Encryption, EncryptionEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/event.cpp b/lib/events/event.cpp
index 694254fe..96e33864 100644
--- a/lib/events/event.cpp
+++ b/lib/events/event.cpp
@@ -22,7 +22,7 @@
#include <QtCore/QJsonDocument>
-using namespace QMatrixClient;
+using namespace Quotient;
event_type_t EventTypeRegistry::initializeTypeId(event_mtype_t matrixTypeId)
{
diff --git a/lib/events/event.h b/lib/events/event.h
index 686bd8e0..e96d6897 100644
--- a/lib/events/event.h
+++ b/lib/events/event.h
@@ -25,7 +25,7 @@
# define USE_EVENTTYPE_ALIAS 1
#endif
-namespace QMatrixClient {
+namespace Quotient {
// === event_ptr_tt<> and type casting facilities ===
template <typename EventT>
@@ -292,7 +292,7 @@ using Events = EventsArray<Event>;
// provide matrixTypeId() and typeId().
#define DEFINE_EVENT_TYPEID(_Id, _Type) \
static constexpr event_mtype_t matrixTypeId() { return _Id; } \
- static auto typeId() { return QMatrixClient::typeId<_Type>(); } \
+ static auto typeId() { return Quotient::typeId<_Type>(); } \
// End of macro
// This macro should be put after an event class definition (in .h or .cpp)
@@ -406,6 +406,6 @@ visit(const BaseEventT& event, FnT1&& visitor1, FnT2&& visitor2,
return visit(event, std::forward<FnT2>(visitor2),
std::forward<FnTs>(visitors)...);
}
-} // namespace QMatrixClient
-Q_DECLARE_METATYPE(QMatrixClient::Event*)
-Q_DECLARE_METATYPE(const QMatrixClient::Event*)
+} // namespace Quotient
+Q_DECLARE_METATYPE(Quotient::Event*)
+Q_DECLARE_METATYPE(const Quotient::Event*)
diff --git a/lib/events/eventcontent.cpp b/lib/events/eventcontent.cpp
index 814f2787..802d8176 100644
--- a/lib/events/eventcontent.cpp
+++ b/lib/events/eventcontent.cpp
@@ -23,7 +23,7 @@
#include <QtCore/QMimeDatabase>
-using namespace QMatrixClient::EventContent;
+using namespace Quotient::EventContent;
QJsonObject Base::toJson() const
{
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index 5c0f92d1..c26cb931 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -26,7 +26,7 @@
#include <QtCore/QSize>
#include <QtCore/QUrl>
-namespace QMatrixClient {
+namespace Quotient {
namespace EventContent {
/**
* A base class for all content types that can be stored
@@ -275,4 +275,4 @@ namespace EventContent {
*/
using FileContent = UrlWithThumbnailContent<FileInfo>;
} // namespace EventContent
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/eventloader.h b/lib/events/eventloader.h
index 9e8bb410..ebb96441 100644
--- a/lib/events/eventloader.h
+++ b/lib/events/eventloader.h
@@ -20,7 +20,7 @@
#include "stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
namespace _impl {
template <typename BaseEventT>
static inline auto loadEvent(const QJsonObject& json,
@@ -83,4 +83,4 @@ struct JsonConverter<event_ptr_tt<EventT>> {
return loadEvent<EventT>(jd.object());
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/reactionevent.cpp b/lib/events/reactionevent.cpp
index 0a080607..df8910fe 100644
--- a/lib/events/reactionevent.cpp
+++ b/lib/events/reactionevent.cpp
@@ -20,7 +20,7 @@
using namespace QMatrixClient;
-void QMatrixClient::JsonObjectConverter<EventRelation>::dumpTo(
+void JsonObjectConverter<EventRelation>::dumpTo(
QJsonObject& jo, const EventRelation& pod)
{
if (pod.type.isEmpty()) {
@@ -33,7 +33,7 @@ void QMatrixClient::JsonObjectConverter<EventRelation>::dumpTo(
jo.insert(QStringLiteral("key"), pod.key);
}
-void QMatrixClient::JsonObjectConverter<EventRelation>::fillFrom(
+void JsonObjectConverter<EventRelation>::fillFrom(
const QJsonObject& jo, EventRelation& pod)
{
// The experimental logic for generic relationships (MSC1849)
diff --git a/lib/events/reactionevent.h b/lib/events/reactionevent.h
index b1e04561..75c6528c 100644
--- a/lib/events/reactionevent.h
+++ b/lib/events/reactionevent.h
@@ -20,7 +20,7 @@
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
struct EventRelation {
using reltypeid_t = const char*;
@@ -70,4 +70,4 @@ private:
};
REGISTER_EVENT_TYPE(ReactionEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/receiptevent.cpp b/lib/events/receiptevent.cpp
index 4a54b744..bf050cb2 100644
--- a/lib/events/receiptevent.cpp
+++ b/lib/events/receiptevent.cpp
@@ -38,7 +38,7 @@ Example of a Receipt Event:
#include "converters.h"
#include "logging.h"
-using namespace QMatrixClient;
+using namespace Quotient;
ReceiptEvent::ReceiptEvent(const QJsonObject& obj) : Event(typeId(), obj)
{
diff --git a/lib/events/receiptevent.h b/lib/events/receiptevent.h
index c32e0543..71cd5de0 100644
--- a/lib/events/receiptevent.h
+++ b/lib/events/receiptevent.h
@@ -23,7 +23,7 @@
#include <QtCore/QDateTime>
#include <QtCore/QVector>
-namespace QMatrixClient {
+namespace Quotient {
struct Receipt {
QString userId;
QDateTime timestamp;
@@ -49,4 +49,4 @@ private:
};
REGISTER_EVENT_TYPE(ReceiptEvent)
DEFINE_EVENTTYPE_ALIAS(Receipt, ReceiptEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/redactionevent.h b/lib/events/redactionevent.h
index 3628fb33..eac627d5 100644
--- a/lib/events/redactionevent.h
+++ b/lib/events/redactionevent.h
@@ -20,7 +20,7 @@
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class RedactionEvent : public RoomEvent {
public:
DEFINE_EVENT_TYPEID("m.room.redaction", RedactionEvent)
@@ -36,4 +36,4 @@ public:
};
REGISTER_EVENT_TYPE(RedactionEvent)
DEFINE_EVENTTYPE_ALIAS(Redaction, RedactionEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/roomavatarevent.h b/lib/events/roomavatarevent.h
index 16aeb070..109f4014 100644
--- a/lib/events/roomavatarevent.h
+++ b/lib/events/roomavatarevent.h
@@ -21,7 +21,7 @@
#include "eventcontent.h"
#include "stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class RoomAvatarEvent : public StateEvent<EventContent::ImageContent> {
// It's a bit of an overkill to use a full-fledged ImageContent
// because in reality m.room.avatar usually only has a single URL,
@@ -35,4 +35,4 @@ public:
};
REGISTER_EVENT_TYPE(RoomAvatarEvent)
DEFINE_EVENTTYPE_ALIAS(RoomAvatar, RoomAvatarEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/roomcreateevent.cpp b/lib/events/roomcreateevent.cpp
index cb575f24..c72b5bc2 100644
--- a/lib/events/roomcreateevent.cpp
+++ b/lib/events/roomcreateevent.cpp
@@ -18,7 +18,7 @@
#include "roomcreateevent.h"
-using namespace QMatrixClient;
+using namespace Quotient;
bool RoomCreateEvent::isFederated() const
{
diff --git a/lib/events/roomcreateevent.h b/lib/events/roomcreateevent.h
index c8ba8c40..91aefe9e 100644
--- a/lib/events/roomcreateevent.h
+++ b/lib/events/roomcreateevent.h
@@ -20,7 +20,7 @@
#include "stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class RoomCreateEvent : public StateEventBase {
public:
DEFINE_EVENT_TYPEID("m.room.create", RoomCreateEvent)
@@ -41,4 +41,4 @@ public:
bool isUpgrade() const;
};
REGISTER_EVENT_TYPE(RoomCreateEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/roomevent.cpp b/lib/events/roomevent.cpp
index 543640ca..e19c03ce 100644
--- a/lib/events/roomevent.cpp
+++ b/lib/events/roomevent.cpp
@@ -22,7 +22,7 @@
#include "logging.h"
#include "redactionevent.h"
-using namespace QMatrixClient;
+using namespace Quotient;
[[gnu::unused]] static auto roomEventTypeInitialised =
Event::factory_t::chainFactory<RoomEvent>();
@@ -48,7 +48,7 @@ QString RoomEvent::id() const { return fullJson()[EventIdKeyL].toString(); }
QDateTime RoomEvent::timestamp() const
{
- return QMatrixClient::fromJson<QDateTime>(fullJson()["origin_server_ts"_ls]);
+ return Quotient::fromJson<QDateTime>(fullJson()["origin_server_ts"_ls]);
}
QString RoomEvent::roomId() const
diff --git a/lib/events/roomevent.h b/lib/events/roomevent.h
index 155d4600..f943bce4 100644
--- a/lib/events/roomevent.h
+++ b/lib/events/roomevent.h
@@ -22,7 +22,7 @@
#include <QtCore/QDateTime>
-namespace QMatrixClient {
+namespace Quotient {
class RedactionEvent;
/** This class corresponds to m.room.* events */
@@ -102,6 +102,6 @@ public:
QString callId() const { return content<QString>("call_id"_ls); }
int version() const { return content<int>("version"_ls); }
};
-} // namespace QMatrixClient
-Q_DECLARE_METATYPE(QMatrixClient::RoomEvent*)
-Q_DECLARE_METATYPE(const QMatrixClient::RoomEvent*)
+} // namespace Quotient
+Q_DECLARE_METATYPE(Quotient::RoomEvent*)
+Q_DECLARE_METATYPE(const Quotient::RoomEvent*)
diff --git a/lib/events/roommemberevent.cpp b/lib/events/roommemberevent.cpp
index 3cbf6685..d0787170 100644
--- a/lib/events/roommemberevent.cpp
+++ b/lib/events/roommemberevent.cpp
@@ -28,7 +28,7 @@ static const std::array<QString, 5> membershipStrings = {
QStringLiteral("leave"), QStringLiteral("ban") }
};
-namespace QMatrixClient {
+namespace Quotient {
template <>
struct JsonConverter<MembershipType> {
static MembershipType load(const QJsonValue& jv)
@@ -43,9 +43,9 @@ struct JsonConverter<MembershipType> {
return MembershipType::Undefined;
}
};
-} // namespace QMatrixClient
+} // namespace Quotient
-using namespace QMatrixClient;
+using namespace Quotient;
MemberEventContent::MemberEventContent(const QJsonObject& json)
: membership(fromJson<MembershipType>(json["membership"_ls]))
diff --git a/lib/events/roommemberevent.h b/lib/events/roommemberevent.h
index 59d59e3a..2a16617a 100644
--- a/lib/events/roommemberevent.h
+++ b/lib/events/roommemberevent.h
@@ -21,7 +21,7 @@
#include "eventcontent.h"
#include "stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class MemberEventContent : public EventContent::Base {
public:
enum MembershipType : size_t {
@@ -107,4 +107,4 @@ public:
REGISTER_EVENT_TYPE(RoomMemberEvent)
DEFINE_EVENTTYPE_ALIAS(RoomMember, RoomMemberEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp
index 991931de..09562d65 100644
--- a/lib/events/roommessageevent.cpp
+++ b/lib/events/roommessageevent.cpp
@@ -25,7 +25,7 @@
#include <QtGui/QImageReader>
#include <QtMultimedia/QMediaResource>
-using namespace QMatrixClient;
+using namespace Quotient;
using namespace EventContent;
using MsgType = RoomMessageEvent::MsgType;
@@ -279,7 +279,7 @@ TextContent::TextContent(const QString& text, const QString& contentType,
mimeType = QMimeDatabase().mimeTypeForName("text/html");
}
-namespace QMatrixClient {
+namespace Quotient {
// Overload the default fromJson<> logic that defined in converters.h
// as we want
template <>
@@ -295,7 +295,7 @@ Omittable<RelatesTo> fromJson(const QJsonValue& jv)
return RelatesTo { jo.value("rel_type"_ls).toString(),
jo.value(EventIdKeyL).toString() };
}
-} // namespace QMatrixClient
+} // namespace Quotient
TextContent::TextContent(const QJsonObject& json)
: relatesTo(fromJson<Omittable<RelatesTo>>(json[RelatesToKeyL]))
diff --git a/lib/events/roommessageevent.h b/lib/events/roommessageevent.h
index c7a5cb47..aa515c71 100644
--- a/lib/events/roommessageevent.h
+++ b/lib/events/roommessageevent.h
@@ -23,7 +23,7 @@
class QFileInfo;
-namespace QMatrixClient {
+namespace Quotient {
namespace MessageEventContent = EventContent; // Back-compatibility
/**
@@ -217,4 +217,4 @@ namespace EventContent {
*/
using AudioContent = PlayableContent<UrlBasedContent<FileInfo>>;
} // namespace EventContent
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/roomtombstoneevent.cpp b/lib/events/roomtombstoneevent.cpp
index a74bb367..f93eb60d 100644
--- a/lib/events/roomtombstoneevent.cpp
+++ b/lib/events/roomtombstoneevent.cpp
@@ -18,7 +18,7 @@
#include "roomtombstoneevent.h"
-using namespace QMatrixClient;
+using namespace Quotient;
QString RoomTombstoneEvent::serverMessage() const
{
diff --git a/lib/events/roomtombstoneevent.h b/lib/events/roomtombstoneevent.h
index 95fed998..2c2f0663 100644
--- a/lib/events/roomtombstoneevent.h
+++ b/lib/events/roomtombstoneevent.h
@@ -20,7 +20,7 @@
#include "stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
class RoomTombstoneEvent : public StateEventBase {
public:
DEFINE_EVENT_TYPEID("m.room.tombstone", RoomTombstoneEvent)
@@ -34,4 +34,4 @@ public:
QString successorRoomId() const;
};
REGISTER_EVENT_TYPE(RoomTombstoneEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/simplestateevents.h b/lib/events/simplestateevents.h
index 6dad8020..520f6b4b 100644
--- a/lib/events/simplestateevents.h
+++ b/lib/events/simplestateevents.h
@@ -20,7 +20,7 @@
#include "stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
namespace EventContent {
template <typename T>
class SimpleContent {
@@ -37,7 +37,7 @@ namespace EventContent {
{}
QJsonObject toJson() const
{
- return { { key, QMatrixClient::toJson(value) } };
+ return { { key, Quotient::toJson(value) } };
}
public:
@@ -92,4 +92,4 @@ public:
QStringList aliases() const { return content().value; }
};
REGISTER_EVENT_TYPE(RoomAliasesEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/events/stateevent.cpp b/lib/events/stateevent.cpp
index bd228abd..c0bb0794 100644
--- a/lib/events/stateevent.cpp
+++ b/lib/events/stateevent.cpp
@@ -18,7 +18,7 @@
#include "stateevent.h"
-using namespace QMatrixClient;
+using namespace Quotient;
// Aside from the normal factory to instantiate StateEventBase inheritors
// StateEventBase itself can be instantiated if there's a state_key JSON key
diff --git a/lib/events/stateevent.h b/lib/events/stateevent.h
index 757c94ee..74e36e74 100644
--- a/lib/events/stateevent.h
+++ b/lib/events/stateevent.h
@@ -20,7 +20,7 @@
#include "roomevent.h"
-namespace QMatrixClient {
+namespace Quotient {
/// Make a minimal correct Matrix state event JSON
template <typename StrT>
@@ -128,12 +128,12 @@ private:
ContentT _content;
std::unique_ptr<Prev<ContentT>> _prev;
};
-} // namespace QMatrixClient
+} // namespace Quotient
namespace std {
template <>
-struct hash<QMatrixClient::StateEventKey> {
- size_t operator()(const QMatrixClient::StateEventKey& k) const Q_DECL_NOEXCEPT
+struct hash<Quotient::StateEventKey> {
+ size_t operator()(const Quotient::StateEventKey& k) const Q_DECL_NOEXCEPT
{
return qHash(k);
}
diff --git a/lib/events/typingevent.cpp b/lib/events/typingevent.cpp
index ee3d6b67..0c5fc6ba 100644
--- a/lib/events/typingevent.cpp
+++ b/lib/events/typingevent.cpp
@@ -20,7 +20,7 @@
#include <QtCore/QJsonArray>
-using namespace QMatrixClient;
+using namespace Quotient;
TypingEvent::TypingEvent(const QJsonObject& obj) : Event(typeId(), obj)
{
diff --git a/lib/events/typingevent.h b/lib/events/typingevent.h
index c8170865..d659c597 100644
--- a/lib/events/typingevent.h
+++ b/lib/events/typingevent.h
@@ -20,7 +20,7 @@
#include "event.h"
-namespace QMatrixClient {
+namespace Quotient {
class TypingEvent : public Event {
public:
DEFINE_EVENT_TYPEID("m.typing", TypingEvent)
@@ -34,4 +34,4 @@ private:
};
REGISTER_EVENT_TYPE(TypingEvent)
DEFINE_EVENTTYPE_ALIAS(Typing, TypingEvent)
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/identity/definitions/request_email_validation.cpp b/lib/identity/definitions/request_email_validation.cpp
index 131b9488..22cb0072 100644
--- a/lib/identity/definitions/request_email_validation.cpp
+++ b/lib/identity/definitions/request_email_validation.cpp
@@ -4,7 +4,7 @@
#include "request_email_validation.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<RequestEmailValidation>::dumpTo(
QJsonObject& jo, const RequestEmailValidation& pod)
diff --git a/lib/identity/definitions/request_email_validation.h b/lib/identity/definitions/request_email_validation.h
index 2496d7f5..99487073 100644
--- a/lib/identity/definitions/request_email_validation.h
+++ b/lib/identity/definitions/request_email_validation.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -39,4 +39,4 @@ struct JsonObjectConverter<RequestEmailValidation>
static void fillFrom(const QJsonObject& jo, RequestEmailValidation& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/identity/definitions/request_msisdn_validation.cpp b/lib/identity/definitions/request_msisdn_validation.cpp
index 0087d202..6024bf61 100644
--- a/lib/identity/definitions/request_msisdn_validation.cpp
+++ b/lib/identity/definitions/request_msisdn_validation.cpp
@@ -4,7 +4,7 @@
#include "request_msisdn_validation.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<RequestMsisdnValidation>::dumpTo(
QJsonObject& jo, const RequestMsisdnValidation& pod)
diff --git a/lib/identity/definitions/request_msisdn_validation.h b/lib/identity/definitions/request_msisdn_validation.h
index f8060cfc..ecccf567 100644
--- a/lib/identity/definitions/request_msisdn_validation.h
+++ b/lib/identity/definitions/request_msisdn_validation.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -43,4 +43,4 @@ struct JsonObjectConverter<RequestMsisdnValidation>
static void fillFrom(const QJsonObject& jo, RequestMsisdnValidation& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/identity/definitions/sid.cpp b/lib/identity/definitions/sid.cpp
index cc6973f2..99fe9b59 100644
--- a/lib/identity/definitions/sid.cpp
+++ b/lib/identity/definitions/sid.cpp
@@ -4,7 +4,7 @@
#include "sid.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void JsonObjectConverter<Sid>::dumpTo(QJsonObject& jo, const Sid& pod)
{
diff --git a/lib/identity/definitions/sid.h b/lib/identity/definitions/sid.h
index 752d62bb..0f7ce58a 100644
--- a/lib/identity/definitions/sid.h
+++ b/lib/identity/definitions/sid.h
@@ -6,7 +6,7 @@
#include "converters.h"
-namespace QMatrixClient
+namespace Quotient
{
// Data structures
@@ -27,4 +27,4 @@ struct JsonObjectConverter<Sid>
static void fillFrom(const QJsonObject& jo, Sid& pod);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index 5615736e..ec6b8375 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -30,7 +30,7 @@
#include <array>
-using namespace QMatrixClient;
+using namespace Quotient;
struct NetworkReplyDeleter : public QScopedPointerDeleteLater {
static inline void cleanup(QNetworkReply* reply)
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index c85d2d90..90c20c37 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -28,7 +28,7 @@
class QNetworkReply;
class QSslError;
-namespace QMatrixClient {
+namespace Quotient {
class ConnectionData;
enum class HttpVerb { Get, Put, Post, Delete };
@@ -364,4 +364,4 @@ inline bool isJobRunning(BaseJob* job)
{
return job && job->error() == BaseJob::Pending;
}
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/jobs/downloadfilejob.cpp b/lib/jobs/downloadfilejob.cpp
index 9722186c..3a03efde 100644
--- a/lib/jobs/downloadfilejob.cpp
+++ b/lib/jobs/downloadfilejob.cpp
@@ -4,7 +4,7 @@
#include <QtCore/QTemporaryFile>
#include <QtNetwork/QNetworkReply>
-using namespace QMatrixClient;
+using namespace Quotient;
class DownloadFileJob::Private {
public:
diff --git a/lib/jobs/downloadfilejob.h b/lib/jobs/downloadfilejob.h
index ebfe5a0d..fa697219 100644
--- a/lib/jobs/downloadfilejob.h
+++ b/lib/jobs/downloadfilejob.h
@@ -2,7 +2,7 @@
#include "csapi/content-repo.h"
-namespace QMatrixClient {
+namespace Quotient {
class DownloadFileJob : public GetContentJob {
public:
enum { FileError = BaseJob::UserDefinedError + 1 };
@@ -24,4 +24,4 @@ private:
void beforeAbandon(QNetworkReply*) override;
Status parseReply(QNetworkReply*) override;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/jobs/mediathumbnailjob.cpp b/lib/jobs/mediathumbnailjob.cpp
index db2bbc13..0a346392 100644
--- a/lib/jobs/mediathumbnailjob.cpp
+++ b/lib/jobs/mediathumbnailjob.cpp
@@ -18,7 +18,7 @@
#include "mediathumbnailjob.h"
-using namespace QMatrixClient;
+using namespace Quotient;
QUrl MediaThumbnailJob::makeRequestUrl(QUrl baseUrl, const QUrl& mxcUri,
QSize requestedSize)
diff --git a/lib/jobs/mediathumbnailjob.h b/lib/jobs/mediathumbnailjob.h
index df0a7f31..75e2e55a 100644
--- a/lib/jobs/mediathumbnailjob.h
+++ b/lib/jobs/mediathumbnailjob.h
@@ -22,7 +22,7 @@
#include <QtGui/QPixmap>
-namespace QMatrixClient {
+namespace Quotient {
class MediaThumbnailJob : public GetContentThumbnailJob {
public:
using GetContentThumbnailJob::makeRequestUrl;
@@ -42,4 +42,4 @@ protected:
private:
QImage _thumbnail;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/jobs/postreadmarkersjob.h b/lib/jobs/postreadmarkersjob.h
index cf482a9a..5a4d942c 100644
--- a/lib/jobs/postreadmarkersjob.h
+++ b/lib/jobs/postreadmarkersjob.h
@@ -22,7 +22,7 @@
#include <QtCore/QJsonObject>
-using namespace QMatrixClient;
+using namespace Quotient;
class PostReadMarkersJob : public BaseJob {
public:
diff --git a/lib/jobs/requestdata.cpp b/lib/jobs/requestdata.cpp
index 6ad7c007..0c70f085 100644
--- a/lib/jobs/requestdata.cpp
+++ b/lib/jobs/requestdata.cpp
@@ -6,7 +6,7 @@
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
-using namespace QMatrixClient;
+using namespace Quotient;
auto fromData(const QByteArray& data)
{
diff --git a/lib/jobs/requestdata.h b/lib/jobs/requestdata.h
index 55987a3b..020d5ef2 100644
--- a/lib/jobs/requestdata.h
+++ b/lib/jobs/requestdata.h
@@ -26,7 +26,7 @@ class QJsonArray;
class QJsonDocument;
class QIODevice;
-namespace QMatrixClient {
+namespace Quotient {
/**
* A simple wrapper that represents the request body.
* Provides a unified interface to dump an unstructured byte stream
@@ -52,4 +52,6 @@ public:
private:
std::unique_ptr<QIODevice> _source;
};
-} // namespace QMatrixClient
+} // namespace Quotient
+/// \deprecated Use namespace Quotient instead
+namespace QMatrixClient = Quotient;
diff --git a/lib/jobs/syncjob.cpp b/lib/jobs/syncjob.cpp
index f660e1b6..cd7709e1 100644
--- a/lib/jobs/syncjob.cpp
+++ b/lib/jobs/syncjob.cpp
@@ -18,7 +18,7 @@
#include "syncjob.h"
-using namespace QMatrixClient;
+using namespace Quotient;
static size_t jobId = 0;
diff --git a/lib/jobs/syncjob.h b/lib/jobs/syncjob.h
index 8f925414..df419ba8 100644
--- a/lib/jobs/syncjob.h
+++ b/lib/jobs/syncjob.h
@@ -22,7 +22,7 @@
#include "../syncdata.h"
#include "basejob.h"
-namespace QMatrixClient {
+namespace Quotient {
class SyncJob : public BaseJob {
public:
explicit SyncJob(const QString& since = {}, const QString& filter = {},
@@ -38,4 +38,4 @@ protected:
private:
SyncData d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/joinstate.h b/lib/joinstate.h
index fcf840ae..718ae3fd 100644
--- a/lib/joinstate.h
+++ b/lib/joinstate.h
@@ -22,7 +22,7 @@
#include <array>
-namespace QMatrixClient {
+namespace Quotient {
enum class JoinState : unsigned int {
Join = 0x1,
Invite = 0x2,
@@ -43,5 +43,5 @@ inline const char* toCString(JoinState js)
++index;
return JoinStateStrings[index];
}
-} // namespace QMatrixClient
-Q_DECLARE_OPERATORS_FOR_FLAGS(QMatrixClient::JoinStates)
+} // namespace Quotient
+Q_DECLARE_OPERATORS_FOR_FLAGS(Quotient::JoinStates)
diff --git a/lib/logging.h b/lib/logging.h
index 24799752..3d13569a 100644
--- a/lib/logging.h
+++ b/lib/logging.h
@@ -28,7 +28,7 @@ Q_DECLARE_LOGGING_CATEGORY(EPHEMERAL)
Q_DECLARE_LOGGING_CATEGORY(JOBS)
Q_DECLARE_LOGGING_CATEGORY(SYNCJOB)
-namespace QMatrixClient {
+namespace Quotient {
// QDebug manipulators
using QDebugManip = QDebug (*)(QDebug);
@@ -75,7 +75,9 @@ inline qint64 profilerMinNsecs()
#endif
* 1000;
}
-} // namespace QMatrixClient
+} // namespace Quotient
+/// \deprecated Use namespace Quotient instead
+namespace QMatrixClient = Quotient;
inline QDebug operator<<(QDebug debug_object, const QElapsedTimer& et)
{
diff --git a/lib/networkaccessmanager.cpp b/lib/networkaccessmanager.cpp
index 7bff654c..8ee080bf 100644
--- a/lib/networkaccessmanager.cpp
+++ b/lib/networkaccessmanager.cpp
@@ -21,7 +21,7 @@
#include <QtCore/QCoreApplication>
#include <QtNetwork/QNetworkReply>
-using namespace QMatrixClient;
+using namespace Quotient;
class NetworkAccessManager::Private {
public:
diff --git a/lib/networkaccessmanager.h b/lib/networkaccessmanager.h
index dfa388f0..a678b80f 100644
--- a/lib/networkaccessmanager.h
+++ b/lib/networkaccessmanager.h
@@ -22,7 +22,7 @@
#include <memory>
-namespace QMatrixClient {
+namespace Quotient {
class NetworkAccessManager : public QNetworkAccessManager {
Q_OBJECT
public:
@@ -43,4 +43,4 @@ private:
class Private;
std::unique_ptr<Private> d;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/networksettings.cpp b/lib/networksettings.cpp
index f5655975..cb071483 100644
--- a/lib/networksettings.cpp
+++ b/lib/networksettings.cpp
@@ -18,7 +18,7 @@
#include "networksettings.h"
-using namespace QMatrixClient;
+using namespace Quotient;
void NetworkSettings::setupApplicationProxy() const
{
diff --git a/lib/networksettings.h b/lib/networksettings.h
index 75bf726d..a82a44d0 100644
--- a/lib/networksettings.h
+++ b/lib/networksettings.h
@@ -24,7 +24,7 @@
Q_DECLARE_METATYPE(QNetworkProxy::ProxyType)
-namespace QMatrixClient {
+namespace Quotient {
class NetworkSettings : public SettingsGroup {
Q_OBJECT
QMC_DECLARE_SETTING(QNetworkProxy::ProxyType, proxyType, setProxyType)
diff --git a/lib/qt_connection_util.h b/lib/qt_connection_util.h
index 94c1ec60..159e7522 100644
--- a/lib/qt_connection_util.h
+++ b/lib/qt_connection_util.h
@@ -22,7 +22,7 @@
#include <QtCore/QPointer>
-namespace QMatrixClient {
+namespace Quotient {
namespace _impl {
template <typename SenderT, typename SignalT, typename ContextT, typename... ArgTs>
inline QMetaObject::Connection
@@ -102,4 +102,4 @@ public:
private:
QObject* subscriber;
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/room.cpp b/lib/room.cpp
index 52f86616..d8fee5aa 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -71,7 +71,7 @@
#include <message.h> // QtOlm
#include <session.h> // QtOlm
-using namespace QMatrixClient;
+using namespace Quotient;
using namespace std::placeholders;
using std::move;
#if !(defined __GLIBCXX__ && __GLIBCXX__ <= 20150123)
@@ -1085,7 +1085,7 @@ QUrl Room::fileSource(const QString& id) const
QString Room::prettyPrint(const QString& plainText) const
{
- return QMatrixClient::prettyPrint(plainText);
+ return Quotient::prettyPrint(plainText);
}
QList<User*> Room::usersTyping() const { return d->usersTyping; }
diff --git a/lib/room.h b/lib/room.h
index d6fb8a61..8448815d 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -35,7 +35,7 @@
#include <memory>
#include <utility>
-namespace QMatrixClient {
+namespace Quotient {
class Event;
class Avatar;
class SyncRoomData;
@@ -423,7 +423,7 @@ public:
Q_INVOKABLE QUrl fileSource(const QString& id) const;
/** Pretty-prints plain text into HTML
- * As of now, it's exactly the same as QMatrixClient::prettyPrint();
+ * As of now, it's exactly the same as Quotient::prettyPrint();
* in the future, it will also linkify room aliases, mxids etc.
* using the room context.
*/
@@ -668,6 +668,6 @@ public:
private:
const Room* room;
};
-} // namespace QMatrixClient
-Q_DECLARE_METATYPE(QMatrixClient::FileTransferInfo)
-Q_DECLARE_OPERATORS_FOR_FLAGS(QMatrixClient::Room::Changes)
+} // namespace Quotient
+Q_DECLARE_METATYPE(Quotient::FileTransferInfo)
+Q_DECLARE_OPERATORS_FOR_FLAGS(Quotient::Room::Changes)
diff --git a/lib/settings.cpp b/lib/settings.cpp
index 1278fe33..9c61ab5e 100644
--- a/lib/settings.cpp
+++ b/lib/settings.cpp
@@ -4,7 +4,7 @@
#include <QtCore/QUrl>
-using namespace QMatrixClient;
+using namespace Quotient;
QString Settings::legacyOrganizationName {};
QString Settings::legacyApplicationName {};
diff --git a/lib/settings.h b/lib/settings.h
index 427f5494..4dcbbea0 100644
--- a/lib/settings.h
+++ b/lib/settings.h
@@ -24,7 +24,7 @@
class QVariant;
-namespace QMatrixClient {
+namespace Quotient {
class Settings : public QSettings {
Q_OBJECT
public:
@@ -148,4 +148,4 @@ public:
void setEncryptionAccountPickle(const QByteArray& encryptionAccountPickle);
Q_INVOKABLE void clearEncryptionAccountPickle();
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/syncdata.cpp b/lib/syncdata.cpp
index 0c39b438..c784cd7d 100644
--- a/lib/syncdata.cpp
+++ b/lib/syncdata.cpp
@@ -23,7 +23,7 @@
#include <QtCore/QFile>
#include <QtCore/QFileInfo>
-using namespace QMatrixClient;
+using namespace Quotient;
const QString SyncRoomData::UnreadCountKey =
QStringLiteral("x-qmatrixclient.unread_count");
@@ -42,7 +42,7 @@ bool RoomSummary::merge(const RoomSummary& other)
| heroes.merge(other.heroes);
}
-QDebug QMatrixClient::operator<<(QDebug dbg, const RoomSummary& rs)
+QDebug Quotient::operator<<(QDebug dbg, const RoomSummary& rs)
{
QDebugStateSaver _(dbg);
QStringList sl;
diff --git a/lib/syncdata.h b/lib/syncdata.h
index ad9902e4..d55438d7 100644
--- a/lib/syncdata.h
+++ b/lib/syncdata.h
@@ -22,7 +22,7 @@
#include "events/stateevent.h"
-namespace QMatrixClient {
+namespace Quotient {
/// Room summary, as defined in MSC688
/**
* Every member of this structure is an Omittable; as per the MSC, only
@@ -111,4 +111,4 @@ private:
static QJsonObject loadJson(const QString& fileName);
};
-} // namespace QMatrixClient
+} // namespace Quotient
diff --git a/lib/user.cpp b/lib/user.cpp
index 0705aee7..5dea3942 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -37,7 +37,7 @@
#include <functional>
-using namespace QMatrixClient;
+using namespace Quotient;
using namespace std::placeholders;
using std::move;
diff --git a/lib/user.h b/lib/user.h
index 779efb34..c9e3dbc1 100644
--- a/lib/user.h
+++ b/lib/user.h
@@ -23,7 +23,7 @@
#include <QtCore/QObject>
#include <QtCore/QString>
-namespace QMatrixClient {
+namespace Quotient {
class Connection;
class Room;
class RoomMemberEvent;
@@ -160,5 +160,5 @@ private:
class Private;
QScopedPointer<Private> d;
};
-} // namespace QMatrixClient
-Q_DECLARE_METATYPE(QMatrixClient::User*)
+} // namespace Quotient
+Q_DECLARE_METATYPE(Quotient::User*)
diff --git a/lib/util.cpp b/lib/util.cpp
index 1919e811..be9656f8 100644
--- a/lib/util.cpp
+++ b/lib/util.cpp
@@ -32,7 +32,7 @@ static const auto RegExpOptions =
| QRegularExpression::UseUnicodePropertiesOption;
// Converts all that looks like a URL into HTML links
-void QMatrixClient::linkifyUrls(QString& htmlEscapedText)
+void Quotient::linkifyUrls(QString& htmlEscapedText)
{
// Note: outer parentheses are a part of C++ raw string delimiters, not of
// the regex (see http://en.cppreference.com/w/cpp/language/string_literal).
@@ -70,7 +70,7 @@ void QMatrixClient::linkifyUrls(QString& htmlEscapedText)
QStringLiteral(R"(\1<a href="https://matrix.to/#/\2">\2</a>)"));
}
-QString QMatrixClient::sanitized(const QString& plainText)
+QString Quotient::sanitized(const QString& plainText)
{
auto text = plainText;
text.remove(QChar(0x202e)); // RLO
@@ -79,7 +79,7 @@ QString QMatrixClient::sanitized(const QString& plainText)
return text;
}
-QString QMatrixClient::prettyPrint(const QString& plainText)
+QString Quotient::prettyPrint(const QString& plainText)
{
auto pt = plainText.toHtmlEscaped();
linkifyUrls(pt);
@@ -88,7 +88,7 @@ QString QMatrixClient::prettyPrint(const QString& plainText)
+ QStringLiteral("</span>");
}
-QString QMatrixClient::cacheLocation(const QString& dirName)
+QString Quotient::cacheLocation(const QString& dirName)
{
const QString cachePath =
QStandardPaths::writableLocation(QStandardPaths::CacheLocation) % '/'
@@ -99,7 +99,7 @@ QString QMatrixClient::cacheLocation(const QString& dirName)
return cachePath;
}
-qreal QMatrixClient::stringToHueF(const QString& string)
+qreal Quotient::stringToHueF(const QString& string)
{
Q_ASSERT(!string.isEmpty());
QByteArray hash = QCryptographicHash::hash(string.toUtf8(),
@@ -118,7 +118,7 @@ static const auto ServerPartRegEx = QStringLiteral(
"(?::(\\d{1,5}))?" // Optional port
);
-QString QMatrixClient::serverPart(const QString& mxId)
+QString Quotient::serverPart(const QString& mxId)
{
static QString re = "^[@!#$+].+?:(" // Localpart and colon
% ServerPartRegEx % ")$";
@@ -135,7 +135,7 @@ QString QMatrixClient::serverPart(const QString& mxId)
# pragma clang diagnostic push
# pragma ide diagnostic ignored "OCSimplifyInspection"
#endif
-using namespace QMatrixClient;
+using namespace Quotient;
int f();
static_assert(std::is_same<fn_return_t<decltype(f)>, int>::value,
diff --git a/lib/util.h b/lib/util.h
index d055fa46..d94c7321 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -63,7 +63,7 @@ static void qAsConst(const T&&) Q_DECL_EQ_DELETE;
# define BROKEN_INITIALIZER_LISTS
#endif
-namespace QMatrixClient {
+namespace Quotient {
// The below enables pretty-printing of enums in logs
#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0))
# define REGISTER_ENUM(EnumName) Q_ENUM(EnumName)
@@ -330,4 +330,6 @@ qreal stringToHueF(const QString& string);
/** Extract the serverpart from MXID */
QString serverPart(const QString& mxId);
-} // namespace QMatrixClient
+} // namespace Quotient
+/// \deprecated Use namespace Quotient instead
+namespace QMatrixClient = Quotient; \ No newline at end of file