MESMRCalEntry Class Reference

class MESMRCalEntry

MESMRMeetingRequestEntry provides utility functions for handling MR Entry.

esmrservices.lib

Public Member Functions
~MESMRCalEntry()
TBool AnyInstancesBetweenTimePeriodL(TTime &, TTime &)
TBool CanSetRecurrenceL()
CCalEntry *CloneEntryLC(TESMRCalEntryType)
TBool ContainsRemoteAttachmentsL()
const CCalEntry &Entry()
CCalEntry &Entry()
voidGetAlarmL(TESMRAlarmType &, TTime &)
MESMRCalDbMgr &GetDBMgr()
voidGetFirstInstanceStartAndEndTimeL(TTime &, TTime &)
TUint GetPriorityL()
voidGetRecurrenceL(TESMRRecurrenceValue &, TTime &)
CCalInstance *InstanceL()
TBool IsAllDayEventL()
TBool IsEntryEditedL()
TBool IsEntryTypeChangedL()
TBool IsRecurrentEventL()
TBool IsStoredL()
MESMRCalEntry &MESMRCalEntryRef()
const MESMRCalEntry &MESMRCalEntryRef()
const CCalEntry &OriginalEntry()
TESMRRecurrenceModifyingRule RecurrenceModRule()
CCalEntry *RemoveInstanceFromSeriesL()
voidSetAllDayEventL(TTime, TTime)
voidSetDefaultValuesToEntryL()
voidSetModifyingRuleL(TESMRRecurrenceModifyingRule, const TBool)
voidSetPriorityL(TUint)
voidSetRecurrenceL(TESMRRecurrenceValue, TTime)
voidSetTypeChanged(TBool)
TBool SupportsCapabilityL(TMREntryCapability)
TESMRCalEntryType Type()
voidUpdateComparativeEntry(CCalEntry *)
voidUpdateEntryAfterStoringL()
voidUpdateTimeStampL()
CCalEntry *ValidateEntryL()
Public Member Enumerations
enumTESMRAlarmType { EESMRAlarmNotFound, EESMRAlarmAbsolute, EESMRAlarmRelative }
enumTESMRCalEntryType {
EESMRCalEntryNotSupported = EESMREventTypeNone, EESMRCalEntryMeetingRequest = EESMREventTypeMeetingRequest, EESMRCalEntryMeeting = EESMREventTypeAppt, EESMRCalEntryTodo = EESMREventTypeETodo, EESMRCalEntryMemo = EESMREventTypeEEvent, EESMRCalEntryReminder = EESMREventTypeEReminder, EESMRCalEntryAnniversary = EESMREventTypeEAnniv
}
enumTESMRRecurrenceModifyingRule { EESMRThisOnly, EESMRAllInSeries }
enumTMREntryCapability { EMRCapabilityAttachments }

Constructor & Destructor Documentation

~MESMRCalEntry()

~MESMRCalEntry()[inline, virtual]

Virtual destructor.

Member Functions Documentation

AnyInstancesBetweenTimePeriodL(TTime &, TTime &)

TBool AnyInstancesBetweenTimePeriodL(TTime &aStart,
TTime &aEnd
)[pure virtual]

Checks if any instance (having same UID) occurs between specified time. Time information is considered to be device's local time.

Parameters

TTime & aStartStart time
TTime & aEndEnd time

CanSetRecurrenceL()

TBool CanSetRecurrenceL()const [pure virtual]

Tests, if recurrence can be set.

CloneEntryLC(TESMRCalEntryType)

CCalEntry *CloneEntryLC(TESMRCalEntryTypeaType = EESMRCalEntryNotSupported)const [pure virtual]

Clones entry and leaves the clone into CleanupStack.

Parameters

TESMRCalEntryType aType = EESMRCalEntryNotSupportedthe entry type of the clone. If EESMRCalEntryNotSupported the original type is preserved.

ContainsRemoteAttachmentsL()

TBool ContainsRemoteAttachmentsL()[pure virtual]

Tests whether entry contains remote attachments or not.

Entry()

const CCalEntry &Entry()const [pure virtual]

Fetches constant reference to CCalEntry.

Entry()

CCalEntry &Entry()[pure virtual]

Fetches reference to CCalEntry.

GetAlarmL(TESMRAlarmType &, TTime &)

voidGetAlarmL(TESMRAlarmType &aAlarmType,
TTime &aAlarmTime
)[pure virtual]

Fetches alarm information from entry.

Parameters

TESMRAlarmType & aAlarmTypeOn return contains alarm type.
TTime & aAlarmTimeOn return contains time when alarm occurs.

GetDBMgr()

MESMRCalDbMgr &GetDBMgr()[pure virtual]

Get calendar dbmgr

GetFirstInstanceStartAndEndTimeL(TTime &, TTime &)

voidGetFirstInstanceStartAndEndTimeL(TTime &aStart,
TTime &aEnd
)[pure virtual]

Fetches first instances start and end time. For non-recurrent entries this returns the entry's start and end time.

Parameters

TTime & aStartOn returns contains the first instance's start time.
TTime & aEndOn returns contains the first instance's end time.

GetPriorityL()

TUint GetPriorityL()const [pure virtual]

Fetches the entry priority.

GetRecurrenceL(TESMRRecurrenceValue &, TTime &)

voidGetRecurrenceL(TESMRRecurrenceValue &aRecurrence,
TTime &aUntil
)const [pure virtual]

Fetches entry's recurrence value.

Parameters

TESMRRecurrenceValue & aRecurrenceOn return contains entry's recurrence information
TTime & aUntilOn return contains time in UTC until recurrence is valid.

