Akonadi
itemsearchjob.cpp
71 return QStringLiteral("%1,json=%2").arg(flags.join(QLatin1Char(',')), QString::fromUtf8(mQuery.toJSON()));
242 const Item item = ProtocolHelper::parseItemFetchResult(Protocol::cmdCast<Protocol::FetchItemsResponse>(response));
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition itemfetchscope.h:58
Job that searches for items in the Akonadi storage.
Definition itemsearchjob.h:54
bool isRemoteSearchEnabled() const
Returns whether remote search is enabled.
Definition itemsearchjob.cpp:209
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 itemsearchjob.cpp:237
QStringList mimeTypes() const
Returns list of mime types to search in.
Definition itemsearchjob.cpp:185
void setMimeTypes(const QStringList &mimeTypes)
Search only for items of given mime types.
Definition itemsearchjob.cpp:178
void setTagFetchScope(const TagFetchScope &fetchScope)
Sets the tag fetch scope.
Definition itemsearchjob.cpp:152
void setRecursive(bool recursive)
Sets whether the search should recurse into collections.
Definition itemsearchjob.cpp:190
Collection::List searchCollections() const
Returns list of collections to search.
Definition itemsearchjob.cpp:173
void setRemoteSearchEnabled(bool enabled)
Sets whether resources should be queried too.
Definition itemsearchjob.cpp:202
ItemSearchJob(QObject *parent=nullptr)
Creates an invalid search job.
Definition itemsearchjob.cpp:115
Item::List items() const
Returns the items that matched the search query.
Definition itemsearchjob.cpp:262
void doStart() override
This method must be reimplemented in the concrete jobs.
Definition itemsearchjob.cpp:214
void setSearchCollections(const Collection::List &collections)
Search only in given collections.
Definition itemsearchjob.cpp:166
void setFetchScope(const ItemFetchScope &fetchScope)
Sets the item fetch scope.
Definition itemsearchjob.cpp:138
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
A query that can be passed to ItemSearchJob or others.
Definition searchquery.h:117
Specifies which parts of a tag should be fetched from the Akonadi storage.
Definition tagfetchscope.h:23
Helper integration between Akonadi and Qt.
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
void append(QList< T > &&value)
void clear()
qsizetype count() const const
bool isEmpty() const const
void reserve(qsizetype size)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString fromUtf8(QByteArrayView str)
QString join(QChar separator) const const
void setInterval(int msec)
void setSingleShot(bool singleShot)
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 Oct 11 2024 12:11:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.