equal
deleted
inserted
replaced
42 |
42 |
43 #include "glxgridviewcontainer.h" |
43 #include "glxgridviewcontainer.h" |
44 #include "glxgridviewimp.h" |
44 #include "glxgridviewimp.h" |
45 #include "glxgridviewmlobserver.h" // medialist observer for Hg Grid |
45 #include "glxgridviewmlobserver.h" // medialist observer for Hg Grid |
46 |
46 |
47 const TInt KNoOfPages(3); |
|
48 const TInt KBufferTresholdSize(3); // in rows |
|
49 |
|
50 // ======== MEMBER FUNCTIONS ======== |
47 // ======== MEMBER FUNCTIONS ======== |
51 |
48 |
52 // --------------------------------------------------------------------------- |
49 // --------------------------------------------------------------------------- |
53 // Two-phased constructor. |
50 // Two-phased constructor. |
54 // --------------------------------------------------------------------------- |
51 // --------------------------------------------------------------------------- |
341 // |
338 // |
342 void CGlxGridViewContainer::HandleOpenL( TInt aIndex ) |
339 void CGlxGridViewContainer::HandleOpenL( TInt aIndex ) |
343 { |
340 { |
344 TRACER("CGlxGridViewContainer::HandleOpenL()"); |
341 TRACER("CGlxGridViewContainer::HandleOpenL()"); |
345 // Make sure that the Selection Index is inside medialist count |
342 // Make sure that the Selection Index is inside medialist count |
346 if (aIndex <iMediaList->Count() && aIndex >=0) |
343 if (!iIsDialogLaunched && aIndex <iMediaList->Count() && aIndex >=0) |
347 { |
344 { |
348 if (!(iHgGrid->Flags() && CHgScroller::EHgScrollerSelectionMode)) |
345 if (!(iHgGrid->Flags() && CHgScroller::EHgScrollerSelectionMode)) |
349 { |
346 { |
350 // If not in marking mode, then open FS view |
347 // If not in marking mode, then open FS view |
351 iUiUtility->SetViewNavigationDirection(EGlxNavigationForwards); |
348 iUiUtility->SetViewNavigationDirection(EGlxNavigationForwards); |
524 // |
521 // |
525 void CGlxGridViewContainer::CreateGridMediaListObserverL() |
522 void CGlxGridViewContainer::CreateGridMediaListObserverL() |
526 { |
523 { |
527 TRACER("CGlxGridViewContainer::CreateGridMediaListObserverL()"); |
524 TRACER("CGlxGridViewContainer::CreateGridMediaListObserverL()"); |
528 // Creating the Medialist observer for HG Grid |
525 // Creating the Medialist observer for HG Grid |
529 iGlxGridMLObserver = CGlxGridViewMLObserver::NewL(*iMediaList, iHgGrid); |
526 iGlxGridMLObserver = CGlxGridViewMLObserver::NewL(*this, *iMediaList, |
|
527 iHgGrid); |
530 } |
528 } |
531 |
529 |
532 // --------------------------------------------------------------------------- |
530 // --------------------------------------------------------------------------- |
533 // CreateGridAfterFSDeactivatedL |
531 // CreateGridAfterFSDeactivatedL |
534 // On Returning from the FS View, There is no calls to the handle attribut available, |
532 // On Returning from the FS View, There is no calls to the handle attribut available, |
960 case EGlxCmdDialogLaunched: |
958 case EGlxCmdDialogLaunched: |
961 { |
959 { |
962 iIsDialogLaunched = ETrue; |
960 iIsDialogLaunched = ETrue; |
963 break; |
961 break; |
964 } |
962 } |
|
963 case EGlxCmdDialogDismissed: |
|
964 { |
|
965 if (iIsDialogLaunched && iIsMMCRemoved) |
|
966 { |
|
967 iGlxGridViewObserver.HandleGridEventsL(EAknSoftkeyExit); |
|
968 } |
|
969 |
|
970 iIsDialogLaunched = EFalse; |
|
971 retVal = ETrue; |
|
972 break; |
|
973 } |
965 default: |
974 default: |
966 break; |
975 break; |
967 } |
976 } |
968 GLX_LOG_INFO("CGlxGridViewContainer::HandleViewCommandL() exiting"); |
977 GLX_LOG_INFO("CGlxGridViewContainer::HandleViewCommandL() exiting"); |
969 return retVal; |
978 return retVal; |