KIMAP::Term Class
A query term. More...
| Header: | #include <KIMAP/SearchJob> |
| CMake: | find_package(KPim6IMAP REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::IMAP) |
Public Types
| enum | BooleanSearchKey { New, Old, Recent, Seen, Draft, …, Answered } |
| enum | DateSearchKey { Before, On, Since, SentBefore, SentOn, SentSince } |
| enum | NumberSearchKey { Larger, Smaller } |
| enum | Relation { And, Or } |
| enum | SearchKey { All, Bcc, Body, Cc, From, …, Keyword } |
| enum | SequenceSearchKey { Uid, SequenceNumber } |
Public Functions
| | Term() |
| | Term(KIMAP::Term::BooleanSearchKey key) |
| | Term(KIMAP::Term::DateSearchKey key, const QDate &date) |
| | Term(KIMAP::Term::NumberSearchKey key, int value) |
| | Term(KIMAP::Term::Relation relation, const QList<KIMAP::Term> &subterms) |
| | Term(KIMAP::Term::SearchKey key, const QString &value) |
| | Term(KIMAP::Term::SequenceSearchKey key, const KIMAP::ImapSet &) |
| | Term(const QString &header, const QString &value) |
| | Term(const KIMAP::Term &other) |
| | ~Term() |
| bool | isNull() const |
| QByteArray | serialize() const |
| KIMAP::Term & | setFuzzy(bool fuzzy) |
| KIMAP::Term & | setNegated(bool negated) |
| KIMAP::Term & | operator=(const KIMAP::Term &other) |
| bool | operator==(const KIMAP::Term &other) const |
Detailed Description
Refer to the IMAP RFC for the meaning of the individual terms.
Member Type Documentation
enum Term::BooleanSearchKey
| Constant | Value |
KIMAP::Term::New | 0 |
KIMAP::Term::Old | 1 |
KIMAP::Term::Recent | 2 |
KIMAP::Term::Seen | 3 |
KIMAP::Term::Draft | 4 |
KIMAP::Term::Deleted | 5 |
KIMAP::Term::Flagged | 6 |
KIMAP::Term::Answered | 7 |
enum Term::DateSearchKey
| Constant | Value |
KIMAP::Term::Before | 0 |
KIMAP::Term::On | 1 |
KIMAP::Term::Since | 2 |
KIMAP::Term::SentBefore | 3 |
KIMAP::Term::SentOn | 4 |
KIMAP::Term::SentSince | 5 |
enum Term::NumberSearchKey
| Constant | Value |
KIMAP::Term::Larger | 0 |
KIMAP::Term::Smaller | 1 |
enum Term::Relation
| Constant | Value |
KIMAP::Term::And | 0 |
KIMAP::Term::Or | 1 |
enum Term::SearchKey
| Constant | Value |
KIMAP::Term::All | 0 |
KIMAP::Term::Bcc | 1 |
KIMAP::Term::Body | 2 |
KIMAP::Term::Cc | 3 |
KIMAP::Term::From | 4 |
KIMAP::Term::Subject | 5 |
KIMAP::Term::Text | 6 |
KIMAP::Term::To | 7 |
KIMAP::Term::Keyword | 8 |
enum Term::SequenceSearchKey
| Constant | Value |
KIMAP::Term::Uid | 0 |
KIMAP::Term::SequenceNumber | 1 |
Member Function Documentation
Term::Term()
Term::Term(const QString &header, const QString &value)
Term::Term(const KIMAP::Term &other)
Term::~Term()
bool Term::isNull() const
QByteArray Term::serialize() const
KIMAP::Term &Term::setFuzzy(bool fuzzy)
KIMAP::Term &Term::setNegated(bool negated)
bool Term::operator==(const KIMAP::Term &other) const