InstanceL()

CCalInstance *InstanceL()const [pure virtual]

Fetches calendar entry's instance. Ownership is transferred to caller.

IsAllDayEventL()

TBool IsAllDayEventL()const [pure virtual]

Tests, if entry is all day event.

IsEntryEditedL()

TBool IsEntryEditedL()const [pure virtual]

Tests, whether entry is edited.

IsEntryTypeChangedL()

TBool IsEntryTypeChangedL()const [pure virtual]

Tests, if entry type has changed from the original

IsRecurrentEventL()

TBool IsRecurrentEventL()const [pure virtual]

Tests, if this is recurrent meeting request.

IsStoredL()

TBool IsStoredL()const [pure virtual]

Tests whether this entry has been stored to db or not.

MESMRCalEntryRef()

MESMRCalEntry &MESMRCalEntryRef()[pure virtual]

Fetches reference to this calendar entry.

MESMRCalEntryRef()

const MESMRCalEntry &MESMRCalEntryRef()const [pure virtual]

Fetches const reference to this calendar entry.

OriginalEntry()

const CCalEntry &OriginalEntry()[pure virtual]

Fetches unmodified entry instance.

RecurrenceModRule()

TESMRRecurrenceModifyingRule RecurrenceModRule()const [pure virtual]

Fetches recurrence modification rule.

RemoveInstanceFromSeriesL()

CCalEntry *RemoveInstanceFromSeriesL()[pure virtual]

For recurrent event method removes this from the series. Entry needs to be recurrent event and modification rule needs to be MESMRCalEntry::EESMRThisOnly. Ownership of the returned calendar entry is transferred to caller.

SetAllDayEventL(TTime, TTime)

voidSetAllDayEventL(TTimeaStartDate,
TTimeaEndDate
)[pure virtual]

Sets meeting to be all day event.

Parameters

TTime aStartDateStart date information
TTime aEndDateEnd date information

SetDefaultValuesToEntryL()

voidSetDefaultValuesToEntryL()[pure virtual]

Sets default values to entry.

SetModifyingRuleL(TESMRRecurrenceModifyingRule, const TBool)

voidSetModifyingRuleL(TESMRRecurrenceModifyingRuleaRule,
const TBoolaTypeChanging = EFalse
)[pure virtual]

Sets modifying rule role to meeting request.

Parameters

TESMRRecurrenceModifyingRule aRuleETrue event type is changing.
const TBool aTypeChanging = EFalse

SetPriorityL(TUint)

voidSetPriorityL(TUintaPriority)[pure virtual]

Sets the entry priority.

Parameters

TUint aPriorityentry priority.

SetRecurrenceL(TESMRRecurrenceValue, TTime)

voidSetRecurrenceL(TESMRRecurrenceValueaRecurrence,
TTimeaUntil = Time::NullTTime()
)[pure virtual]

Sets recurrence to ES MR entry. If until time is not set (i.e, it is null time), then until time is implementation dependent. When recurrence is set to ERecurrenceNot, then aUntil parameter is ignored.

Parameters

TESMRRecurrenceValue aRecurrence
TTime aUntil = Time::NullTTime()Recurrence valid until in UTC format. KErrNotSupported Entry cannot be recurrenced.

SetTypeChanged(TBool)

voidSetTypeChanged(TBoolaTypeChanged)[pure virtual]

Sets the entry type changed

Parameters

TBool aTypeChanged

SupportsCapabilityL(TMREntryCapability)

TBool SupportsCapabilityL(TMREntryCapabilityaCapability)const [pure virtual]

Tests whether entry supports capability or not.

Parameters

TMREntryCapability aCapabilityCapability to be checked

Type()

TESMRCalEntryType Type()const [pure virtual]

Fetches calendar entry type.

UpdateComparativeEntry(CCalEntry *)

voidUpdateComparativeEntry(CCalEntry *aNewComparativeEntry)[pure virtual]

Updates the comparative entry (needed in entry type changing)

Parameters

CCalEntry * aNewComparativeEntry

UpdateEntryAfterStoringL()

voidUpdateEntryAfterStoringL()[pure virtual]

Updates the entry after storing

UpdateTimeStampL()

voidUpdateTimeStampL()[pure virtual]

Updates entry's timestamp (DTSTAMP) information.

ValidateEntryL()

CCalEntry *ValidateEntryL()[pure virtual]

Fetches validated entry. Ownership is transferred to caller.

Member Enumerations Documentation

Enum TESMRAlarmType

Enumeration for alarm type

Enumerators

EESMRAlarmNotFound

Entry does not contain alarm

EESMRAlarmAbsolute

Alarm is absolute

EESMRAlarmRelative

Alarm is relative to meeting start time

Enum TESMRCalEntryType

Enumeration for cal entry type

Enumerators

EESMRCalEntryNotSupported = EESMREventTypeNone
EESMRCalEntryMeetingRequest = EESMREventTypeMeetingRequest
EESMRCalEntryMeeting = EESMREventTypeAppt
EESMRCalEntryTodo = EESMREventTypeETodo
EESMRCalEntryMemo = EESMREventTypeEEvent
EESMRCalEntryReminder = EESMREventTypeEReminder
EESMRCalEntryAnniversary = EESMREventTypeEAnniv

Enum TESMRRecurrenceModifyingRule

Enumeration for recurrence modifying rule

Enumerators

EESMRThisOnly
EESMRAllInSeries

Enum TMREntryCapability

Enumeration for entry

Enumerators

EMRCapabilityAttachments