diff -r 0f07cd1b5772 -r 1984aceb8774 calendarui/globaldata/src/calencontextimpl.cpp --- a/calendarui/globaldata/src/calencontextimpl.cpp Mon Mar 15 12:40:18 2010 +0200 +++ b/calendarui/globaldata/src/calencontextimpl.cpp Wed Mar 31 21:29:10 2010 +0300 @@ -85,6 +85,11 @@ CCalenContextImpl::~CCalenContextImpl() { TRACE_ENTRY_POINT; + if(iCalAlarmEntryFileName) + { + delete iCalAlarmEntryFileName; + iCalAlarmEntryFileName = NULL; + } TRACE_EXIT_POINT; } @@ -506,4 +511,69 @@ TRACE_EXIT_POINT; } +// ----------------------------------------------------------------------------- +// CCalenContextImpl::SetCalAlarmEntryFileNameL +// Set calendar file name of Alarm entry +// ----------------------------------------------------------------------------- +void CCalenContextImpl::SetCalAlarmEntryFileNameL(const TDesC& aName) + { + TRACE_ENTRY_POINT + if (iCalAlarmEntryFileName) + { + delete iCalAlarmEntryFileName; + iCalAlarmEntryFileName = NULL; + } + iCalAlarmEntryFileName = aName.AllocL(); + TRACE_EXIT_POINT + } + +// ----------------------------------------------------------------------------- +// CCalenContextImpl::GetCalAlarmEntryFileNameL +// Get calendar file name of Alarm entry +// ----------------------------------------------------------------------------- +HBufC* CCalenContextImpl::GetCalAlarmEntryFileNameL() const + { + TRACE_ENTRY_POINT + TRACE_EXIT_POINT + + return iCalAlarmEntryFileName; + } + +// ----------------------------------------------------------------------------- +// CCalenContextImpl::ResetCalAlarmEntryFileName +// Resets Alarm Entry file name in context +// ----------------------------------------------------------------------------- +void CCalenContextImpl::ResetCalAlarmEntryFileName() + { + TRACE_ENTRY_POINT + if(iCalAlarmEntryFileName) + { + delete iCalAlarmEntryFileName; + iCalAlarmEntryFileName = NULL; + } + + TRACE_EXIT_POINT + } +// ----------------------------------------------------------------------------- +// CCalenContextImpl::ResetCalAlarmEntryFileName +// set Alarm Entry LocalUid in context +// ----------------------------------------------------------------------------- +void CCalenContextImpl::SetCalAlarmEntryLocalUid(TCalLocalUid aLocalId) + { + TRACE_ENTRY_POINT + iCalAlarmLocalUid = aLocalId; + TRACE_EXIT_POINT + } + + +// ----------------------------------------------------------------------------- +// CCalenContextImpl::ResetCalAlarmEntryFileName +// Get Alarm Entry LocalUid from context +// ----------------------------------------------------------------------------- +TCalLocalUid CCalenContextImpl::CalAlarmLocalUidL() const + { + TRACE_ENTRY_POINT + TRACE_EXIT_POINT + return iCalAlarmLocalUid; + } // End of file