equal
deleted
inserted
replaced
83 // --------------------------------------------------------------------------- |
83 // --------------------------------------------------------------------------- |
84 // |
84 // |
85 CGlxGridViewContainer::~CGlxGridViewContainer() |
85 CGlxGridViewContainer::~CGlxGridViewContainer() |
86 { |
86 { |
87 TRACER("CGlxGridViewContainer::~CGlxGridViewContainer"); |
87 TRACER("CGlxGridViewContainer::~CGlxGridViewContainer"); |
|
88 iHarvesterClient.Close(); |
88 if(iBgContext) |
89 if(iBgContext) |
89 { |
90 { |
90 delete iBgContext; |
91 delete iBgContext; |
91 } |
92 } |
92 if(iDRMUtility) |
93 if(iDRMUtility) |
157 |
158 |
158 iItemsPerPage = iUiUtility->VisibleItemsInPageGranularityL(); |
159 iItemsPerPage = iUiUtility->VisibleItemsInPageGranularityL(); |
159 |
160 |
160 // For DRM Utility |
161 // For DRM Utility |
161 iDRMUtility = CGlxDRMUtility::InstanceL(); |
162 iDRMUtility = CGlxDRMUtility::InstanceL(); |
|
163 |
|
164 //Fix for ESLM-82WJ59: Clear the last uri for which DRM Rights were consumed |
|
165 //since the GridView::Activate() and FullScreen::DeActivate() can be called in any order, |
|
166 //this call is being made to be on safer side |
|
167 iDRMUtility->ClearLastConsumedItemUri(); |
162 |
168 |
163 // background Skin Context for the skin support |
169 // background Skin Context for the skin support |
164 TRect apRect = iEikonEnv->EikAppUi()->ApplicationRect(); |
170 TRect apRect = iEikonEnv->EikAppUi()->ApplicationRect(); |
165 iBgContext = CAknsBasicBackgroundControlContext::NewL( |
171 iBgContext = CAknsBasicBackgroundControlContext::NewL( |
166 KAknsIIDQsnBgScreen,apRect,ETrue); |
172 KAknsIIDQsnBgScreen,apRect,ETrue); |
171 |
177 |
172 iSpeedTnAttrib = TMPXAttribute (KGlxMediaIdThumbnail, |
178 iSpeedTnAttrib = TMPXAttribute (KGlxMediaIdThumbnail, |
173 GlxFullThumbnailAttributeId( EFalse, iGridIconSize.iWidth, |
179 GlxFullThumbnailAttributeId( EFalse, iGridIconSize.iWidth, |
174 iGridIconSize.iHeight ) ); |
180 iGridIconSize.iHeight ) ); |
175 CreateGridL(); |
181 CreateGridL(); |
|
182 |
|
183 TInt err = iHarvesterClient.Connect(); |
|
184 GLX_LOG_INFO1("iHarvesterClient.Connect() err = %d",err); |
|
185 if(err == KErrNone) |
|
186 { |
|
187 iHarvesterClient.AddHarvesterEventObserver(*this, EHEObserverTypeMMC, 1000); |
|
188 } |
176 } |
189 } |
177 |
190 |
178 // --------------------------------------------------------------------------- |
191 // --------------------------------------------------------------------------- |
179 // From OfferKeyEventL |
192 // From OfferKeyEventL |
180 // Default implementation, |
193 // Default implementation, |
914 } |
927 } |
915 default: |
928 default: |
916 break; |
929 break; |
917 } |
930 } |
918 } |
931 } |
|
932 |
|
933 // --------------------------------------------------------------------------- |
|
934 // HarvestingUpdated |
|
935 // |
|
936 // --------------------------------------------------------------------------- |
|
937 // |
|
938 void CGlxGridViewContainer::HarvestingUpdated( |
|
939 HarvesterEventObserverType HarvestingUpdated, |
|
940 HarvesterEventState aHarvesterEventState, |
|
941 TInt aItemsLeft ) |
|
942 { |
|
943 TRACER("CGlxGridViewContainer::HarvestingUpdated()"); |
|
944 GLX_LOG_INFO1("HarvestingUpdated = %d",HarvestingUpdated); |
|
945 GLX_LOG_INFO1("aHarvesterEventState = %d",aHarvesterEventState); |
|
946 GLX_LOG_INFO1("aItemsLeft = %d",aItemsLeft); |
|
947 if(HarvestingUpdated == EHEObserverTypeMMC) |
|
948 { |
|
949 iGlxGridViewObserver.HandleGridEventsL(EAknSoftkeyClose); |
|
950 } |
|
951 } |
919 //end of file |
952 //end of file |