akonadi
itemsearchjob.cpp
81 return QString::fromLatin1( "%1,json=%2" ).arg( flags.join(QLatin1String(","))).arg(QString::fromUtf8(mQuery.toJSON()));
127 : Job(new ItemSearchJobPrivate(this, SearchQuery::fromJSON(query.toUtf8())), sessionForJob(parent))
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition: itemfetchscope.h:70
Job that searches for items in the Akonadi storage.
Definition: itemsearchjob.h:68
void AKONADI_DEPRECATED setQuery(const QString &query)
Sets the search query in Akonadi search metalanguage format (JSON)
Definition: itemsearchjob.cpp:138
bool isRemoteSearchEnabled() const
Returns whether remote search is enabled.
Definition: itemsearchjob.cpp:209
void doStart()
This method must be reimplemented in the concrete jobs.
Definition: itemsearchjob.cpp:214
AKONADI_DEPRECATED ItemSearchJob(const QString &query, QObject *parent=0)
Creates an item search job.
Definition: itemsearchjob.cpp:126
QStringList mimeTypes() const
Returns list of mime types to search in.
Definition: itemsearchjob.cpp:185
static AKONADI_DEPRECATED QUrl akonadiItemIdUri()
Returns an URI that represents a predicate that is always added to the Nepomuk resource by the Akonad...
Definition: itemsearchjob.cpp:278
void setMimeTypes(const QStringList &mimeTypes)
Search only for items of given mime types.
Definition: itemsearchjob.cpp:178
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: itemsearchjob.cpp:242
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
Item::List items() const
Returns the items that matched the search query.
Definition: itemsearchjob.cpp:271
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:152
Definition: job_p.h:32
static QByteArray itemFetchScopeToByteArray(const ItemFetchScope &fetchScope)
Converts a given ItemFetchScope object into a protocol representation.
Definition: protocolhelper.cpp:411
static void parseItemFetchResult(const QList< QByteArray > &lineTokens, Item &item, ProtocolHelperValuePool *valuePool=0)
Parses a single line from an item fetch job result into an Item object.
Definition: protocolhelper.cpp:503
A query that can be passed to ItemSearchJob or others.
Definition: searchquery.h:129
static Session * defaultSession()
Returns the default session for this thread.
Definition: session.cpp:496
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.