calendarui/globaldata/src/calencontextimpl.cpp
branchRCL_3
changeset 19 1984aceb8774
parent 0 f979ecb2b13e
child 60 96907930389d
equal deleted inserted replaced
13:0f07cd1b5772 19:1984aceb8774
    83 // ----------------------------------------------------------------------------
    83 // ----------------------------------------------------------------------------
    84 //
    84 //
    85 CCalenContextImpl::~CCalenContextImpl()
    85 CCalenContextImpl::~CCalenContextImpl()
    86     {
    86     {
    87     TRACE_ENTRY_POINT;
    87     TRACE_ENTRY_POINT;
       
    88     if(iCalAlarmEntryFileName)
       
    89         {
       
    90         delete iCalAlarmEntryFileName;
       
    91         iCalAlarmEntryFileName = NULL;
       
    92         }
    88     TRACE_EXIT_POINT;
    93     TRACE_EXIT_POINT;
    89     }
    94     }
    90 
    95 
    91 // ----------------------------------------------------------------------------
    96 // ----------------------------------------------------------------------------
    92 // CCalenContextImpl::DefaultTimeForViews
    97 // CCalenContextImpl::DefaultTimeForViews
   504         }
   509         }
   505     
   510     
   506     TRACE_EXIT_POINT;
   511     TRACE_EXIT_POINT;
   507     }
   512     }
   508 
   513 
       
   514 // -----------------------------------------------------------------------------
       
   515 // CCalenContextImpl::SetCalAlarmEntryFileNameL
       
   516 // Set calendar file name of Alarm entry
       
   517 // ----------------------------------------------------------------------------- 
       
   518 void CCalenContextImpl::SetCalAlarmEntryFileNameL(const TDesC& aName)
       
   519     {
       
   520     TRACE_ENTRY_POINT
       
   521     if (iCalAlarmEntryFileName)
       
   522         {
       
   523         delete iCalAlarmEntryFileName;
       
   524         iCalAlarmEntryFileName = NULL;
       
   525         }
       
   526     iCalAlarmEntryFileName = aName.AllocL();
       
   527     TRACE_EXIT_POINT   
       
   528     }
       
   529 
       
   530 // -----------------------------------------------------------------------------
       
   531 // CCalenContextImpl::GetCalAlarmEntryFileNameL
       
   532 // Get calendar file name of Alarm entry
       
   533 // ----------------------------------------------------------------------------- 
       
   534 HBufC* CCalenContextImpl::GetCalAlarmEntryFileNameL() const
       
   535     {
       
   536     TRACE_ENTRY_POINT     
       
   537     TRACE_EXIT_POINT 
       
   538     
       
   539     return iCalAlarmEntryFileName;   
       
   540     }
       
   541 
       
   542 // -----------------------------------------------------------------------------
       
   543 // CCalenContextImpl::ResetCalAlarmEntryFileName
       
   544 // Resets Alarm Entry file name in context
       
   545 // ----------------------------------------------------------------------------- 
       
   546 void CCalenContextImpl::ResetCalAlarmEntryFileName()
       
   547     {
       
   548     TRACE_ENTRY_POINT    
       
   549     if(iCalAlarmEntryFileName)
       
   550         {
       
   551         delete iCalAlarmEntryFileName;
       
   552         iCalAlarmEntryFileName = NULL;
       
   553         }
       
   554         
       
   555     TRACE_EXIT_POINT 
       
   556     }
       
   557 // -----------------------------------------------------------------------------
       
   558 // CCalenContextImpl::ResetCalAlarmEntryFileName
       
   559 // set Alarm Entry LocalUid in context
       
   560 // ----------------------------------------------------------------------------- 
       
   561 void  CCalenContextImpl::SetCalAlarmEntryLocalUid(TCalLocalUid aLocalId)
       
   562     {
       
   563     TRACE_ENTRY_POINT   
       
   564     iCalAlarmLocalUid = aLocalId;
       
   565     TRACE_EXIT_POINT 
       
   566     }
       
   567     
       
   568  
       
   569 // -----------------------------------------------------------------------------
       
   570 // CCalenContextImpl::ResetCalAlarmEntryFileName
       
   571 // Get Alarm Entry LocalUid from context
       
   572 // ----------------------------------------------------------------------------- 
       
   573 TCalLocalUid CCalenContextImpl::CalAlarmLocalUidL() const
       
   574     {
       
   575     TRACE_ENTRY_POINT  
       
   576     TRACE_EXIT_POINT 
       
   577     return iCalAlarmLocalUid;
       
   578     }
   509 // End of file
   579 // End of file