akonadi
Akonadi::JobPrivate Class Reference
#include <job_p.h>
Inheritance diagram for Akonadi::JobPrivate:

Public Member Functions | |
| JobPrivate (Job *parent) | |
| void | delayedEmitResult () |
| virtual void | doUpdateItemRevision (Akonadi::Item::Id, int oldRevision, int newRevision) |
| void | handleResponse (const QByteArray &tag, const QByteArray &data) |
| void | init (QObject *parent) |
| void | itemRevisionChanged (Akonadi::Item::Id itemId, int oldRevision, int newRevision) |
| virtual QString | jobDebuggingString () const |
| void | lostConnection () |
| QByteArray | newTag () |
| int | protocolVersion () const |
| void | signalCreationToJobTracker () |
| void | signalStartedToJobTracker () |
| void | slotSubJobAboutToStart (Akonadi::Job *) |
| void | startNext () |
| void | startQueued () |
| QByteArray | tag () const |
| void | updateItemRevision (Akonadi::Item::Id itemId, int oldRevision, int newRevision) |
| void | writeData (const QByteArray &data) |
Public Attributes | |
| Job * | mCurrentSubJob |
| Job * | mParentJob |
| Session * | mSession |
| bool | mStarted |
| QByteArray | mTag |
| bool | mWriteFinished |
| Job * | q_ptr |
Detailed Description
Member Function Documentation
|
virtual |
Overwrite this if your job does operations with conflict detection and update the item revisions if your items are affected.
The default implementation does nothing.
| void Akonadi::JobPrivate::itemRevisionChanged | ( | Akonadi::Item::Id | itemId, |
| int | oldRevision, | ||
| int | newRevision | ||
| ) |
Notify following jobs about item revision changes.
This is used to avoid phantom conflicts between pipelined modify jobs on the same item.
- Parameters
-
itemID the id of the item which has changed oldRevision the old item revision newRevision the new item revision
| QByteArray Akonadi::JobPrivate::newTag | ( | ) |
Returns a new unique command tag for communication with the backend.
| QByteArray Akonadi::JobPrivate::tag | ( | ) | const |
Return the tag used for the request.
| void Akonadi::JobPrivate::updateItemRevision | ( | Akonadi::Item::Id | itemId, |
| int | oldRevision, | ||
| int | newRevision | ||
| ) |
Propagate item revision changes to this job and its sub-jobs.
| void Akonadi::JobPrivate::writeData | ( | const QByteArray & | data | ) |
Sends raw data to the backend.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference