2017-05-16 20:46:45 +02:00
|
|
|
#pragma once
|
2017-04-06 01:06:42 +02:00
|
|
|
|
2018-06-09 15:03:14 +02:00
|
|
|
#include <QMetaType>
|
2018-03-07 20:23:57 +01:00
|
|
|
|
2018-06-09 15:03:14 +02:00
|
|
|
#include <mtx/responses.hpp>
|
|
|
|
#include <mtxclient/http/client.hpp>
|
2018-05-16 19:40:42 +02:00
|
|
|
|
2018-06-09 15:03:14 +02:00
|
|
|
Q_DECLARE_METATYPE(mtx::responses::Login)
|
|
|
|
Q_DECLARE_METATYPE(mtx::responses::Messages)
|
|
|
|
Q_DECLARE_METATYPE(mtx::responses::Notifications)
|
|
|
|
Q_DECLARE_METATYPE(mtx::responses::Rooms)
|
2018-04-21 15:34:50 +02:00
|
|
|
Q_DECLARE_METATYPE(mtx::responses::Sync)
|
2018-06-09 15:03:14 +02:00
|
|
|
Q_DECLARE_METATYPE(std::string)
|
2018-06-10 19:03:45 +02:00
|
|
|
Q_DECLARE_METATYPE(std::vector<std::string>)
|
2018-05-08 17:43:56 +02:00
|
|
|
|
|
|
|
namespace http {
|
2018-06-09 15:03:14 +02:00
|
|
|
namespace v2 {
|
|
|
|
mtx::http::Client *
|
2018-05-08 17:43:56 +02:00
|
|
|
client();
|
2018-06-10 19:03:45 +02:00
|
|
|
|
|
|
|
bool
|
|
|
|
is_logged_in();
|
2018-05-08 17:43:56 +02:00
|
|
|
}
|
2018-05-16 19:40:42 +02:00
|
|
|
|
2018-06-09 15:03:14 +02:00
|
|
|
//! Initialize the http module
|
|
|
|
void
|
|
|
|
init();
|
2018-05-16 19:40:42 +02:00
|
|
|
}
|