blob: 830a7c718ea70e32362361796f3ad571d036520e (
plain)
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
|
// SPDX-FileCopyrightText: 2016 Kitsune Ral <Kitsune-Ral@users.sf.net>
// SPDX-License-Identifier: LGPL-2.1-or-later
#pragma once
#include "../csapi/definitions/sync_filter.h"
#include "../syncdata.h"
#include "basejob.h"
namespace Quotient {
class SyncJob : public BaseJob {
public:
explicit SyncJob(const QString& since = {}, const QString& filter = {},
int timeout = -1, const QString& presence = {});
explicit SyncJob(const QString& since, const Filter& filter,
int timeout = -1, const QString& presence = {});
SyncData&& takeData() { return std::move(d); }
protected:
Status prepareResult() override;
private:
SyncData d;
};
} // namespace Quotient
|