Change indentation to 4 spaces
This commit is contained in:
parent
e118f3882d
commit
cfca7157b9
165 changed files with 23146 additions and 23975 deletions
|
|
@ -37,31 +37,31 @@ namespace http {
|
|||
mtx::http::Client *
|
||||
client()
|
||||
{
|
||||
return client_.get();
|
||||
return client_.get();
|
||||
}
|
||||
|
||||
bool
|
||||
is_logged_in()
|
||||
{
|
||||
return !client_->access_token().empty();
|
||||
return !client_->access_token().empty();
|
||||
}
|
||||
|
||||
void
|
||||
init()
|
||||
{
|
||||
qRegisterMetaType<mtx::responses::Login>();
|
||||
qRegisterMetaType<mtx::responses::Messages>();
|
||||
qRegisterMetaType<mtx::responses::Notifications>();
|
||||
qRegisterMetaType<mtx::responses::Rooms>();
|
||||
qRegisterMetaType<mtx::responses::Sync>();
|
||||
qRegisterMetaType<mtx::responses::JoinedGroups>();
|
||||
qRegisterMetaType<mtx::responses::GroupProfile>();
|
||||
qRegisterMetaType<std::string>();
|
||||
qRegisterMetaType<nlohmann::json>();
|
||||
qRegisterMetaType<std::vector<std::string>>();
|
||||
qRegisterMetaType<std::vector<QString>>();
|
||||
qRegisterMetaType<std::map<QString, bool>>("std::map<QString, bool>");
|
||||
qRegisterMetaType<std::set<QString>>();
|
||||
qRegisterMetaType<mtx::responses::Login>();
|
||||
qRegisterMetaType<mtx::responses::Messages>();
|
||||
qRegisterMetaType<mtx::responses::Notifications>();
|
||||
qRegisterMetaType<mtx::responses::Rooms>();
|
||||
qRegisterMetaType<mtx::responses::Sync>();
|
||||
qRegisterMetaType<mtx::responses::JoinedGroups>();
|
||||
qRegisterMetaType<mtx::responses::GroupProfile>();
|
||||
qRegisterMetaType<std::string>();
|
||||
qRegisterMetaType<nlohmann::json>();
|
||||
qRegisterMetaType<std::vector<std::string>>();
|
||||
qRegisterMetaType<std::vector<QString>>();
|
||||
qRegisterMetaType<std::map<QString, bool>>("std::map<QString, bool>");
|
||||
qRegisterMetaType<std::set<QString>>();
|
||||
}
|
||||
|
||||
} // namespace http
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue