221 default: |
221 default: |
222 //To prevent Continues Activation of the Same View; Same is Triggered in ProcessCommandParametersL |
222 //To prevent Continues Activation of the Same View; Same is Triggered in ProcessCommandParametersL |
223 HandleActivationMessageL(aMessageParameters); |
223 HandleActivationMessageL(aMessageParameters); |
224 break; |
224 break; |
225 } |
225 } |
|
226 |
|
227 //Safely we can call Destroy screen here, as there can be already |
|
228 //photos in background and bringing it to foreground does not |
|
229 //give the ViewActivate( ) callback to view. |
|
230 iUiUtility->DestroyScreenClearer(); |
|
231 |
226 return response; |
232 return response; |
227 } |
233 } |
228 |
234 |
229 // --------------------------------------------------------------------------- |
235 // --------------------------------------------------------------------------- |
230 // ProcessCommandParametersL |
236 // ProcessCommandParametersL |
244 iNavigationalState->NavigateToL( *newState ); |
250 iNavigationalState->NavigateToL( *newState ); |
245 iStateChangeRequested = ETrue; |
251 iStateChangeRequested = ETrue; |
246 CleanupStack::PopAndDestroy( newState ); |
252 CleanupStack::PopAndDestroy( newState ); |
247 } |
253 } |
248 |
254 |
|
255 //Start a timer to check for thr IAD update after 60 Secs. |
|
256 //Only when any view is launched in photos. |
|
257 if(!iPeriodic) |
|
258 { |
|
259 iPeriodic = CPeriodic::NewL(CActive::EPriorityLow); |
|
260 } |
|
261 if ( !iPeriodic->IsActive() ) |
|
262 { |
|
263 iPeriodic->Start( KPeriodicStartDelay, KMaxTInt, |
|
264 TCallBack( &PeriodicCallback, static_cast<TAny*>(this) ) ); |
|
265 } |
|
266 |
249 if(0 == aTail.CompareC(KNullDesC8)) |
267 if(0 == aTail.CompareC(KNullDesC8)) |
250 { |
268 { |
251 return ETrue; |
269 return ETrue; |
252 } |
270 } |
253 else |
271 else |
467 TUid msgUid; |
485 TUid msgUid; |
468 RDesReadStream stream(aData); |
486 RDesReadStream stream(aData); |
469 CleanupClosePushL(stream); |
487 CleanupClosePushL(stream); |
470 stream >> msgUid; |
488 stream >> msgUid; |
471 |
489 |
472 //Start a timer to check for thr IAD update after 30 Secs. |
|
473 if(!iPeriodic) |
|
474 { |
|
475 iPeriodic = CPeriodic::NewL(CActive::EPriorityLow); |
|
476 } |
|
477 if ( !iPeriodic->IsActive() ) |
|
478 { |
|
479 iPeriodic->Start( KPeriodicStartDelay, KMaxTInt, |
|
480 TCallBack( &PeriodicCallback, static_cast<TAny*>(this) ) ); |
|
481 } |
|
482 |
|
483 switch ( msgUid.iUid ) |
490 switch ( msgUid.iUid ) |
484 { |
491 { |
485 case KGlxActivationCmdShowLastModified: |
492 case KGlxActivationCmdShowLastModified: |
486 case KGlxActivationCameraAlbum: |
493 case KGlxActivationCameraAlbum: |
487 case KGlxActivationCmdShowAll: |
494 case KGlxActivationCmdShowAll: |
488 { |
495 { |
|
496 GLX_LOG_INFO("CGlxAppUi::HandleActivationMessageL: Creating Screen Clearer"); |
|
497 iUiUtility->DisplayScreenClearerL(); |
|
498 HBufC8* activationParam = HBufC8::NewLC(KMaxUidName); |
|
499 activationParam->Des().AppendNum(KGlxActivationCmdShowAll); |
|
500 SetActivationParamL(*activationParam); |
|
501 CleanupStack::PopAndDestroy(activationParam); |
|
502 |
489 // Go to All grid view |
503 // Go to All grid view |
490 GLX_LOG_INFO("CGlxAppUi::HandleActivationMessageL: All Grid View"); |
504 GLX_LOG_INFO("CGlxAppUi::HandleActivationMessageL: All Grid View"); |
491 // Send the command to reset the view |
505 // Send the command to reset the view |
492 ProcessCommandL(EGlxCmdResetView); |
506 ProcessCommandL(EGlxCmdResetView); |
493 iNavigationalState->SetBackExitStatus(ETrue); |
507 iNavigationalState->SetBackExitStatus(ETrue); |
749 TRACER("CGlxNsAppUi::ClosePhotosL()"); |
763 TRACER("CGlxNsAppUi::ClosePhotosL()"); |
750 iUiUtility->SetViewNavigationDirection(EGlxNavigationBackwards); |
764 iUiUtility->SetViewNavigationDirection(EGlxNavigationBackwards); |
751 //Temparory fix provided for Kern Exec 3 bug |
765 //Temparory fix provided for Kern Exec 3 bug |
752 //UPnP Stop Showin is explicitly called when exiting the gallery |
766 //UPnP Stop Showin is explicitly called when exiting the gallery |
753 GlxUpnpRenderer:: StopShowingL(); |
767 GlxUpnpRenderer:: StopShowingL(); |
754 |
768 iUiUtility->SetExitingState(ETrue); |
755 iUiUtility->SetExitingState(ETrue); |
|
756 GLX_LOG_INFO("CGlxAppUi::HandleWsEventL: Exit() for C key being Called"); |
|
757 |
|
758 } |
769 } |
759 //OOM |
770 //OOM |