CSearchBooleanCondition Class Reference

class CSearchBooleanCondition : public CSearchCondition

Represents a boolean condition in search criteria. Boolean condition always contains other conditions that are linked to a boolean clause. I.e. this can be used to link several single conditions with boolean operators. E.g. sender = John Smith AND subject = hello. This type of query is formed by having one boolean condition inserted with to simple conditions both linking to EBooleanMust clauses. Currently nested boolean conditions are not supported.

searchutilities.lib

Inherits from

Constructor & Destructor Documentation

CSearchBooleanCondition(CSearchCondition::TConditionType)

CSearchBooleanCondition(CSearchCondition::TConditionTypeaType)[private]

Constructor

~CSearchBooleanCondition()

~CSearchBooleanCondition()[virtual]

destructor

Member Functions Documentation

AddConditionL(CSearchCondition *, TBooleanClause)

IMPORT_C voidAddConditionL(CSearchCondition *aCondition,
TBooleanClauseaClause
)

Adds a new condition and boolean clause to condition array. Adding another boolean condition is not currently supported and function will leave with KErrArgument in such a case.

Parameters

CSearchCondition * aConditionThe condition to be added.
TBooleanClause aClauseThe clause to be linked to the condition.

ConstructL(RReadStream &)

voidConstructL(RReadStream &aStream)[private]

2nd phase constructor

Parameters

RReadStream & aStream

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const [virtual]

Externalizes the object

Parameters

RWriteStream & aStream

GetConditions(RPointerArray< CSearchCondition > &, RArray< TBooleanClause > &)

IMPORT_C voidGetConditions(RPointerArray< CSearchCondition > &aConditions,
RArray< TBooleanClause > &aClauses
)const

Gets the conditions

Parameters

RPointerArray< CSearchCondition > & aConditions
RArray< TBooleanClause > & aClauses

NewL()

IMPORT_C CSearchBooleanCondition *NewL()[static]

two phase constructor

NewL(RReadStream &)

IMPORT_C CSearchBooleanCondition *NewL(RReadStream &aStream)[static]

two phase constructor

Parameters

RReadStream & aStream- Stream

Member Enumerations Documentation

Enum TBooleanClause

Clauses, linking conditions

Enumerators

EBooleanMust
EBooleanShould
EBooleanMustNot

Member Data Documentation

RArray< TBooleanClause > iClauses

RArray< TBooleanClause >iClauses[private]

Clauses to link Simple Conditions

RPointerArray< CSearchCondition > iConditions

RPointerArray< CSearchCondition >iConditions[private]

Simple Conditions