Akonadi

resourcesynchronizationjob.h
1 /*
2  * SPDX-FileCopyrightText: 2009 Volker Krause <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.1-or-later
5  */
6 
7 #ifndef AKONADI_RESOURCESYNCHRONIZATIONJOB_H
8 #define AKONADI_RESOURCESYNCHRONIZATIONJOB_H
9 
10 #include "akonadicore_export.h"
11 
12 #include <KJob>
13 
14 namespace Akonadi
15 {
16 
17 class AgentInstance;
18 class ResourceSynchronizationJobPrivate;
19 
49 class AKONADICORE_EXPORT ResourceSynchronizationJob : public KJob
50 {
51  Q_OBJECT
52 
53 public:
59  explicit ResourceSynchronizationJob(const AgentInstance &instance, QObject *parent = nullptr);
60 
64  ~ResourceSynchronizationJob() override;
65 
72  Q_REQUIRED_RESULT bool collectionTreeOnly() const;
73 
80  void setCollectionTreeOnly(bool collectionTreeOnly);
81 
85  Q_REQUIRED_RESULT AgentInstance resource() const;
86 
87  /* reimpl */
88  void start() override;
89 
90  /*
91  * @since 5.1
92  */
93  void setTimeoutCountLimit(int count);
94  Q_REQUIRED_RESULT int timeoutCountLimit() const;
95 
96 private:
97  //@cond PRIVATE
98  ResourceSynchronizationJobPrivate *const d;
99  friend class ResourceSynchronizationJobPrivate;
100  //@endcond
101 };
102 
103 }
104 
105 #endif
Job that synchronizes a resource.
Represents one agent instance and takes care of communication with it.
Helper integration between Akonadi and Qt.
A representation of an agent instance.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:17:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.