44 explicit Term(
const QString& property);
55 Term(
const QString& property,
const QVariant& value, Comparator c = Auto);
60 explicit Term(Operation op);
61 Term(Operation op,
const Term& t);
63 Term(
const Term& lhs, Operation op,
const Term& rhs);
72 void setNegation(
bool isNegated);
75 bool isNegated()
const;
77 void addSubTerm(
const Term& term);
86 void setOperation(Operation op);
87 Operation operation()
const;
96 void setProperty(
const QString& property);
99 void setValue(
const QVariant& value);
101 Comparator comparator()
const;
102 void setComparator(Comparator c);
107 QVariantMap toVariantMap()
const;
108 static Term fromVariantMap(
const QVariantMap& map);
110 bool operator == (
const Term& rhs)
const;
112 Term& operator=(
const Term& rhs);
116 std::unique_ptr<Private>
const d;
119inline Term operator &&(
const Term& lhs,
const Term& rhs)
123 else if (rhs.isEmpty())
126 return {lhs, Term::And, rhs};
129inline Term operator ||(
const Term& lhs,
const Term& rhs)
133 else if (rhs.isEmpty())
136 return {lhs, Term::Or, rhs};
139inline Term operator !(
const Term& rhs)
142 t.setNegation(!rhs.isNegated());
158Q_DECLARE_TYPEINFO(Baloo::Term, Q_RELOCATABLE_TYPE);
Implements storage for docIds without any associated data Instantiated for:
char * toString(const EngineQuery &query)
Helper for QTest.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:13 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.