calendarui/views/src/calendayview.cpp
branchRCL_3
changeset 13 0f07cd1b5772
parent 0 f979ecb2b13e
child 30 d68a4b5d5885
equal deleted inserted replaced
12:38571fd2a704 13:0f07cd1b5772
   501     TRACE_ENTRY_POINT;
   501     TRACE_ENTRY_POINT;
   502 
   502 
   503     TRACE_EXIT_POINT;
   503     TRACE_EXIT_POINT;
   504     return KUidCalenDayView;
   504     return KUidCalenDayView;
   505     }
   505     }
   506 
       
   507 // ----------------------------------------------------------------------------
       
   508 // CCalenDayView::CopytoCalendarsL
       
   509 // From CAknView
       
   510 // Return the UID of the day view
       
   511 // (other items were commented in a header)
       
   512 // ----------------------------------------------------------------------------
       
   513 //
       
   514 void CCalenDayView::CopyToCalendarsL()
       
   515     {
       
   516 
       
   517     // Hide the toolbar before we display settings menu
       
   518     MCalenToolbar* toolbar = iServices.ToolbarOrNull();
       
   519     if(toolbar)
       
   520         {
       
   521         toolbar->SetToolbarVisibilityL(EFalse);  
       
   522         }
       
   523     iSPUtils->UnderLineTitleText( EFalse );
       
   524     MCalenContext& context = iServices.Context();
       
   525     TCalLocalUid instanceId = context.InstanceId().iEntryLocalUid;
       
   526             
       
   527     CCalEntry* entry = iServices.EntryViewL(context.InstanceId().iColId)->FetchL(instanceId);
       
   528     CleanupStack::PushL(entry);
       
   529     
       
   530     RPointerArray<CCalEntry> calentryArray;
       
   531     calentryArray.Append( entry );
       
   532     
       
   533     // Launch the Calendar List Dialiog.
       
   534     CMultiCalUiDialog* calenDbListDialog = CMultiCalUiDialog::NewLC(calentryArray, ETrue);
       
   535     TInt err = KErrNone;
       
   536     // Execute.
       
   537     TRAP( err,calenDbListDialog->LaunchL() );
       
   538     CleanupStack::PopAndDestroy( calenDbListDialog );
       
   539     
       
   540     iSPUtils->UnderLineTitleText( EFalse );
       
   541     // Unhide the toolbar when settings is closed
       
   542     if(toolbar)
       
   543         {
       
   544         toolbar->SetToolbarVisibilityL(ETrue); 
       
   545         }
       
   546     CleanupStack::Pop(entry);
       
   547     calentryArray.ResetAndDestroy();    
       
   548     
       
   549     BeginRepopulationL();
       
   550     }
       
   551 
       
   552 // ----------------------------------------------------------------------------
   506 // ----------------------------------------------------------------------------
   553 // CCalenDayView::ClearViewSpecificDataL
   507 // CCalenDayView::ClearViewSpecificDataL
   554 // Clears any cached data for the specific view, e.g. currently
   508 // Clears any cached data for the specific view, e.g. currently
   555 // highlighted row, column, etc.
   509 // highlighted row, column, etc.
   556 // (other items were commented in a header)
   510 // (other items were commented in a header)