akonadi
#include <resourcesynchronizationjob.h>
Inherits KJob.
Public Member Functions | |
ResourceSynchronizationJob (const AgentInstance &instance, QObject *parent=0) | |
~ResourceSynchronizationJob () | |
bool | collectionTreeOnly () const |
AgentInstance | resource () const |
void | setCollectionTreeOnly (bool collectionTreeOnly) |
void | start () |
Detailed Description
Job that synchronizes a resource.
This job will trigger a resource to synchronize the backend it is responsible for (e.g. a local file or a groupware server) with the Akonadi storage.
If you only want to trigger the synchronization without being interested in the result, using Akonadi::AgentInstance::synchronize() is enough. If you want to wait until it's finished, use this class.
Example:
- Note
- This is a KJob, not an Akonadi::Job, so it won't auto-start!
- Since
- 4.4
Definition at line 59 of file resourcesynchronizationjob.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new synchronization job for the given resource.
- Parameters
-
instance The resource instance to synchronize.
Definition at line 63 of file resourcesynchronizationjob.cpp.
Akonadi::ResourceSynchronizationJob::~ResourceSynchronizationJob | ( | ) |
Destroys the synchronization job.
Definition at line 74 of file resourcesynchronizationjob.cpp.
Member Function Documentation
bool Akonadi::ResourceSynchronizationJob::collectionTreeOnly | ( | ) | const |
Returns whether a full synchronization will be done, or just the collection tree (without items).
The default is false
, i.e. a full sync will be requested.
- Since
- 4.8
Definition at line 84 of file resourcesynchronizationjob.cpp.
AgentInstance Akonadi::ResourceSynchronizationJob::resource | ( | ) | const |
Returns the resource that has been synchronized.
Definition at line 164 of file resourcesynchronizationjob.cpp.
void Akonadi::ResourceSynchronizationJob::setCollectionTreeOnly | ( | bool | collectionTreeOnly | ) |
Sets the collectionTreeOnly property.
- Parameters
-
collectionTreeOnly If set, only the collection tree will be synchronized.
- Since
- 4.8
Definition at line 89 of file resourcesynchronizationjob.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.