summary refs log tree commit diff
path: root/src/MatrixClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MatrixClient.cpp')
-rw-r--r--src/MatrixClient.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/MatrixClient.cpp b/src/MatrixClient.cpp

index 12d7ac91..b69ba480 100644 --- a/src/MatrixClient.cpp +++ b/src/MatrixClient.cpp
@@ -2,6 +2,26 @@ #include <memory> +#include <QMetaType> +#include <QObject> +#include <QString> + +#include "nlohmann/json.hpp" +#include <mtx/responses.hpp> + +Q_DECLARE_METATYPE(mtx::responses::Login) +Q_DECLARE_METATYPE(mtx::responses::Messages) +Q_DECLARE_METATYPE(mtx::responses::Notifications) +Q_DECLARE_METATYPE(mtx::responses::Rooms) +Q_DECLARE_METATYPE(mtx::responses::Sync) +Q_DECLARE_METATYPE(mtx::responses::JoinedGroups) +Q_DECLARE_METATYPE(mtx::responses::GroupProfile) + +Q_DECLARE_METATYPE(nlohmann::json) +Q_DECLARE_METATYPE(std::string) +Q_DECLARE_METATYPE(std::vector<std::string>) +Q_DECLARE_METATYPE(std::vector<QString>) + namespace { auto client_ = std::make_shared<mtx::http::Client>(); }