From 0e814da91c8e041897a4c3f7e6e9234bbc7c6f7a Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 17 Jul 2018 16:37:25 +0300 Subject: Move all files under src/ --- src/MatrixClient.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/MatrixClient.cpp (limited to 'src/MatrixClient.cpp') diff --git a/src/MatrixClient.cpp b/src/MatrixClient.cpp new file mode 100644 index 00000000..e41c66c1 --- /dev/null +++ b/src/MatrixClient.cpp @@ -0,0 +1,38 @@ +#include "MatrixClient.h" + +#include + +namespace { +auto client_ = std::make_shared(); +} + +namespace http { + +mtx::http::Client * +client() +{ + return client_.get(); +} + +bool +is_logged_in() +{ + return !client_->access_token().empty(); +} + +void +init() +{ + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType>(); + qRegisterMetaType>(); +} + +} // namespace http -- cgit 1.5.1