CMdEEventCondition Class Reference

class CMdEEventCondition

Query condition for events.

Public Member Functions
~CMdEEventCondition ()
IMPORT_C const CMdEEventDef * EventDef ()
IMPORT_C TItemId EventId ()
TUint32 InternalQueryOptimizationFlags ( TUint32 &)
CMdEEventCondition * NewL ( TItemId , const CMdEEventDef *, const TMdETimeRange *, TEventConditionCompareMethod, const TDesC *)
CMdEEventCondition * NewLC ( TItemId , const CMdEEventDef *, const TMdETimeRange *, TEventConditionCompareMethod, const TDesC *)
IMPORT_C CMdELogicCondition & ObjectConditionsL ()
IMPORT_C CMdELogicCondition & ParticipantObjectConditionsL ()
IMPORT_C const TDesC * ParticipantURI ()
TUint32 RequiredBufferSize ()
void SerializeL (CMdCSerializationBuffer &, TMdCOffset &)
IMPORT_C CMdELogicCondition & SourceObjectConditionsL ()
IMPORT_C const TDesC * SourceURI ()
IMPORT_C const TMdETimeRange * TimeRange ()
Private Member Functions
CMdEEventCondition ( TItemId , const CMdEEventDef *)
void ConstructL (const TMdETimeRange *, TEventConditionCompareMethod, const TDesC *)
Private Attributes
TEventConditionCompareMethod iCompareMethod
TMdETimeRange * iCreationTimeRange
const CMdEEventDef * iEventDef
const TItemId iEventId
CMdELogicCondition * iObjectConditions
CMdELogicCondition * iParticipantConditions
CMdELogicCondition * iSourceConditions
HBufC * iURI

Constructor & Destructor Documentation

CMdEEventCondition(TItemId, const CMdEEventDef *)

CMdEEventCondition ( TItemId aEventId,
const CMdEEventDef * aEventDef
) [private]

Constructor for a condition that requires that the event ID a certain ID or event is of a certain type.

Parameters

TItemId aEventId Event ID.
const CMdEEventDef * aEventDef Event definition.

~CMdEEventCondition()

~CMdEEventCondition ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL(const TMdETimeRange *, TEventConditionCompareMethod, const TDesC *)

void ConstructL ( const TMdETimeRange * aCreationTimeRange,
TEventConditionCompareMethod aCompareMethod = EEventConditionCompareNone,
const TDesC * aString = 0
) [private]

Second-phase constructor. Pass NULL in parameters that are not needed.

Parameters

const TMdETimeRange * aCreationTimeRange Range for the creation time.
TEventConditionCompareMethod aCompareMethod = EEventConditionCompareNone Comparison method for the string.
const TDesC * aString = 0 Text string to match.

EventDef()

IMPORT_C const CMdEEventDef * EventDef ( ) const

Returns the event definition that the condition matches against.

EventId()

IMPORT_C TItemId EventId ( ) const

Returns the event ID that the condition matches against.

InternalQueryOptimizationFlags(TUint32 &)

TUint32 InternalQueryOptimizationFlags ( TUint32 & aFlags )

Get possible query's internal optimization flags from condition.

Parameters

TUint32 & aFlags

NewL(TItemId, const CMdEEventDef *, const TMdETimeRange *, TEventConditionCompareMethod, const TDesC *)

CMdEEventCondition * NewL ( TItemId aEventId =  KNoId ,
const CMdEEventDef * aEventDef = NULL,
const TMdETimeRange * aCreationTimeRange = NULL,
TEventConditionCompareMethod aCompareMethod = EEventConditionCompareNone,
const TDesC * aString = NULL
) [static]

Create new CMdEEventCondition from serialized buffer

Parameters

TItemId aEventId =  KNoId
const CMdEEventDef * aEventDef = NULL
const TMdETimeRange * aCreationTimeRange = NULL
TEventConditionCompareMethod aCompareMethod = EEventConditionCompareNone
const TDesC * aString = NULL

NewLC(TItemId, const CMdEEventDef *, const TMdETimeRange *, TEventConditionCompareMethod, const TDesC *)

CMdEEventCondition * NewLC ( TItemId aEventId =  KNoId ,
const CMdEEventDef * aEventDef = NULL,
const TMdETimeRange * aCreationTimeRange = NULL,
TEventConditionCompareMethod aCompareMethod = EEventConditionCompareNone,
const TDesC * aString = NULL
) [static]

Create new CMdEEventCondition from serialized buffer and leaves it on stack

Parameters

TItemId aEventId =  KNoId
const CMdEEventDef * aEventDef = NULL
const TMdETimeRange * aCreationTimeRange = NULL
TEventConditionCompareMethod aCompareMethod = EEventConditionCompareNone
const TDesC * aString = NULL

ObjectConditionsL()

IMPORT_C CMdELogicCondition & ObjectConditionsL ( )

Returns the logic condition root node of the conditions defined for the object which the event is attached to.

ParticipantObjectConditionsL()

IMPORT_C CMdELogicCondition & ParticipantObjectConditionsL ( )

Returns the logic condition root node of the condition defined for the object whose URI matches the source URI of the event.

ParticipantURI()

IMPORT_C const TDesC * ParticipantURI ( ) const

Returns the participant URI the condition matches against.

RequiredBufferSize()

TUint32 RequiredBufferSize ( ) const

Get required size of serialized buffer when it 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

SourceObjectConditionsL()

IMPORT_C CMdELogicCondition & SourceObjectConditionsL ( )

Returns the logic condition root node of the condition defined for the object whose URI matches the source URI of the event.

SourceURI()

IMPORT_C const TDesC * SourceURI ( ) const

Returns the source URI the condition matches against.

TimeRange()

IMPORT_C const TMdETimeRange * TimeRange ( ) const

Returns the creation time range of the condition.

Member Data Documentation

TEventConditionCompareMethod iCompareMethod

TEventConditionCompareMethod iCompareMethod [private]

Method of comparison.

TMdETimeRange * iCreationTimeRange

TMdETimeRange * iCreationTimeRange [private]

Creation time range. NULL , if not defined.

const CMdEEventDef * iEventDef

const CMdEEventDef * iEventDef [private]

Event definition to match. NULL , if not defined.

const TItemId iEventId

const TItemId iEventId [private]

CMdELogicCondition * iObjectConditions

CMdELogicCondition * iObjectConditions [private]

Conditions for the object which the event is associated with.

CMdELogicCondition * iParticipantConditions

CMdELogicCondition * iParticipantConditions [private]

Conditions for the object whose URI matches the participant URI.

CMdELogicCondition * iSourceConditions

CMdELogicCondition * iSourceConditions [private]

Conditions for the object whose URI matches the source URI.

HBufC * iURI

HBufC * iURI [private]

Source of participant URI to match. NULL , if not defined.