Akonadi
searchquery.cpp
21 return relation == other.relation && isNegated == other.isNegated && terms == other.terms && key == other.key && value == other.value
99 SearchTerm::SearchTerm(const QString &key, const QVariant &value, SearchTerm::Condition condition)
207 void SearchQuery::addTerm(const QString &key, const QVariant &value, SearchTerm::Condition condition)
293 EmailSearchTerm::EmailSearchTerm(EmailSearchTerm::EmailSearchField field, const QVariant &value, SearchTerm::Condition condition)
321 ContactSearchTerm::ContactSearchTerm(ContactSearchTerm::ContactSearchField field, const QVariant &value, SearchTerm::Condition condition)
349 IncidenceSearchTerm::IncidenceSearchTerm(IncidenceSearchTerm::IncidenceSearchField field, const QVariant &value, SearchTerm::Condition condition)
QJsonObject object() const const
static IncidenceSearchField fromKey(const QString &key)
Translates key to field.
Definition: searchquery.cpp:359
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
SearchTerm(SearchTerm::Relation relation=SearchTerm::RelAnd)
Constructs a term where all subterms will be in given relation.
Definition: searchquery.cpp:93
bool isNull() const const
int toInt(int defaultValue) const const
int count(const T &value) const const
QVariantMap toVariantMap() const const
QList< SearchTerm > subTerms() const
Returns all subterms, or an empty list if this is an end term.
Definition: searchquery.cpp:161
QJsonObject fromVariantMap(const QVariantMap &map)
void setIsNegated(bool negated)
Sets whether the entire term is negated.
Definition: searchquery.cpp:146
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
A query that can be passed to ItemSearchJob or others.
Definition: searchquery.h:116
SearchQuery(SearchTerm::Relation rel=SearchTerm::RelAnd)
Constructs query where all added terms will be in given relation.
Definition: searchquery.cpp:171
bool contains(const QString &key) const const
static EmailSearchField fromKey(const QString &key)
Translates key to field.
Definition: searchquery.cpp:303
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
QMap::iterator insert(const Key &key, const T &value)
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
void addSubTerm(const SearchTerm &term)
Adds a new subterm to this term.
Definition: searchquery.cpp:156
SearchTerm::Relation relation() const
Returns relation in which all subterms are.
Definition: searchquery.cpp:166
NoError
static ContactSearchField fromKey(const QString &key)
Translates key to field.
Definition: searchquery.cpp:331
bool isEmpty() const const
QJsonValue value(const QString &key) const const
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
void addTerm(const QString &key, const QVariant &value, SearchTerm::Condition condition=SearchTerm::CondEqual)
Adds a new term.
Definition: searchquery.cpp:207
EmailSearchTerm(EmailSearchField field, const QVariant &value, SearchTerm::Condition condition=SearchTerm::CondEqual)
Constructs an email end term.
Definition: searchquery.cpp:293
QByteArray toJson() const const
void setObject(const QJsonObject &object)
SearchTerm::Condition condition() const
Returns relation between key and value.
Definition: searchquery.cpp:141
Search term represents the actual condition within query.
Definition: searchquery.h:26
EmailSearchField
All fields expect a search string unless noted otherwise.
Definition: searchquery.h:186
QFuture< void > map(Sequence &sequence, MapFunctor function)
char * toString(const EngineQuery &query)
Helper integration between Akonadi and Qt.
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:05:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:05:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.