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::TConditionType aType ) [private]

Constructor

~CSearchBooleanCondition()

~CSearchBooleanCondition ( ) [virtual]

destructor

Member Functions Documentation

AddConditionL(CSearchCondition *, TBooleanClause)

IMPORT_C void AddConditionL ( CSearchCondition * aCondition,
TBooleanClause aClause
)

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 * aCondition The condition to be added.
TBooleanClause aClause The clause to be linked to the condition.

ConstructL(RReadStream &)

void ConstructL ( RReadStream & aStream ) [private]

2nd phase constructor

Parameters

RReadStream & aStream

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const [virtual]

Externalizes the object

Parameters

RWriteStream & aStream

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

IMPORT_C void GetConditions ( 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