11#include "search_core_export.h"
26class AKONADI_SEARCH_CORE_EXPORT
Term
29 enum Comparator { Auto, Equal, Contains, Greater, GreaterEqual, Less, LessEqual };
31 enum Operation { None, And, Or };
61 [[nodiscard]]
bool isValid()
const;
67 void setNegation(
bool isNegated);
69 [[nodiscard]]
bool negated()
const;
70 [[nodiscard]]
bool isNegated()
const;
72 void addSubTerm(
const Term &term);
78 [[nodiscard]]
Term subTerm()
const;
81 void setOperation(Operation op);
82 [[nodiscard]] Operation operation()
const;
84 [[nodiscard]]
bool isEmpty()
const;
85 [[nodiscard]]
bool empty()
const;
90 [[nodiscard]]
QString property()
const;
91 void setProperty(
const QString &property);
93 [[nodiscard]]
QVariant value()
const;
94 void setValue(
const QVariant &value);
96 [[nodiscard]] Comparator comparator()
const;
97 void setComparator(Comparator c);
102 [[nodiscard]] QVariantMap toVariantMap()
const;
103 static Term fromVariantMap(
const QVariantMap &map);
105 bool operator==(
const Term &rhs)
const;
110 std::unique_ptr<TermPrivate>
const d;
121inline Term operator||(
const Term &lhs,
const Term &rhs)
129inline Term operator!(
const Term &rhs)
132 t.setNegation(!rhs.isNegated());
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor &cursor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:09:10 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.