105 KAknsIIDQsnBgAreaMain, Rect(), EFalse ); |
105 KAknsIIDQsnBgAreaMain, Rect(), EFalse ); |
106 iUiUtility = CGlxUiUtility::UtilityL(); |
106 iUiUtility = CGlxUiUtility::UtilityL(); |
107 iGridIconSize = iUiUtility->GetGridIconSize(); |
107 iGridIconSize = iUiUtility->GetGridIconSize(); |
108 |
108 |
109 // For DRM Utility |
109 // For DRM Utility |
110 iDRMUtility = CGlxDRMUtility::InstanceL(); |
110 iDRMUtility = CGlxDRMUtility::InstanceL(); |
111 iIsFileAttached = EFalse; |
111 SetFileAttached(EFalse); |
112 } |
112 } |
113 |
113 |
114 //----------------------------------------------------------------------------- |
114 //----------------------------------------------------------------------------- |
115 // Destructor |
115 // Destructor |
116 //----------------------------------------------------------------------------- |
116 //----------------------------------------------------------------------------- |
606 // we can get this call while MGlxMediaList::InstanceL has not yet returned |
606 // we can get this call while MGlxMediaList::InstanceL has not yet returned |
607 // as it starts a new asynch wait loop and during that it is possible |
607 // as it starts a new asynch wait loop and during that it is possible |
608 // to send key events to the dialog. |
608 // to send key events to the dialog. |
609 if( !iMediaList || !iHgGrid ) |
609 if( !iMediaList || !iHgGrid ) |
610 { |
610 { |
611 aFetchUri = EFalse; |
611 aFetchUri = EFalse; |
612 iIsFileAttached = EFalse; |
612 SetFileAttached(EFalse); |
613 return iIsFileAttached; |
613 return iIsFileAttached; |
614 } |
614 } |
615 //To Block call to HandleDoubleTapEventL() when control is in RetrieveUrisL() |
615 //To Block call to HandleDoubleTapEventL() when control is in RetrieveUrisL() |
616 iIsFileAttached = ETrue; |
616 SetFileAttached(ETrue); |
617 GLX_LOG_INFO1("CGlxFetcherContainer::RetrieveUrisL() Medialist count is %d", |
617 GLX_LOG_INFO1("CGlxFetcherContainer::RetrieveUrisL() Medialist count is %d", |
618 iMediaList->Count()); |
618 iMediaList->Count()); |
619 TGlxSelectionIterator iterator; |
619 TGlxSelectionIterator iterator; |
620 CGlxAttributeContext* context = new (ELeave) CGlxAttributeContext( &iterator ); |
620 CGlxAttributeContext* context = new (ELeave) CGlxAttributeContext( &iterator ); |
621 CleanupStack::PushL( context ); |
621 CleanupStack::PushL( context ); |
652 { |
652 { |
653 const TDesC& uri = iMediaList->Item( index ).Uri(); |
653 const TDesC& uri = iMediaList->Item( index ).Uri(); |
654 if( uri != KNullDesC ) |
654 if( uri != KNullDesC ) |
655 { |
655 { |
656 aSelectedFiles.AppendL( uri ); |
656 aSelectedFiles.AppendL( uri ); |
657 iIsFileAttached = ETrue; |
657 SetFileAttached(ETrue); |
658 } |
658 } |
659 else |
659 else |
660 { |
660 { |
661 iIsFileAttached = EFalse; |
661 SetFileAttached(EFalse); |
662 } |
662 } |
663 } |
663 } |
664 } |
664 } |
665 CleanupStack::PopAndDestroy( context ); |
665 CleanupStack::PopAndDestroy( context ); |
666 // Set the Fetch uri value as false, as it could be a drm image and calling |
666 // Set the Fetch uri value as false, as it could be a drm image and calling |
773 return MAknsControlContext::SupplyMopObject(aId, iBgContext ); |
773 return MAknsControlContext::SupplyMopObject(aId, iBgContext ); |
774 } |
774 } |
775 return CCoeControl::MopSupplyObject(aId); |
775 return CCoeControl::MopSupplyObject(aId); |
776 } |
776 } |
777 |
777 |
|
778 // ----------------------------------------------------------------------------- |
|
779 // SetFileAttached |
|
780 // ----------------------------------------------------------------------------- |
|
781 // |
|
782 void CGlxFetcherContainer::SetFileAttached(TBool aIsFileAttached) |
|
783 { |
|
784 iIsFileAttached = aIsFileAttached; |
|
785 } |
|
786 |
778 //END OF FILE |
787 //END OF FILE |