akonadi
#include <job_p.h>
Public Member Functions | |
JobPrivate (Job *parent) | |
virtual void | aboutToFinish () |
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 |
This method is called right before result() and finished() signals are emitted.
Overwrite this method in your job if you need to emit some signals or process some data before the job finishes.
Default implementation does nothing.
|
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:
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.