CMdEEventCondition Class Reference

class CMdEEventCondition

Query condition for events.

Public Member Functions
~CMdEEventCondition()
IMPORT_C const CMdEEventDef *EventDef()
IMPORT_C TItemIdEventId()
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()
voidSerializeL(CMdCSerializationBuffer &, TMdCOffset &)
IMPORT_C CMdELogicCondition &SourceObjectConditionsL()
IMPORT_C const TDesC *SourceURI()
IMPORT_C const TMdETimeRange *TimeRange()
Private Member Functions
CMdEEventCondition(TItemId, const CMdEEventDef *)
voidConstructL(const TMdETimeRange *, TEventConditionCompareMethod, const TDesC *)
Private Attributes
TEventConditionCompareMethodiCompareMethod
TMdETimeRange *iCreationTimeRange
const CMdEEventDef *iEventDef
const TItemIdiEventId
CMdELogicCondition *iObjectConditions
CMdELogicCondition *iParticipantConditions
CMdELogicCondition *iSourceConditions
HBufC *iURI

Constructor & Destructor Documentation

CMdEEventCondition(TItemId, const CMdEEventDef *)

CMdEEventCondition(TItemIdaEventId,
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 aEventIdEvent ID.
const CMdEEventDef * aEventDefEvent definition.

~CMdEEventCondition()

~CMdEEventCondition()[virtual]

Destructor.

Member Functions Documentation

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

voidConstructL(const TMdETimeRange *aCreationTimeRange,
TEventConditionCompareMethodaCompareMethod = EEventConditionCompareNone,
const TDesC *aString = 0
)[private]

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

Parameters

const TMdETimeRange * aCreationTimeRangeRange for the creation time.
TEventConditionCompareMethod aCompareMethod = EEventConditionCompareNoneComparison method for the string.
const TDesC * aString = 0Text string to match.

EventDef()

IMPORT_C const CMdEEventDef *EventDef()const

Returns the event definition that the condition matches against.

EventId()

IMPORT_C TItemIdEventId()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(TItemIdaEventId =  KNoId ,
const CMdEEventDef *aEventDef = NULL,
const TMdETimeRange *aCreationTimeRange = NULL,
TEventConditionCompareMethodaCompareMethod = 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(TItemIdaEventId =  KNoId ,
const CMdEEventDef *aEventDef = NULL,
const TMdETimeRange *aCreationTimeRange = NULL,
TEventConditionCompareMethodaCompareMethod = 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 &)

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

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

TEventConditionCompareMethodiCompareMethod[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 TItemIdiEventId[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.