MESMRCalDbMgr Class Reference

class MESMRCalDbMgr : public MCalProgressCallBack

MESMRServicesCalDbMgr defines interface for calendar DB operations.

esmrservices.lib

Inherits from

Public Member Functions
~MESMRCalDbMgr()
CCalSession &CalSession()
voidDeleteEntryCondL(const TDesC8 &)
voidDeleteEntryCondL(const TCalLocalUid &)
voidDeleteEntryCondL(const CCalEntry &)
voidDeleteEntryCondL(const CalCommon::TCalTimeRange &)
TInt DeleteEntryL(const TDesC8 &, TInt)
TInt DeleteEntryL(const TCalLocalUid &, TInt)
CCalEntryView *EntryView()
CCalEntryView *EntryViewL(const CCalEntry &)
voidFetchEntriesL(RPointerArray< CCalEntry > &, const CalCommon::TCalTimeRange &)
CCalEntry *FetchEntryL(const TDesC8 &, const TCalTime &)
CCalInstance *FindInstanceL(const CCalEntry &)
TRgb GetCalendarColorByEntryL(MESMRCalEntry &)
TRgb GetCalendarColorByNameL(const TDesC &)
TPtrC GetCalendarNameByEntryL(MESMRCalEntry &)
TInt GetCurCalendarColIdL()
TRgb GetCurCalendarColor()
TInt GetCurCalendarIndex()
voidGetMultiCalendarNameListL(RArray< TPtrC > &)
CCalInstanceView *InstanceViewL(const CCalEntry &)
RPointerArray< CCalInstanceView >NormalDbAllCalenInstanceView()
CCalEntryView *NormalDbEntryView()
CCalInstanceView *NormalDbInstanceView()
voidSetCurCalendarByColIdL(TInt)
voidSetCurCalendarByDbIdL(TCalFileId)
voidSetCurCalendarByEntryL(MESMRCalEntry &)
voidSetCurCalendarByIndex(TInt)
voidSetCurCalendarByNameL(const TDesC &)
MESMRUtilsTombsExt::TESMRUtilsDbResult StoreEntryCondL(CCalEntry &, TBool, TBool)
TInt StoreEntryL(CCalEntry &, TBool)
TInt UpdateEntryL(const CCalEntry &)
Inherited Functions
MCalProgressCallBack::Completed(TInt)
MCalProgressCallBack::NotifyProgress()
MCalProgressCallBack::Progress(TInt)

Constructor & Destructor Documentation

~MESMRCalDbMgr()

~MESMRCalDbMgr()[inline, virtual]

Destructor.

Member Functions Documentation

CalSession()

CCalSession &CalSession()[pure virtual]

Fetches the calendar session associated with this cal db manager.

DeleteEntryCondL(const TDesC8 &)

voidDeleteEntryCondL(const TDesC8 &aUid)[pure virtual]

Delete entry from Agenda Model if found This method causes deletion of all entries with given GUID.

Parameters

const TDesC8 & aUiddetermines entry to be deleted

DeleteEntryCondL(const TCalLocalUid &)

voidDeleteEntryCondL(const TCalLocalUid &aLocalUid)[pure virtual]

Delete entry from Agenda Model if found. This method causes deletion of a modifying entry, or entire recurring event if aLocalUid corresponds to an originating entry.

Parameters

const TCalLocalUid & aLocalUiddetermines entry to be deleted

DeleteEntryCondL(const CCalEntry &)

voidDeleteEntryCondL(const CCalEntry &aCalEntry)[pure virtual]

Delete entry from Agenda Model if found. This method causes deletion of a modifying entry, or entire recurring event if aCalEntry is an originating entry.

Parameters

const CCalEntry & aCalEntryentry to be deleted

DeleteEntryCondL(const CalCommon::TCalTimeRange &)

voidDeleteEntryCondL(const CalCommon::TCalTimeRange &aCalTimeRange)[pure virtual]

Delete entries from Agenda Model if found. This is asynchronous, user gets notified with MMRUtilsObserver::HandleOperation( EDeleteEntries,... )

Parameters

const CalCommon::TCalTimeRange & aCalTimeRangedetermines entries to be deleted

DeleteEntryL(const TDesC8 &, TInt)

TInt DeleteEntryL(const TDesC8 &aUid,
TIntaCalenIndex
)[pure virtual]

Deletes the given entry from the Agenda Model.

Parameters

const TDesC8 & aUidEntry uid to be deleted
TInt aCalenIndex

DeleteEntryL(const TCalLocalUid &, TInt)

TInt DeleteEntryL(const TCalLocalUid &aLocalUid,
TIntaCalenIndex
)[pure virtual]

Deletes the given entry from the Agenda Model.

Parameters

const TCalLocalUid & aLocalUidEntry uid to be deleted
TInt aCalenIndex

EntryView()

CCalEntryView *EntryView()[pure virtual]

EntryViewL(const CCalEntry &)

CCalEntryView *EntryViewL(const CCalEntry &aCalEntry)[pure virtual]

Parameters

const CCalEntry & aCalEntry

FetchEntriesL(RPointerArray< CCalEntry > &, const CalCommon::TCalTimeRange &)

voidFetchEntriesL(RPointerArray< CCalEntry > &aCalEntryArray,
const CalCommon::TCalTimeRange &aTimeRange
)[pure virtual]

Fetches entries from the Agenda Model based on time range. In case of repeating entries the entire sequence must be within range (but modifying entries are considered separately). Ownership of entries is transferred to caller. See CCalEntryView documentation for other fetch variants.

Parameters

RPointerArray< CCalEntry > & aCalEntryArraywill contain fetched entries
const CalCommon::TCalTimeRange & aTimeRangecriteria

