CMdETextPropertyCondition Class Reference

class CMdETextPropertyCondition

Instances of CMdETextPropertyCondition are associated with a specific property definition.

Public Member Functions
~CMdETextPropertyCondition()
TTextPropertyConditionCompareMethodCompareMethod()
TUint32 InternalQueryOptimizationFlags(TUint32 &)
CMdETextPropertyCondition *NewL(const CMdEPropertyDef &, TTextPropertyConditionCompareMethod, const TDesC &)
CMdETextPropertyCondition *NewLC(const CMdEPropertyDef &, TTextPropertyConditionCompareMethod, const TDesC &)
TUint32 RequiredBufferSize()
voidSerializeL(CMdCSerializationBuffer &, TMdCOffset &)
const TDesC &Text()
Protected Member Functions
CMdETextPropertyCondition(const CMdEPropertyDef &, TTextPropertyConditionCompareMethod)
voidConstructL(const TDesC &)
Private Attributes
TTextPropertyConditionCompareMethodiCompareMethod
HBufC *iText

Constructor & Destructor Documentation

CMdETextPropertyCondition(const CMdEPropertyDef &, TTextPropertyConditionCompareMethod)

CMdETextPropertyCondition(const CMdEPropertyDef &aPropertyDef,
TTextPropertyConditionCompareMethodaCompareMethod
)[protected]

Constructor.

Parameters

const CMdEPropertyDef & aPropertyDef
TTextPropertyConditionCompareMethod aCompareMethod

~CMdETextPropertyCondition()

~CMdETextPropertyCondition()[virtual]

Destructor.

Member Functions Documentation

CompareMethod()

TTextPropertyConditionCompareMethodCompareMethod()const

Returns the comparison method of the condition.

ConstructL(const TDesC &)

voidConstructL(const TDesC &aText)[protected]

Second-phase constuctor.

Parameters

const TDesC & aText

InternalQueryOptimizationFlags(TUint32 &)

TUint32 InternalQueryOptimizationFlags(TUint32 &aFlags)

Get possible query's internal optimization flags from condition.

Parameters

TUint32 & aFlags

NewL(const CMdEPropertyDef &, TTextPropertyConditionCompareMethod, const TDesC &)

CMdETextPropertyCondition *NewL(const CMdEPropertyDef &aPropertyDef,
TTextPropertyConditionCompareMethodaCompareMethod,
const TDesC &aText
)[static]

Constructs a new text property condition node.

Parameters

const CMdEPropertyDef & aPropertyDefProperty definition.
TTextPropertyConditionCompareMethod aCompareMethodText comparison method.
const TDesC & aTextText to look for.

NewLC(const CMdEPropertyDef &, TTextPropertyConditionCompareMethod, const TDesC &)

CMdETextPropertyCondition *NewLC(const CMdEPropertyDef &aPropertyDef,
TTextPropertyConditionCompareMethodaCompareMethod,
const TDesC &aText
)[static]

Constructs a new text property condition node, leaving it on the cleanup stack.

Parameters

const CMdEPropertyDef & aPropertyDefProperty definition.
TTextPropertyConditionCompareMethod aCompareMethodText comparison method.
const TDesC & aTextText to look for.

RequiredBufferSize()

TUint32 RequiredBufferSize()const

Get required size of serialized buffer when this is serialized.

SerializeL(CMdCSerializationBuffer &, TMdCOffset &)

voidSerializeL(CMdCSerializationBuffer &aBuffer,
TMdCOffset &aFreespaceOffset
)const

Serialize own data to serialized buffer (correct position must be set before calling) and return new position of serialized buffer.

Parameters

CMdCSerializationBuffer & aBufferserialized buffer.
TMdCOffset & aFreespaceOffset

Text()

const TDesC &Text()const

Returns the text of the condition.

Member Data Documentation

TTextPropertyConditionCompareMethod iCompareMethod

TTextPropertyConditionCompareMethodiCompareMethod[private]

The comparison method used when searching for the string.

HBufC * iText

HBufC *iText[private]

The string to look for.