Akonadi
resourcesynchronizationjob.cpp
50ResourceSynchronizationJob::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);
125 disconnect(interface.get(), &ResourceIface::synchronized, this, &ResourceSynchronizationJobPrivate::slotSynchronized);
Represents one agent instance and takes care of communication with it.
Definition akonadicontrol/agentinstance.h:35
void synchronize()
Triggers the agent instance to start synchronization.
Definition core/agentinstance.cpp:97
bool isValid() const
Returns whether the agent instance object is valid.
Definition core/agentinstance.cpp:32
QString identifier() const
Returns the unique identifier of the agent instance.
void synchronizeCollectionTree()
Triggers a synchronization of the collection tree by the given agent instance.
Definition core/agentinstance.cpp:102
static AgentManager * self()
Returns the global instance of the agent manager.
Definition core/agentmanager.cpp:360
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:390
bool collectionTreeOnly() const
Returns whether a full synchronization will be done, or just the collection tree (without items).
Definition resourcesynchronizationjob.cpp:74
ResourceSynchronizationJob(const AgentInstance &instance, QObject *parent=nullptr)
Creates a new synchronization job for the given resource.
Definition resourcesynchronizationjob.cpp:50
AgentInstance resource() const
Returns the resource that has been synchronized.
Definition resourcesynchronizationjob.cpp:155
~ResourceSynchronizationJob() override
Destroys the synchronization job.
void setCollectionTreeOnly(bool collectionTreeOnly)
Sets the collectionTreeOnly property.
Definition resourcesynchronizationjob.cpp:79
void setErrorText(const QString &errorText)
void emitResult()
void setError(int errorCode)
QString i18n(const char *text, const TYPE &arg...)
Helper integration between Akonadi and Qt.
QDBusConnection sessionBus()
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void setInterval(int msec)
void setSingleShot(bool singleShot)
void start()
void stop()
void timeout()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:57:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:57:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.