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
Constructor & Destructor Documentation
◆ JobPrivate()
|
inlineexplicit |
◆ ~JobPrivate()
Member Function Documentation
◆ aboutToFinish()
|
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.
◆ doUpdateItemRevision()
|
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.
◆ itemRevisionChanged()
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
◆ jobDebuggingString()
|
inlinevirtual |
◆ newTag()
QByteArray Akonadi::JobPrivate::newTag | ( | ) |
Returns a new unique command tag for communication with the backend.
◆ tag()
QByteArray Akonadi::JobPrivate::tag | ( | ) | const |
Return the tag used for the request.
◆ updateItemRevision()
void Akonadi::JobPrivate::updateItemRevision | ( | Akonadi::Item::Id | itemId, |
int | oldRevision, | ||
int | newRevision ) |
Propagate item revision changes to this job and its sub-jobs.
◆ writeData()
void Akonadi::JobPrivate::writeData | ( | const QByteArray & | data | ) |
Sends raw data to the backend.
Member Data Documentation
◆ mCurrentSubJob
◆ mParentJob
◆ mSession
◆ mStarted
◆ mTag
◆ mWriteFinished
◆ q_ptr
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.