akonadi
job.cpp
112 if (DBusConnectionPool::threadConnection().interface()->isServiceRegistered(QLatin1String("org.kde.akonadiconsole"))) {
225 Q_ASSERT_X(!mWriteFinished, "Job::writeData()", "Calling writeData() after emitting writeFinished()");
229 void JobPrivate::itemRevisionChanged(Akonadi::Item::Id itemId, int oldRevision, int newRevision)
246 void JobPrivate::doUpdateItemRevision(Akonadi::Item::Id itemId, int oldRevision, int newRevision)
void emitWriteFinished()
Call this method to indicate that this job will not call writeData() again.
Definition: job.cpp:370
void start()
Jobs are started automatically once entering the event loop again, no need to explicitly call this.
Definition: job.cpp:286
void updateItemRevision(Akonadi::Item::Id itemId, int oldRevision, int newRevision)
Propagate item revision changes to this job and its sub-jobs.
void itemRevisionChanged(Akonadi::Item::Id itemId, int oldRevision, int newRevision)
Notify following jobs about item revision changes.
virtual QString errorString() const
Returns the error string, if there has been an error, an empty string otherwise.
Definition: job.cpp:301
static Session * defaultSession()
Returns the default session for this thread.
Definition: session.cpp:496
void writeFinished(Akonadi::Job *job)
This signal is emitted if the job has finished all write operations, ie.
virtual void doUpdateItemRevision(Akonadi::Item::Id, int oldRevision, int newRevision)
Overwrite this if your job does operations with conflict detection and update the item revisions if y...
QByteArray newTag()
Returns a new unique command tag for communication with the backend.
virtual void aboutToFinish()
This method is called right before result() and finished() signals are emitted.
Definition: job_p.h:32
void aboutToStart(Akonadi::Job *job)
This signal is emitted directly before the job will be started.
virtual void doHandleResponse(const QByteArray &tag, const QByteArray &data)
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
Definition: job.cpp:348
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.