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)
311 str = i18n("The protocol version of the Akonadi server is incompatible. Make sure you have a compatible version installed.");
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...
The server protocol version is too old or too new.
Definition: job.h:106
bool startsWith(const QByteArray &ba) const
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.
QString & remove(int position, int n)
void chop(int n)
static Session * defaultSession()
Returns the default session for this thread.
Definition: session.cpp:496
void start()
Jobs are started automatically once entering the event loop again, no need to explicitly call this...
Definition: job.cpp:286
void writeFinished(Akonadi::Job *job)
This signal is emitted if the job has finished all write operations, ie.
virtual void aboutToFinish()
This method is called right before result() and finished() signals are emitted.
int elapsed() const
QString number(int n, int base)
QString fromUtf8(const char *str, int size)
virtual bool addSubjob(KJob *job)
Adds the given job as a subjob to this job.
Definition: job.cpp:328
QByteArray number(int n, int base)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
int restart()
void emitWriteFinished()
Call this method to indicate that this job will not call writeData() again.
Definition: job.cpp:370
QByteArray newTag()
Returns a new unique command tag for communication with the backend.
bool isNull() const
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
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
Definition: job_p.h:31
void aboutToStart(Akonadi::Job *job)
This signal is emitted directly before the job will be started.
QString fromLatin1(const char *str, int size)
void start()
virtual QString errorString() const
Returns the error string, if there has been an error, an empty string otherwise.
Definition: job.cpp:301
QDBusMessage callWithArgumentList(QDBus::CallMode mode, const QString &method, const QList< QVariant > &args)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.