Akonadi
resourcesynchronizationjob.cpp
50 ResourceSynchronizationJob::ResourceSynchronizationJob(const AgentInstance &instance, QObject *parent)
94 interface = std::make_unique<ResourceIface>(ServerManager::agentServiceName(ServerManager::Resource, instance.identifier()),
98 connect(interface.get(), &ResourceIface::collectionTreeSynchronized, this, &ResourceSynchronizationJobPrivate::slotSynchronized);
100 connect(interface.get(), &ResourceIface::synchronized, this, &ResourceSynchronizationJobPrivate::slotSynchronized);
113 q->setErrorText(i18n("Unable to obtain D-Bus interface for resource '%1'", instance.identifier()));
123 disconnect(interface.get(), &ResourceIface::collectionTreeSynchronized, this, &ResourceSynchronizationJobPrivate::slotSynchronized);
QString identifier() const
Returns the unique identifier of the agent instance.
Definition: core/agentinstance.cpp:42
bool collectionTreeOnly() const
Returns whether a full synchronization will be done, or just the collection tree (without items).
Definition: resourcesynchronizationjob.cpp:74
void setCollectionTreeOnly(bool collectionTreeOnly)
Sets the collectionTreeOnly property.
Definition: resourcesynchronizationjob.cpp:79
AgentInstance resource() const
Returns the resource that has been synchronized.
Definition: resourcesynchronizationjob.cpp:155
ResourceSynchronizationJob(const AgentInstance &instance, QObject *parent=nullptr)
Creates a new synchronization job for the given resource.
Definition: resourcesynchronizationjob.cpp:50
AgentInstance instance(const QString &identifier) const
Returns the agent instance with the given identifier or an invalid agent instance if the identifier d...
Definition: core/agentmanager.cpp:385
QString i18n(const char *text, const TYPE &arg...)
QDBusConnection sessionBus()
~ResourceSynchronizationJob() override
Destroys the synchronization job.
Represents one agent instance and takes care of communication with it.
Definition: akonadicontrol/agentinstance.h:34
void timeout()
static AgentManager * self()
Returns the global instance of the agent manager.
Definition: core/agentmanager.cpp:355
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:52:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:52:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.