CESMRCalDbMgr Class Reference
class CESMRCalDbMgr : public CBase |
Manages two databases: normal Agenda db and tombstone db, and handles command logic related to these databases. This class is also responsible for collecting both database status information and async command progress, and to notify aObserver.
esmrdb.lib
Protected Member Functions |
---|
| CESMRCalDbMgr(CCalSession &, MMRUtilsObserver &) |
CCalSession & | CalSession() |
MESMRUtilsTombsExt::TESMRUtilsDbResult
| CheckEntryCondL(const CCalEntry &) |
void | Completed(TInt) |
void | ConstructL() |
void | DeleteEntryCondL(const TDesC8 &) |
void | DeleteEntryCondL(const TCalLocalUid &) |
void | DeleteEntryCondL(const CCalEntry &) |
void | DeleteEntryCondL(const CalCommon::TCalTimeRange &) |
TInt
| DeleteEntryL(const TDesC8 &, TInt) |
TInt
| DeleteEntryL(const TCalLocalUid &, TInt) |
void | DeleteTombstoneL(const CCalEntry &) |
TBool
| EntryExistsInDbL(const TDesC8 &, const TCalTime &, const CESMRCalDbBase &, RPointerArray< CCalEntry > &, TInt &) |
TBool
| EntryExistsInDbL(const CCalEntry &, const CESMRCalDbBase &, RPointerArray< CCalEntry > &, TInt &) |
CCalEntryView * | EntryView() |
CCalEntryView * | EntryViewL(const CCalEntry &) |
MESMRUtilsTombsExt::TESMRUtilsDbResult
| EvaluateExistingEntryL(const CCalEntry &, const CCalEntry &) |
MESMRUtilsTombsExt::TESMRUtilsDbResult
| EvaluateNewEntryL(const CCalEntry &) |
void | FetchEntriesL(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() |
void | GetMultiCalendarNameListL(RArray< TPtrC > &) |
void | HandleCalDbStatus(const CESMRCalDbBase *, MESMRCalDbObserver::TDbStatus) |
CCalInstanceView * | InstanceViewL(const CCalEntry &) |
TBool
| IsValidNewModL(const CCalEntry &) |
RPointerArray< CCalInstanceView > | NormalDbAllCalenInstanceView() |
CCalEntryView * | NormalDbEntryView() |
CCalInstanceView * | NormalDbInstanceView() |
TBool
| NotifyProgress() |
TBool
| OriginatingExistInDbL(const CCalEntry &) |
void | Progress(TInt) |
void | SetCurCalendarByColIdL(TInt) |
void | SetCurCalendarByDbIdL(TCalFileId) |
void | SetCurCalendarByEntryL(MESMRCalEntry &) |
void | SetCurCalendarByIndex(TInt) |
void | SetCurCalendarByNameL(const TDesC &) |
MESMRUtilsTombsExt::TESMRUtilsDbResult
| StoreEntryCondL(CCalEntry &, TBool, TBool) |
TInt
| StoreEntryL(CCalEntry &, TBool) |
TInt
| UpdateEntryL(const CCalEntry &) |
Constructor & Destructor Documentation
CESMRCalDbMgr(CCalSession &, MMRUtilsObserver &)
CESMRCalDbMgr | ( | CCalSession & | aCalSession, |
| MMRUtilsObserver & | aObserver |
| ) | [protected] |
Parameters
CCalSession & aCalSession | calendar session reference |
MMRUtilsObserver & aObserver | utility observer reference |
Member Functions Documentation
CalSession()
CCalSession & | CalSession | ( | ) | [protected] |
CheckEntryCondL(const CCalEntry &)
CheckSpaceBelowCriticalLevelL()
TBool
| CheckSpaceBelowCriticalLevelL | ( | ) | [private] |
Completed(TInt)
void | Completed | ( | TInt | aError | ) | [protected] |
ConstructL()
void | ConstructL | ( | ) | [protected] |
Constructor, second phase.
DeleteEntryCondL(const TDesC8 &)
void | DeleteEntryCondL | ( | const TDesC8 & | aUid | ) | [protected] |
DeleteEntryCondL(const TCalLocalUid &)
void | DeleteEntryCondL | ( | const TCalLocalUid & | aLocalUid | ) | [protected] |
DeleteEntryCondL(const CCalEntry &)
void | DeleteEntryCondL | ( | const CCalEntry & | aCalEntry | ) | [protected] |
DeleteEntryCondL(const CalCommon::TCalTimeRange &)
DeleteEntryL(const TDesC8 &, TInt)
DeleteEntryL(const TCalLocalUid &, TInt)
DeleteTombstoneL(const CCalEntry &)
void | DeleteTombstoneL | ( | const CCalEntry & | aEntry | ) | [protected] |
Helper method for deleting a tombstone entry.
EntryExistsInDbL(const TDesC8 &, const TCalTime &, const CESMRCalDbBase &, RPointerArray< CCalEntry > &, TInt &)
Tests whether entry with same GUID and RECURRENCE-ID exists in aDb. If yes, then aIndex will tell it's position in aCalEntryArray which contains all entries with the same GUID.
Parameters
const TDesC8 & aUid | first identity criterion |
const TCalTime & aRecurrenceId | second identity criterion |
const CESMRCalDbBase & aDb | database where to look |
RPointerArray< CCalEntry > & aCalEntryArray | contains all entries with same GUID |
TInt & aIndex | tells position of entry, if method returned ETrue |
EntryExistsInDbL(const CCalEntry &, const CESMRCalDbBase &, RPointerArray< CCalEntry > &, TInt &)
Tests whether entry with same GUID and RECURRENCE-ID exists in aDb. If yes, then aIndex will tell it's position in aCalEntryArray which contains all entries with the same GUID.
EntryViewL(const CCalEntry &)
EvaluateExistingEntryL(const CCalEntry &, const CCalEntry &)
Helper method for evaluating validity and status of entry in relation to an another entry which exists in a database.
Parameters
const CCalEntry & aEntry | entry to be evaluated |
const CCalEntry & aDbEntry | corresponding entry existing in a database |
EvaluateNewEntryL(const CCalEntry &)
Helper method for evaluating validity and status of a new entry. entry to be evaluated
FetchEntriesL(RPointerArray< CCalEntry > &, const CalCommon::TCalTimeRange &)
FetchEntryL(const TDesC8 &, const TCalTime &)
FindInstanceL(const CCalEntry &)
GetCalendarColorByEntryL(MESMRCalEntry &)
GetCalendarColorByNameL(const TDesC &)
TRgb
| GetCalendarColorByNameL | ( | const TDesC & | aCalendarName | ) | [protected] |
Parameters
const TDesC & aCalendarName | |
GetCalendarNameByEntryL(MESMRCalEntry &)
GetCurCalendarColIdL()
TInt
| GetCurCalendarColIdL | ( | ) | [protected] |
GetCurCalendarColor()
TRgb
| GetCurCalendarColor | ( | ) | [protected] |
GetCurCalendarIndex()
TInt
| GetCurCalendarIndex | ( | ) | [protected] |
GetMultiCalendarNameListL(RArray< TPtrC > &)
void | GetMultiCalendarNameListL | ( | RArray< TPtrC > & | aCalendarNameList | ) | [protected] |
HandleCalDbStatus(const CESMRCalDbBase *, MESMRCalDbObserver::TDbStatus)
InstanceViewL(const CCalEntry &)
IsValidNewModL(const CCalEntry &)
Helper method which checks if given child entry would be a valid new modifying entry, i.e. if it has a recurrence id which matches to an existing instance.
Parameters
const CCalEntry & aEntry | entry to be evaluated |
LoadMultiCalenInfoL()
void | LoadMultiCalenInfoL | ( | ) | [private] |
Load multi calendar info to dbmgr
NewL(CCalSession &, MMRUtilsObserver &)
Symbian two-phased constructor. calendar session reference utility observer reference
NormalDbAllCalenInstanceView()
NotifyProgress()
TBool
| NotifyProgress | ( | ) | [protected] |
OriginatingExistInDbL(const CCalEntry &)
Evaluates if corresponding originating entry exists in database.
Progress(TInt)
void | Progress | ( | TInt | aPercentageCompleted | ) | [protected] |
Parameters
TInt aPercentageCompleted | |
SetCurCalendarByColIdL(TInt)
void | SetCurCalendarByColIdL | ( | TInt | aColId | ) | [protected] |
SetCurCalendarByDbIdL(TCalFileId)
void | SetCurCalendarByDbIdL | ( | TCalFileId | aDbId | ) | [protected] |
SetCurCalendarByEntryL(MESMRCalEntry &)
SetCurCalendarByIndex(TInt)
void | SetCurCalendarByIndex | ( | TInt | aIndex | ) | [protected] |
SetCurCalendarByNameL(const TDesC &)
void | SetCurCalendarByNameL | ( | const TDesC & | aCalendarName | ) | [protected] |
Parameters
const TDesC & aCalendarName | |
StoreEntryCondL(CCalEntry &, TBool, TBool)
StoreEntryL(CCalEntry &, TBool)
UpdateEntryL(const CCalEntry &)
Member Data Documentation
RPointerArray< CCalEntryView > iCalEntryViewArray
RPointerArray< CCalInstanceView > iCalInstanceViewArray
CCalSession & iCalSession
CCalSession & | iCalSession | [protected] |
Calendar session reference Not own.
RPointerArray< CCalSession > iCalSessionArray
Calendar session array, support multi calendar Own.
RPointerArray< CCalCalendarInfo > iCalendarInfoArray
CCalCalendarInfo array, support multi calendar Own.
CESMREntryCmdIteratorAO * iCmdIterator
CESMREntryCmdIteratorAO * | iCmdIterator | [protected] |
Handles asynchronous operation iteration Own.
TInt
iCurCalenIndex
TInt
| iCurCalenIndex | [private] |
TInt
iCurrentAsyncOp
TInt
| iCurrentAsyncOp | [protected] |
Currently ongoing asynchronous utils operation
CESMRCalDbBase * iNormalDb
Normal agenda database Own.
MMRUtilsObserver & iObserver
Reference to cal db observer
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.