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))
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
QStringList mimeTypes() const
Returns list of mime types to search in.
Definition: itemsearchjob.cpp:185
void setRemoteSearchEnabled(bool enabled)
Sets whether resources should be queried too.
Definition: itemsearchjob.cpp:202
AKONADI_DEPRECATED ItemSearchJob(const QString &query, QObject *parent=0)
Creates an item search job.
Definition: itemsearchjob.cpp:126
Item::List items() const
Returns the items that matched the search query.
Definition: itemsearchjob.cpp:271
static QByteArray itemFetchScopeToByteArray(const ItemFetchScope &fetchScope)
Converts a given ItemFetchScope object into a protocol representation.
Definition: protocolhelper.cpp:411
bool isRemoteSearchEnabled() const
Returns whether remote search is enabled.
Definition: itemsearchjob.cpp:209
void setSearchCollections(const Collection::List &collections)
Search only in given collections.
Definition: itemsearchjob.cpp:166
Collection::List searchCollections() const
Returns list of collections to search.
Definition: itemsearchjob.cpp:173
QString join(const QString &separator) const
static Session * defaultSession()
Returns the default session for this thread.
Definition: session.cpp:496
void setFetchScope(const ItemFetchScope &fetchScope)
Sets the item fetch scope.
Definition: itemsearchjob.cpp:152
int indexOf(char ch, int from) const
void append(const T &value)
QString fromUtf8(const char *str, int size)
void setRecursive(bool recursive)
Sets whether the search should recurse into collections.
Definition: itemsearchjob.cpp:190
QByteArray number(int n, int base)
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 doStart()
This method must be reimplemented in the concrete jobs.
Definition: itemsearchjob.cpp:214
A query that can be passed to ItemSearchJob or others.
Definition: searchquery.h:128
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition: itemfetchscope.h:69
Definition: job_p.h:31
void AKONADI_DEPRECATED setQuery(const QString &query)
Sets the search query in Akonadi search metalanguage format (JSON)
Definition: itemsearchjob.cpp:138
QString fromLatin1(const char *str, int size)
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
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setMimeTypes(const QStringList &mimeTypes)
Search only for items of given mime types.
Definition: itemsearchjob.cpp:178
Job that searches for items in the Akonadi storage.
Definition: itemsearchjob.h:67
QByteArray toUtf8() const
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.