calendarui/globaldata/src/calencontextimpl.cpp
branchRCL_3
changeset 86 ed599363c2d7
parent 74 97232defd20e
equal deleted inserted replaced
78:356f28cd5ca0 86:ed599363c2d7
   307     TRACE_EXIT_POINT;
   307     TRACE_EXIT_POINT;
   308     return iInstanceId;
   308     return iInstanceId;
   309     }
   309     }
   310 
   310 
   311 // -----------------------------------------------------------------------------
   311 // -----------------------------------------------------------------------------
   312 // CCalenContextImpl::SetStartAndEndTimeForNewInstance
       
   313 // Sets the start and end time of the instance that has to be created.
       
   314 // (other items were commented in a header).
       
   315 // -----------------------------------------------------------------------------
       
   316 //
       
   317 void CCalenContextImpl::SetStartAndEndTimeForNewInstance( const TTime& aStartTime,
       
   318                                                       const TTime& aEndTime )
       
   319     {
       
   320 	TRACE_ENTRY_POINT;
       
   321     iNewInstStartTime = aStartTime;
       
   322     iNewInstEndTime = aEndTime;
       
   323 	TRACE_EXIT_POINT;
       
   324     }
       
   325  
       
   326 // -----------------------------------------------------------------------------
       
   327 // CCalenContextImpl::GetStartAndEndTimeForNewInstance
       
   328 // Gets the start and end time of the instance that has to be created.
       
   329 // (other items were commented in a header).
       
   330 // -----------------------------------------------------------------------------
       
   331 //
       
   332 void CCalenContextImpl::GetStartAndEndTimeForNewInstance( TTime& aStartTime,
       
   333                                                         TTime& aEndTime )
       
   334     {
       
   335 	TRACE_ENTRY_POINT;
       
   336     aStartTime = iNewInstStartTime;
       
   337     aEndTime = iNewInstEndTime;
       
   338 	TRACE_EXIT_POINT;
       
   339     }
       
   340 
       
   341 // -----------------------------------------------------------------------------
       
   342 // CCalenContextImpl::ViewId
   312 // CCalenContextImpl::ViewId
   343 // Returns the view id
   313 // Returns the view id
   344 // (other items were commented in a header).
   314 // (other items were commented in a header).
   345 // -----------------------------------------------------------------------------
   315 // -----------------------------------------------------------------------------
   346 //
   316 //
   503 // -----------------------------------------------------------------------------      
   473 // -----------------------------------------------------------------------------      
   504 TDesC& CCalenContextImpl::GetCalendarFileNameL() const
   474 TDesC& CCalenContextImpl::GetCalendarFileNameL() const
   505     {
   475     {
   506     TRACE_ENTRY_POINT
   476     TRACE_ENTRY_POINT
   507     TRACE_EXIT_POINT
   477     TRACE_EXIT_POINT
   508     if(iCalenFileName)
   478     return *iCalenFileName;
   509         {
       
   510         return *iCalenFileName;
       
   511         }
       
   512     else
       
   513         {
       
   514         return const_cast<TDesC&> (KNullDesC());
       
   515         }
       
   516     }
   479     }
   517 
   480 
   518 // -----------------------------------------------------------------------------
   481 // -----------------------------------------------------------------------------
   519 // CCalenContextImpl::SetCalendarFileNameL
   482 // CCalenContextImpl::SetCalendarFileNameL
   520 // Set calendar file name to context
   483 // Set calendar file name to context