FetchEntryL(const TDesC8 &, const TCalTime &)

CCalEntry *FetchEntryL(const TDesC8 &aUid,
const TCalTime &aRecurrenceId
)[pure virtual]

Fetches entry from the Agenda Model based on Uid and recurrence id. See CCalEntryView documentation for other fetch variants. For fetching originating entry use TCalTime set to Time::NullTTime(). Returns NULL if no matching entry was found.

Parameters

const TDesC8 & aUidcriteria
const TCalTime & aRecurrenceIdcriteria

FindInstanceL(const CCalEntry &)

CCalInstance *FindInstanceL(const CCalEntry &aEntry)[pure virtual]

Finds matching calendar instance from calendar db. Ownership is transferred to caller. If instance cannot be found, NULL is returned.

Parameters

const CCalEntry & aEntryReference to calendar entry

GetCalendarColorByEntryL(MESMRCalEntry &)

TRgb GetCalendarColorByEntryL(MESMRCalEntry &aEntry)[pure virtual]

Get calendar's color by entry

Parameters

MESMRCalEntry & aEntryReference to calendar entry

GetCalendarColorByNameL(const TDesC &)

TRgb GetCalendarColorByNameL(const TDesC &aCalendarName)[pure virtual]

Get calendar's color by calendar name

Parameters

const TDesC & aCalendarNameReference to calendar name

GetCalendarNameByEntryL(MESMRCalEntry &)

TPtrC GetCalendarNameByEntryL(MESMRCalEntry &aEntry)[pure virtual]

Get calendar's name by entry

Parameters

MESMRCalEntry & aEntryReference to calendar entry

GetCurCalendarColIdL()

TInt GetCurCalendarColIdL()[pure virtual]

GetCurCalendarColor()

TRgb GetCurCalendarColor()[pure virtual]

GetCurCalendarIndex()

TInt GetCurCalendarIndex()[pure virtual]

GetMultiCalendarNameListL(RArray< TPtrC > &)

voidGetMultiCalendarNameListL(RArray< TPtrC > &aCalendarNameList)[pure virtual]

Get multi-calendar name list

Parameters

RArray< TPtrC > & aCalendarNameListReference to name string array

InstanceViewL(const CCalEntry &)

CCalInstanceView *InstanceViewL(const CCalEntry &aCalEntry)[pure virtual]

Parameters

const CCalEntry & aCalEntry

NormalDbAllCalenInstanceView()

RPointerArray< CCalInstanceView >NormalDbAllCalenInstanceView()[pure virtual]

Accessor for Agenda Model CCalInstanceView owned by this utility. Returns a valid array of pointer if status is EAvailable or EAvailableWithoutTombs, otherwise NULL.

NormalDbEntryView()

CCalEntryView *NormalDbEntryView()[pure virtual]

Accessor for Agenda Model CCalEntryView owned by utility. Returns a valid pointer if status is EAvailable or EAvailableWithoutTombs, otherwise NULL.

NormalDbInstanceView()

CCalInstanceView *NormalDbInstanceView()[pure virtual]

Accessor for Agenda Model CCalInstanceView owned by this utility. Returns a valid pointer if status is EAvailable or EAvailableWithoutTombs, otherwise NULL.

SetCurCalendarByColIdL(TInt)

voidSetCurCalendarByColIdL(TIntaColId)[pure virtual]

Set current calendar by pass entry

Parameters

TInt aColIdcurrent calendar collectionID

SetCurCalendarByDbIdL(TCalFileId)

voidSetCurCalendarByDbIdL(TCalFileIdaDbId)[pure virtual]

Sets current calendar by calendar database file id.

Parameters

TCalFileId aDbIdcalendar database file id to use

SetCurCalendarByEntryL(MESMRCalEntry &)

voidSetCurCalendarByEntryL(MESMRCalEntry &aEntry)[pure virtual]

Set current calendar by pass entry

Parameters

MESMRCalEntry & aEntryentry which belongs current calendar

SetCurCalendarByIndex(TInt)

voidSetCurCalendarByIndex(TIntaIndex)[pure virtual]

Set current calendar by pass calendar index to it

Parameters

TInt aIndexcurrent calendar index

SetCurCalendarByNameL(const TDesC &)

voidSetCurCalendarByNameL(const TDesC &aCalendarName)[pure virtual]

Set current calendar by pass calendar name to it

Parameters

const TDesC & aCalendarNamecurrent calendar name

StoreEntryCondL(CCalEntry &, TBool, TBool)

MESMRUtilsTombsExt::TESMRUtilsDbResult StoreEntryCondL(CCalEntry &aCalEntry,
TBoolaResurrect,
TBoolaCheckOnly = EFalse
)[pure virtual]

Check entry: GUID, sequence number, existence in Agenda Model and tombstone database. Same as CMRUtilsTombsExt::StoreL() but doesn't actually store.

Parameters

CCalEntry & aCalEntryentry to be stored
TBool aResurrect
TBool aCheckOnly = EFalse

StoreEntryL(CCalEntry &, TBool)

TInt StoreEntryL(CCalEntry &aCalEntry,
TBoolaToNormalDb = ETrue
)[pure virtual]

Stores the given entry in the Agenda Model. Entry is either stored to normal calendar DB or to tombstone calendar DB depending from input parameters.

Parameters

CCalEntry & aCalEntryentry to be stored. aToNormalDb ETrue --> stored to normal DB. EFalse --> stored to tombstone calendar DB.
TBool aToNormalDb = ETrue

UpdateEntryL(const CCalEntry &)

TInt UpdateEntryL(const CCalEntry &aCalEntry)[pure virtual]

Updates the given entry in the Agenda Model.

Parameters

const CCalEntry & aCalEntryentry to update