libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
syncjob.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2016 Kitsune Ral <Kitsune-Ral@users.sf.net>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include "../csapi/definitions/sync_filter.h"
7#include "../syncdata.h"
8#include "basejob.h"
9
10namespace Quotient {
12public:
13 static constexpr auto defaultTimeout = std::chrono::seconds(30);
14 static constexpr auto defaultTimeoutMillis =
16
17 explicit SyncJob(const QString& since = {}, const QString& filter = {},
18 int timeout = defaultTimeoutMillis, const QString& presence = {});
20 const QString& presence = {});
21
22 SyncData takeData() { return std::move(d); }
23
24protected:
26
27private:
28 SyncData d;
29};
30} // namespace Quotient
#define QUOTIENT_API