13#include "csapi/create_room.h"
14#include "csapi/login.h"
15#include "csapi/content-repo.h"
17#include "e2ee/qolmoutboundsession.h"
19#include "events/accountdataevents.h"
20#include "jobs/jobhandle.h"
21#include "jobs/syncjob.h"
24#include <QtCore/QObject>
25#include <QtCore/QSize>
30Q_DECLARE_METATYPE(Quotient::GetLoginFlowsJob::LoginFlow)
32class TestCrossSigning;
43class GetCapabilitiesJob;
47class MediaThumbnailJob;
54struct EncryptedFileMetadata;
57class QOlmInboundGroupSession;
70inline bool operator==(
const LoginFlow& lhs,
const LoginFlow& rhs)
72 return lhs.type == rhs.type;
75inline bool operator!=(
const LoginFlow& lhs,
const LoginFlow& rhs)
83 std::function<Room*(Connection*,
const QString&,
JoinState)>;
84using user_factory_t = std::function<User*(Connection*,
const QString&)>;
90template <
typename T = Room>
93 return new T(c, id, js);
100template <
typename T = User>
267 [[
deprecated(
"Use the overload accepting UserId instead")]]
296 [[
deprecated(
"Check the result returned by Connection::loginFlows() instead")]]
411 [[
deprecated(
"Use capabilitiesReady() instead; don't forget to negate the returned value")]]
600 template <
typename T>
607 template <
typename T>
759 [[
deprecated(
"This method is experimental and may be removed any time")]]
992Q_DECLARE_METATYPE(
Quotient::DirectChatsMap)
993Q_DECLARE_METATYPE(Quotient::IgnoredUsersList)
bool operator!=(const LoginFlow &lhs, const LoginFlow &rhs)
auto defaultRoomFactory(Connection *c, const QString &id, JoinState js)
The default factory to create room objects.
bool operator==(const LoginFlow &lhs, const LoginFlow &rhs)
JoinState
Local user join-state names.
auto defaultUserFactory(Connection *c, const QString &id)
The default factory to create user objects.