Akonadi
collectionfetchjob.cpp
86 // return QLatin1StringView("(") + ProtocolHelper::hierarchicalRidToScope(mBase).hridChain().join(QLatin1StringView(", ")) + QLatin1Char(')');
103 return error == Job::ConnectionFailed || error == Job::ProtocolVersionMismatch || error == Job::UserCanceled;
150CollectionFetchJob::CollectionFetchJob(const QList<Collection::Id> &cols, Type type, QObject *parent)
183 // other elements in the list, if type is Recursive, we could end up with duplicates in the result.
193 // No need to connect to the collectionsReceived signal here. This job is internal. The (aggregated)
318 QList<Collection::Id>::iterator i = std::lower_bound(ancestors.begin(), ancestors.end(), parent.id());
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:39
void setFetchScope(const CollectionFetchScope &fetchScope)
Sets the collection fetch scope.
Definition collectionfetchjob.cpp:399
bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
Definition collectionfetchjob.cpp:272
void doStart() override
This method must be reimplemented in the concrete jobs.
Definition collectionfetchjob.cpp:176
CollectionFetchScope & fetchScope()
Returns the collection fetch scope.
Definition collectionfetchjob.cpp:405
@ FirstLevel
Only list direct sub-collections of the base collection.
Definition collectionfetchjob.h:48
@ NonOverlappingRoots
List the roots of a list of fetched collections.
Definition collectionfetchjob.h:50
CollectionFetchJob(const Collection &collection, Type type=FirstLevel, QObject *parent=nullptr)
Creates a new collection fetch job.
Definition collectionfetchjob.cpp:110
void collectionsReceived(const Akonadi::Collection::List &collections)
This signal is emitted whenever the job has received collections.
~CollectionFetchJob() override
Destroys the collection fetch job.
Collection::List collections() const
Returns the list of fetched collection.
Definition collectionfetchjob.cpp:169
Specifies which parts of a collection should be fetched from the Akonadi storage.
Definition collectionfetchscope.h:56
@ Index
Only retrieve collections for indexing, taking the local preference and enabled into account.
Definition collectionfetchscope.h:99
@ Display
Only retrieve collections for display, taking the local preference and enabled into account.
Definition collectionfetchscope.h:97
@ Sync
Only retrieve collections for synchronization, taking the local preference and enabled into account.
Definition collectionfetchscope.h:98
@ Enabled
Only retrieve enabled collections, ignoring the local preference.
Definition collectionfetchscope.h:100
bool ignoreRetrievalErrors() const
Returns whether retrieval errors should be ignored.
Definition collectionfetchscope.cpp:163
Collection parentCollection() const
Returns the parent collection of this object.
Definition collection.cpp:195
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 hasSubjobs() const
virtual void slotResult(KJob *job)
void setErrorText(const QString &errorText)
virtual QString errorString() const
void emitResult()
int error() const
void result(KJob *job)
void setError(int errorCode)
QString errorText() const
QString i18n(const char *text, const TYPE &arg...)
Helper integration between Akonadi and Qt.
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
iterator begin()
const_iterator cbegin() const const
const_iterator cend() const const
void clear()
qsizetype count() const const
iterator end()
T & first()
iterator insert(const_iterator before, parameter_type value)
bool isEmpty() const const
void reserve(qsizetype size)
qsizetype size() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
bool contains(const QSet< T > &other) const const
iterator insert(const T &value)
void setInterval(int msec)
bool isActive() const const
void setSingleShot(bool singleShot)
void start()
void stop()
void timeout()
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.