Akonadi
job.cpp
61 qCWarning(AKONADICORE_LOG) << "Received response for a job that does not expect any more data, ignoring";
112 const QString suffix = Akonadi::Instance::identifier().isEmpty() ? QString() : QLatin1Char('-') + Akonadi::Instance::identifier();
113 if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QStringLiteral("org.kde.akonadiconsole") + suffix)) {
138 const QList<QVariant> argumentList = QList<QVariant>() << QLatin1String(mSession->sessionId()) << QString::number(reinterpret_cast<quintptr>(q), 16)
141 QDBusPendingCall call = s_jobtracker->asyncCallWithArgumentList(QStringLiteral("jobCreated"), argumentList);
144 QObject::connect(watcher, &QDBusPendingCallWatcher::finished, s_jobtracker, [](QDBusPendingCallWatcher *w) {
259 void JobPrivate::itemRevisionChanged(Akonadi::Item::Id itemId, int oldRevision, int newRevision)
277 void JobPrivate::doUpdateItemRevision(Akonadi::Item::Id itemId, int oldRevision, int newRevision)
308 const QList<QVariant> argumentList = {QString::number(reinterpret_cast<quintptr>(this), 16), errorString()};
338 str = i18n("The protocol version of the Akonadi server is incompatible. Make sure you have a compatible version installed.");
void finished(QDBusPendingCallWatcher *self)
void emitWriteFinished()
Call this method to indicate that this job will not call writeData() again.
Definition: job.cpp:409
QString number(int n, int base)
bool addSubjob(KJob *job) override
Adds the given job as a subjob to this job.
Definition: job.cpp:355
Q_EMITQ_EMIT
singleShot
QString errorString() const final
Returns the error string, if there has been an error, an empty string otherwise.
Definition: job.cpp:328
bool isError() const const
virtual bool removeSubjob(KJob *job)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void deleteLater()
QString i18n(const char *text, const TYPE &arg...)
QDBusConnection sessionBus()
qint64 restart()
static Session * defaultSession()
Returns the default session for this thread.
Definition: core/session.cpp:423
bool isEmpty() const const
QString errorText() const
void writeFinished(Akonadi::Job *job)
This signal is emitted if the job has finished all write operations, ie.
void start() override
Jobs are started automatically once entering the event loop again, no need to explicitly call this.
Definition: job.cpp:313
virtual bool addSubjob(KJob *job)
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QueuedConnection
qint64 elapsed() const const
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
virtual bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response)
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
Definition: job.cpp:381
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)
virtual void slotResult(KJob *job)
KLEO_EXPORT std::unique_ptr< GpgME::DefaultAssuanTransaction > sendCommand(std::shared_ptr< GpgME::Context > &assuanContext, const std::string &command, GpgME::Error &err)
int error() const
QDBusMessage callWithArgumentList(QDBus::CallMode mode, const QString &method, const QList< QVariant > &args)
NoBlock
QObject * parent() const const
bool isValid() const const
void aboutToStart(Akonadi::Job *job)
This signal is emitted directly before the job will be started.
Q_D(Todo)
void start()
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 23 2023 04:04:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 23 2023 04:04:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.