#include <term.h>
|
enum | Comparator : uint8_t {
Auto
, Equal
, Contains
, Greater
,
GreaterEqual
, Less
, LessEqual
} |
|
enum | Operation : uint8_t { None
, And
, Or
} |
|
Search term.
Definition at line 26 of file term.h.
◆ Comparator
enum Akonadi::Search::Term::Comparator : uint8_t |
◆ Operation
enum Akonadi::Search::Term::Operation : uint8_t |
◆ Term() [1/8]
◆ Term() [2/8]
Term::Term |
( |
const Term & | t | ) |
|
◆ Term() [3/8]
Term::Term |
( |
const QString & | property | ) |
|
The Item must contain the property property
.
Definition at line 41 of file term.cpp.
◆ Term() [4/8]
Term::Term |
( |
const QString & | property, |
|
|
const QVariant & | value, |
|
|
Term::Comparator | c = Auto ) |
The Item must contain the property property
with value \value.
The default comparator is Auto which has the following behavior For Strings - Contains For DateTime - Contains For any other type - Equals
Definition at line 47 of file term.cpp.
◆ Term() [5/8]
Term::Term |
( |
Term::Operation | op | ) |
|
This term is a combination of other terms.
Definition at line 78 of file term.cpp.
◆ Term() [6/8]
Term::Term |
( |
Term::Operation | op, |
|
|
const Term & | t ) |
◆ Term() [7/8]
Term::Term |
( |
Term::Operation | op, |
|
|
const QList< Term > & | t ) |
◆ Term() [8/8]
Term::Term |
( |
const Term & | lhs, |
|
|
Term::Operation | op, |
|
|
const Term & | rhs ) |
◆ addSubTerm()
void Term::addSubTerm |
( |
const Term & | term | ) |
|
◆ comparator()
Term::Comparator Term::comparator |
( |
| ) |
const |
|
nodiscard |
◆ empty()
bool Term::empty |
( |
| ) |
const |
|
nodiscard |
◆ fromVariantMap()
Term Term::fromVariantMap |
( |
const QVariantMap & | map | ) |
|
|
static |
◆ isEmpty()
bool Term::isEmpty |
( |
| ) |
const |
|
nodiscard |
◆ isNegated()
bool Term::isNegated |
( |
| ) |
const |
|
nodiscard |
◆ isValid()
bool Term::isValid |
( |
| ) |
const |
|
nodiscard |
◆ negated()
bool Term::negated |
( |
| ) |
const |
|
nodiscard |
◆ operation()
Term::Operation Term::operation |
( |
| ) |
const |
|
nodiscard |
◆ operator=()
Term & Term::operator= |
( |
const Term & | rhs | ) |
|
◆ operator==()
bool Term::operator== |
( |
const Term & | rhs | ) |
const |
◆ property()
Return the property this term is targeting.
Definition at line 180 of file term.cpp.
◆ setComparator()
void Term::setComparator |
( |
Term::Comparator | c | ) |
|
◆ setNegation()
void Term::setNegation |
( |
bool | isNegated | ) |
|
Negate this term.
Negation only applies for Equal or Contains For other Comparators you must invert it yourself
Definition at line 121 of file term.cpp.
◆ setOperation()
void Term::setOperation |
( |
Term::Operation | op | ) |
|
◆ setProperty()
void Term::setProperty |
( |
const QString & | property | ) |
|
◆ setSubTerms()
void Term::setSubTerms |
( |
const QList< Term > & | terms | ) |
|
◆ setUserData()
◆ setValue()
void Term::setValue |
( |
const QVariant & | value | ) |
|
◆ subTerm()
Term Term::subTerm |
( |
| ) |
const |
|
nodiscard |
Returns the first subTerm in the list of subTerms.
Definition at line 146 of file term.cpp.
◆ subTerms()
◆ toVariantMap()
QVariantMap Term::toVariantMap |
( |
| ) |
const |
|
nodiscard |
◆ userData()
◆ value()
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:12 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.