25#include "akonadi_export.h"
27#include <kcompositejob.h>
86class AKONADI_EXPORT
Job :
public KCompositeJob
91 friend class SessionPrivate;
121 explicit Job(QObject *parent = 0);
138 virtual QString errorString()
const;
174 virtual void doHandleResponse(
const QByteArray &tag,
const QByteArray &data);
205 virtual void slotResult(KJob *job);
214 Q_DECLARE_PRIVATE(
Job)
217 Q_PRIVATE_SLOT(d_func(),
void slotSubJobAboutToStart(
Akonadi::Job *))
218 Q_PRIVATE_SLOT(d_func(),
void startNext())
219 Q_PRIVATE_SLOT(d_func(),
void signalCreationToJobTracker())
220 Q_PRIVATE_SLOT(d_func(),
void signalStartedToJobTracker())
221 Q_PRIVATE_SLOT(d_func(),
void delayedEmitResult())
Base class for all actions in the Akonadi storage.
void aboutToStart(Akonadi::Job *job)
This signal is emitted directly before the job will be started.
Error
Describes the error codes that can be emitted by this class.
@ ProtocolVersionMismatch
The server protocol version is too old or too new.
@ ConnectionFailed
The connection to the Akonadi server failed.
@ UserError
Starting point for error codes defined by sub-classes.
@ UserCanceled
The user canceld this job.
virtual bool doKill()
Kills the execution of the job.
void emitWriteFinished()
Call this method to indicate that this job will not call writeData() again.
virtual bool removeSubjob(KJob *job)
Removes the given subjob of this job.
virtual void doStart()=0
This method must be reimplemented in the concrete jobs.
Job(QObject *parent=0)
Creates a new job.
void writeFinished(Akonadi::Job *job)
This signal is emitted if the job has finished all write operations, ie.
QList< Job * > List
Describes a list of jobs.
virtual bool addSubjob(KJob *job)
Adds the given job as a subjob to this job.
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.
A communication session with the Akonadi storage.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.