Skip to content
Snippets Groups Projects
MatrixClient.cpp 968 B
Newer Older
  • Learn to ignore specific revisions
  • Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    #include "MatrixClient.h"
    
    auto client_ = std::make_shared<mtx::http::Client>();
    
    mtx::http::Client *
    
            return client_.get();
    
            return !client_->access_token().empty();
    
            qRegisterMetaType<mtx::responses::Login>();
            qRegisterMetaType<mtx::responses::Messages>();
            qRegisterMetaType<mtx::responses::Notifications>();
            qRegisterMetaType<mtx::responses::Rooms>();
            qRegisterMetaType<mtx::responses::Sync>();
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
            qRegisterMetaType<mtx::responses::JoinedGroups>();
            qRegisterMetaType<mtx::responses::GroupProfile>();
    
            qRegisterMetaType<std::string>();
    
            qRegisterMetaType<nlohmann::json>();
    
            qRegisterMetaType<std::vector<std::string>>();
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
            qRegisterMetaType<std::vector<QString>>();
    
            qRegisterMetaType<std::map<QString, bool>>("std::map<QString, bool>");
    
    } // namespace http