904 TRACE_EXIT_POINT; |
904 TRACE_EXIT_POINT; |
905 return ( iFirstEntryOnScreenIndex == KErrNotFound ) && |
905 return ( iFirstEntryOnScreenIndex == KErrNotFound ) && |
906 ( iHighlightedRowNumber == KErrNotFound ); |
906 ( iHighlightedRowNumber == KErrNotFound ); |
907 } |
907 } |
908 |
908 |
909 // ---------------------------------------------------------------------------- |
|
910 // CCalenTodoView::CopyToCalendarsL |
|
911 // |
|
912 // (other items were commented in a header) |
|
913 // ---------------------------------------------------------------------------- |
|
914 // |
|
915 void CCalenTodoView::CopyToCalendarsL() |
|
916 { |
|
917 |
|
918 // Hide the toolbar before we display settings menu |
|
919 MCalenToolbar* toolbar = iServices.ToolbarOrNull(); |
|
920 if(toolbar) |
|
921 { |
|
922 toolbar->SetToolbarVisibilityL(EFalse); |
|
923 } |
|
924 |
|
925 MCalenContext& context = iServices.Context(); |
|
926 TCalLocalUid instanceId = context.InstanceId().iEntryLocalUid; |
|
927 |
|
928 CCalEntry* entry = iServices.EntryViewL(context.InstanceId().iColId)->FetchL(instanceId); |
|
929 CleanupStack::PushL(entry); |
|
930 |
|
931 RPointerArray<CCalEntry> entryArray; |
|
932 entryArray.Append(entry); |
|
933 |
|
934 |
|
935 // Launch the Calendar List Dialiog. |
|
936 CMultiCalUiDialog* multiCalUiDialog = CMultiCalUiDialog::NewLC(entryArray , ETrue ); |
|
937 TInt err = KErrNone; |
|
938 // Execute. |
|
939 TRAP( err,multiCalUiDialog->LaunchL() ); |
|
940 CleanupStack::PopAndDestroy( multiCalUiDialog ); |
|
941 |
|
942 // Unhide the toolbar when settings is closed |
|
943 if(toolbar) |
|
944 { |
|
945 toolbar->SetToolbarVisibilityL(ETrue); |
|
946 } |
|
947 |
|
948 CleanupStack::Pop(entry); |
|
949 entryArray.ResetAndDestroy(); |
|
950 |
|
951 BeginRepopulationL(); |
|
952 } |
|
953 |
909 |
954 |
910 |
955 // ---------------------------------------------------------------------------- |
911 // ---------------------------------------------------------------------------- |
956 // CCalenTodoView::ActiveStepL |
912 // CCalenTodoView::ActiveStepL |
957 // From CCalenView |
913 // From CCalenView |