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