summary refs log tree commit diff
path: root/include/MatrixClient.h
blob: 7ea5e0b72554358ad747cce50b9f5e3ccebc4fdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include <QMetaType>

#include <mtx/responses.hpp>
#include <mtxclient/http/client.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(std::string)
Q_DECLARE_METATYPE(std::vector<std::string>)

namespace http {
namespace v2 {
mtx::http::Client *
client();

bool
is_logged_in();
}

//! Initialize the http module
void
init();
}