KIMAP2::Term

Search for usage in LXR

KIMAP2::Term Class Reference

#include <searchjob.h>

Public Types

enum  BooleanSearchKey {
  New , Old , Recent , Seen ,
  Draft , Deleted , Flagged , Answered
}
 
enum  DateSearchKey {
  Before , On , Since , SentBefore ,
  SentOn , SentSince
}
 
enum  NumberSearchKey { Larger , Smaller }
 
enum  Relation { And , Or }
 
enum  SearchKey {
  All , Bcc , Body , Cc ,
  From , Subject , Text , To ,
  Keyword
}
 
enum  SequenceSearchKey { Uid , SequenceNumber }
 

Public Member Functions

 Term (BooleanSearchKey key)
 
 Term (const QString &header, const QString &value)
 
 Term (const Term &other)
 
 Term (DateSearchKey key, const QDate &date)
 
 Term (NumberSearchKey key, int value)
 
 Term (Relation relation, const QVector< Term > &subterms)
 
 Term (SearchKey key, const QString &value)
 
 Term (SequenceSearchKey key, const KIMAP2::ImapSet &)
 
bool isNull () const
 
Termoperator= (const Term &other)
 
bool operator== (const Term &other) const
 
QByteArray serialize () const
 
TermsetFuzzy (bool fuzzy)
 
TermsetNegated (bool negated)
 

Detailed Description

A query term.

Refer to the IMAP RFC for the meaning of the individual terms.

Since
4.13

Definition at line 45 of file searchjob.h.

Member Enumeration Documentation

◆ BooleanSearchKey

enum KIMAP2::Term::BooleanSearchKey

Definition at line 65 of file searchjob.h.

◆ DateSearchKey

enum KIMAP2::Term::DateSearchKey

Definition at line 76 of file searchjob.h.

◆ NumberSearchKey

enum KIMAP2::Term::NumberSearchKey

Definition at line 84 of file searchjob.h.

◆ Relation

enum KIMAP2::Term::Relation

Definition at line 48 of file searchjob.h.

◆ SearchKey

enum KIMAP2::Term::SearchKey

Definition at line 53 of file searchjob.h.

◆ SequenceSearchKey

enum KIMAP2::Term::SequenceSearchKey

Definition at line 88 of file searchjob.h.

Constructor & Destructor Documentation

◆ Term() [1/9]

KIMAP2::Term::Term ( )

Definition at line 44 of file searchjob.cpp.

◆ Term() [2/9]

KIMAP2::Term::Term ( Term::Relation relation,
const QVector< Term > & subterms )

Definition at line 50 of file searchjob.cpp.

◆ Term() [3/9]

KIMAP2::Term::Term ( Term::SearchKey key,
const QString & value )

Definition at line 79 of file searchjob.cpp.

◆ Term() [4/9]

KIMAP2::Term::Term ( Term::BooleanSearchKey key)

Definition at line 124 of file searchjob.cpp.

◆ Term() [5/9]

KIMAP2::Term::Term ( Term::DateSearchKey key,
const QDate & date )

Definition at line 161 of file searchjob.cpp.

◆ Term() [6/9]

KIMAP2::Term::Term ( Term::NumberSearchKey key,
int value )

Definition at line 191 of file searchjob.cpp.

◆ Term() [7/9]

KIMAP2::Term::Term ( Term::SequenceSearchKey key,
const KIMAP2::ImapSet & set )

Definition at line 205 of file searchjob.cpp.

◆ Term() [8/9]

KIMAP2::Term::Term ( const QString & header,
const QString & value )

Definition at line 116 of file searchjob.cpp.

◆ Term() [9/9]

KIMAP2::Term::Term ( const Term & other)

Definition at line 220 of file searchjob.cpp.

Member Function Documentation

◆ isNull()

bool KIMAP2::Term::isNull ( ) const

Definition at line 263 of file searchjob.cpp.

◆ operator=()

Term & KIMAP2::Term::operator= ( const Term & other)

Definition at line 226 of file searchjob.cpp.

◆ operator==()

bool KIMAP2::Term::operator== ( const Term & other) const

Definition at line 232 of file searchjob.cpp.

◆ serialize()

QByteArray KIMAP2::Term::serialize ( ) const

Definition at line 239 of file searchjob.cpp.

◆ setFuzzy()

Term & KIMAP2::Term::setFuzzy ( bool fuzzy)

Definition at line 251 of file searchjob.cpp.

◆ setNegated()

Term & KIMAP2::Term::setNegated ( bool negated)

Definition at line 257 of file searchjob.cpp.


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 29 2024 11:56:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.