CMdETextPropertyCondition Class Reference

class CMdETextPropertyCondition

Instances of CMdETextPropertyCondition are associated with a specific property definition.

Public Member Functions
~CMdETextPropertyCondition ()
TTextPropertyConditionCompareMethod CompareMethod ()
TUint32 InternalQueryOptimizationFlags ( TUint32 &)
CMdETextPropertyCondition * NewL (const CMdEPropertyDef &, TTextPropertyConditionCompareMethod, const TDesC &)
CMdETextPropertyCondition * NewLC (const CMdEPropertyDef &, TTextPropertyConditionCompareMethod, const TDesC &)
TUint32 RequiredBufferSize ()
void SerializeL (CMdCSerializationBuffer &, TMdCOffset &)
const TDesC & Text ()
Protected Member Functions
CMdETextPropertyCondition (const CMdEPropertyDef &, TTextPropertyConditionCompareMethod)
void ConstructL (const TDesC &)
Private Attributes
TTextPropertyConditionCompareMethod iCompareMethod
HBufC * iText

Constructor & Destructor Documentation

CMdETextPropertyCondition(const CMdEPropertyDef &, TTextPropertyConditionCompareMethod)

CMdETextPropertyCondition ( const CMdEPropertyDef & aPropertyDef,
TTextPropertyConditionCompareMethod aCompareMethod
) [protected]

Constructor.

Parameters

const CMdEPropertyDef & aPropertyDef
TTextPropertyConditionCompareMethod aCompareMethod

~CMdETextPropertyCondition()

~CMdETextPropertyCondition ( ) [virtual]

Destructor.

Member Functions Documentation

CompareMethod()

TTextPropertyConditionCompareMethod CompareMethod ( ) const

Returns the comparison method of the condition.

ConstructL(const TDesC &)

void ConstructL ( 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,
TTextPropertyConditionCompareMethod aCompareMethod,
const TDesC & aText
) [static]

Constructs a new text property condition node.

Parameters

const CMdEPropertyDef & aPropertyDef Property definition.
TTextPropertyConditionCompareMethod aCompareMethod Text comparison method.
const TDesC & aText Text to look for.

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

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

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

Parameters

const CMdEPropertyDef & aPropertyDef Property definition.
TTextPropertyConditionCompareMethod aCompareMethod Text comparison method.
const TDesC & aText Text to look for.

RequiredBufferSize()

TUint32 RequiredBufferSize ( ) const

Get required size of serialized buffer when this is serialized.

SerializeL(CMdCSerializationBuffer &, TMdCOffset &)

void SerializeL ( 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 & aBuffer serialized buffer.
TMdCOffset & aFreespaceOffset

Text()

const TDesC & Text ( ) const

Returns the text of the condition.

Member Data Documentation

TTextPropertyConditionCompareMethod iCompareMethod

TTextPropertyConditionCompareMethod iCompareMethod [private]

The comparison method used when searching for the string.

HBufC * iText

HBufC * iText [private]

The string to look for.