Akonadi Search
11#include "search_core_export.h"
26class AKONADI_SEARCH_CORE_EXPORT Term
29 enum Comparator : uint8_t {
39 enum Operation : uint8_t {
68 Term(Operation op,
const Term &t);
70 Term(
const Term &lhs, Operation op,
const Term &rhs);
73 [[nodiscard]]
bool isValid()
const;
81 [[nodiscard]]
bool negated()
const;
82 [[nodiscard]]
bool isNegated()
const;
84 void addSubTerm(
const Term &term);
90 [[nodiscard]] Term
subTerm()
const;
93 void setOperation(Operation op);
94 [[nodiscard]] Operation operation()
const;
96 [[nodiscard]]
bool isEmpty()
const;
97 [[nodiscard]]
bool empty()
const;
105 [[nodiscard]]
QVariant value()
const;
106 void setValue(
const QVariant &value);
108 [[nodiscard]] Comparator comparator()
const;
109 void setComparator(Comparator c);
114 [[nodiscard]] QVariantMap toVariantMap()
const;
115 static Term fromVariantMap(
const QVariantMap &map);
117 bool operator==(
const Term &rhs)
const;
119 Term &operator=(
const Term &rhs);
122 std::unique_ptr<TermPrivate>
const d;
133inline Term operator||(
const Term &lhs,
const Term &rhs)
141inline Term operator!(
const Term &rhs)
144 t.setNegation(!rhs.isNegated());
void setNegation(bool isNegated)
Negate this term.
QString property() const
Return the property this term is targeting.
Term subTerm() const
Returns the first subTerm in the list of subTerms.
Akonadi search infrastructure.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:06 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.