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
10
namespace
Quotient
{
11
class
QUOTIENT_API
SyncJob
:
public
BaseJob
{
12
public
:
13
static
constexpr
auto
defaultTimeout
=
std
::
chrono
::
seconds
(30);
14
static
constexpr
auto
defaultTimeoutMillis
=
15
std
::
chrono
::
milliseconds
(
defaultTimeout
).
count
();
16
17
explicit
SyncJob
(
const
QString
&
since
= {},
const
QString
&
filter
= {},
18
int
timeout
=
defaultTimeoutMillis
,
const
QString
&
presence
= {});
19
explicit
SyncJob
(
const
QString
&
since
,
const
Filter
&
filter
,
int
timeout
=
defaultTimeoutMillis
,
20
const
QString
&
presence
= {});
21
22
SyncData
takeData
() {
return
std
::
move
(
d
); }
23
24
protected
:
25
Status
prepareResult
()
override
;
26
27
private
:
28
SyncData
d
;
29
};
30
}
// namespace Quotient
Quotient::SyncJob
Definition
syncjob.h:11
Quotient
Definition
accountregistry.h:13
QUOTIENT_API
#define QUOTIENT_API
Definition
quotient_export.h:22
Quotient
jobs
syncjob.h
Generated by
1.9.8