akonadi
searchquery.cpp
145 SearchTerm::SearchTerm(const QString &key, const QVariant &value, SearchTerm::Condition condition)
255 void SearchQuery::addTerm(const QString &key, const QVariant &value, SearchTerm::Condition condition)
334 static QMap<EmailSearchTerm::EmailSearchField, QString> emailSearchFieldMapping = initializeMapping();
336 EmailSearchTerm::EmailSearchTerm(EmailSearchTerm::EmailSearchField field, const QVariant &value, SearchTerm::Condition condition)
363 static QMap<ContactSearchTerm::ContactSearchField, QString> contactSearchFieldMapping = initializeContactMapping();
365 ContactSearchTerm::ContactSearchTerm(ContactSearchTerm::ContactSearchField field, const QVariant &value, SearchTerm::Condition condition)
void setIsNegated(bool negated)
Sets whether the entire term is negated.
Definition: searchquery.cpp:194
bool contains(const Key &key) const
T value() const
void addSubTerm(const SearchTerm &term)
Adds a new subterm to this term.
Definition: searchquery.cpp:204
EmailSearchTerm(EmailSearchField field, const QVariant &value, SearchTerm::Condition condition=SearchTerm::CondEqual)
Constructs an email end term.
Definition: searchquery.cpp:336
void addTerm(const QString &key, const QVariant &value, SearchTerm::Condition condition=SearchTerm::CondEqual)
Adds a new term.
Definition: searchquery.cpp:255
bool isNull() const
SearchTerm::Condition condition() const
Returns relation between key and value.
Definition: searchquery.cpp:189
bool isEmpty() const
SearchTerm(SearchTerm::Relation relation=SearchTerm::RelAnd)
Constructs a term where all subterms will be in given relation.
Definition: searchquery.cpp:139
QFuture< void > map(Sequence &sequence, MapFunction function)
static EmailSearchField fromKey(const QString &key)
Translates key to field.
Definition: searchquery.cpp:347
A query that can be passed to ItemSearchJob or others.
Definition: searchquery.h:128
QMap< QString, QVariant > toMap() const
char * toString(const T &value)
QList< SearchTerm > subTerms() const
Returns all subterms, or an empty list if this is an end term.
Definition: searchquery.cpp:209
iterator insert(const Key &key, const T &value)
SearchQuery(SearchTerm::Relation rel=SearchTerm::RelAnd)
Constructs query where all added terms will be in given relation.
Definition: searchquery.cpp:219
Search term represents the actual condition within query.
Definition: searchquery.h:39
static ContactSearchField fromKey(const QString &key)
Translates key to field.
Definition: searchquery.cpp:376
SearchTerm::Relation relation() const
Returns relation in which all subterms are.
Definition: searchquery.cpp:214
const T value(const Key &key) const
EmailSearchField
All fields expect a search string unless noted otherwise.
Definition: searchquery.h:201
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.