MESMRCalDbMgr Class Reference
class MESMRCalDbMgr : public MCalProgressCallBack
|
MESMRServicesCalDbMgr defines interface for calendar DB operations.
esmrservices.lib
Constructor & Destructor Documentation
~MESMRCalDbMgr()
~MESMRCalDbMgr
|
(
|
)
|
[inline, virtual]
|
Member Functions Documentation
CalSession()
CCalSession &
|
CalSession
|
(
|
)
|
[pure virtual]
|
Fetches the calendar session associated with this cal db manager.
DeleteEntryCondL(const TDesC8 &)
void
|
DeleteEntryCondL
|
(
|
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
& aUid
|
determines entry to be deleted
|
DeleteEntryCondL(const TCalLocalUid &)
void
|
DeleteEntryCondL
|
(
|
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
& aLocalUid
|
determines entry to be deleted
|
DeleteEntryCondL(const CCalEntry &)
void
|
DeleteEntryCondL
|
(
|
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
& aCalEntry
|
entry to be deleted
|
DeleteEntryCondL(const CalCommon::TCalTimeRange &)
DeleteEntryL(const TDesC8 &, TInt)
TInt
|
DeleteEntryL
|
(
|
const
TDesC8
&
|
aUid,
|
|
TInt
|
aCalenIndex
|
|
)
|
[pure virtual]
|
Deletes the given entry from the Agenda Model.
Parameters
const
TDesC8
& aUid
|
Entry uid to be deleted
|
TInt
aCalenIndex
|
|
DeleteEntryL(const TCalLocalUid &, TInt)
Deletes the given entry from the Agenda Model.
EntryViewL(const CCalEntry &)
FetchEntriesL(RPointerArray< CCalEntry > &, const CalCommon::TCalTimeRange &)
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.
FetchEntryL(const TDesC8 &, const TCalTime &)
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.
FindInstanceL(const CCalEntry &)
Finds matching calendar instance from calendar db. Ownership is transferred to caller. If instance cannot be found, NULL is returned.
Parameters
const
CCalEntry
& aEntry
|
Reference to calendar entry
|
GetCalendarColorByEntryL(MESMRCalEntry &)
Get calendar's color by entry
GetCalendarColorByNameL(const TDesC &)
TRgb
|
GetCalendarColorByNameL
|
(
|
const
TDesC
&
|
aCalendarName
|
)
|
[pure virtual]
|
Get calendar's color by calendar name
Parameters
const
TDesC
& aCalendarName
|
Reference to calendar name
|
GetCalendarNameByEntryL(MESMRCalEntry &)
Get calendar's name by entry
GetCurCalendarColIdL()
TInt
|
GetCurCalendarColIdL
|
(
|
)
|
[pure virtual]
|
GetCurCalendarColor()
TRgb
|
GetCurCalendarColor
|
(
|
)
|
[pure virtual]
|
GetCurCalendarIndex()
TInt
|
GetCurCalendarIndex
|
(
|
)
|
[pure virtual]
|
GetMultiCalendarNameListL(RArray< TPtrC > &)
void
|
GetMultiCalendarNameListL
|
(
|
RArray
<
TPtrC
> &
|
aCalendarNameList
|
)
|
[pure virtual]
|
Get multi-calendar name list
Parameters
RArray
<
TPtrC
> & aCalendarNameList
|
Reference to name string array
|
InstanceViewL(const CCalEntry &)
NormalDbAllCalenInstanceView()
Accessor for Agenda Model
CCalInstanceView
owned by this utility. Returns a valid array of pointer if status is EAvailable or EAvailableWithoutTombs, otherwise NULL.
NormalDbEntryView()
Accessor for Agenda Model
CCalEntryView
owned by utility. Returns a valid pointer if status is EAvailable or EAvailableWithoutTombs, otherwise NULL.
NormalDbInstanceView()
Accessor for Agenda Model
CCalInstanceView
owned by this utility. Returns a valid pointer if status is EAvailable or EAvailableWithoutTombs, otherwise NULL.
SetCurCalendarByColIdL(TInt)
void
|
SetCurCalendarByColIdL
|
(
|
TInt
|
aColId
|
)
|
[pure virtual]
|
Set current calendar by pass entry
Parameters
TInt
aColId
|
current calendar collectionID
|
SetCurCalendarByDbIdL(TCalFileId)
void
|
SetCurCalendarByDbIdL
|
(
|
TCalFileId
|
aDbId
|
)
|
[pure virtual]
|
Sets current calendar by calendar database file id.
SetCurCalendarByEntryL(MESMRCalEntry &)
void
|
SetCurCalendarByEntryL
|
(
|
MESMRCalEntry
&
|
aEntry
|
)
|
[pure virtual]
|
Set current calendar by pass entry
SetCurCalendarByIndex(TInt)
void
|
SetCurCalendarByIndex
|
(
|
TInt
|
aIndex
|
)
|
[pure virtual]
|
Set current calendar by pass calendar index to it
Parameters
TInt
aIndex
|
current calendar index
|
SetCurCalendarByNameL(const TDesC &)
void
|
SetCurCalendarByNameL
|
(
|
const
TDesC
&
|
aCalendarName
|
)
|
[pure virtual]
|
Set current calendar by pass calendar name to it
Parameters
const
TDesC
& aCalendarName
|
current calendar name
|
StoreEntryCondL(CCalEntry &, TBool, TBool)
Check entry: GUID, sequence number, existence in Agenda Model and tombstone database. Same as CMRUtilsTombsExt::StoreL() but doesn't actually store.
StoreEntryL(CCalEntry &, TBool)
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
& aCalEntry
|
entry to be stored. aToNormalDb ETrue --> stored to normal DB. EFalse --> stored to tombstone calendar DB.
|
TBool
aToNormalDb = ETrue
|
|
UpdateEntryL(const CCalEntry &)
Updates the given entry in the Agenda Model.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.