equal
deleted
inserted
replaced
32 #include <oommonitorsession.h> |
32 #include <oommonitorsession.h> |
33 #include <hal.h> |
33 #include <hal.h> |
34 #include <hal_data.h> |
34 #include <hal_data.h> |
35 #include <akntranseffect.h> |
35 #include <akntranseffect.h> |
36 #include <UikonInternalPSKeys.h> |
36 #include <UikonInternalPSKeys.h> |
|
37 #include <apgwgnam.h> |
37 |
38 |
38 |
39 |
39 // AknCapServer UID, used for P&S category |
40 // AknCapServer UID, used for P&S category |
40 const TUid KTaskswitcherStateCategory = { 0x10207218 }; |
41 const TUid KTaskswitcherStateCategory = { 0x10207218 }; |
41 |
42 |
119 |
120 |
120 // Create custom window group |
121 // Create custom window group |
121 iWg = RWindowGroup(CCoeEnv::Static()->WsSession()); |
122 iWg = RWindowGroup(CCoeEnv::Static()->WsSession()); |
122 iWg.Construct((TUint32)&iWg, ETrue); |
123 iWg.Construct((TUint32)&iWg, ETrue); |
123 iWg.EnableScreenChangeEvents(); |
124 iWg.EnableScreenChangeEvents(); |
|
125 CApaWindowGroupName* rootWgName = CApaWindowGroupName::NewLC( iEikonEnv->WsSession(), iEikonEnv->RootWin().Identifier() ); |
|
126 rootWgName->SetWindowGroupName( iWg ); |
|
127 CleanupStack::PopAndDestroy( rootWgName ); |
124 |
128 |
125 // Create UI |
129 // Create UI |
126 iAppView = CTsAppView::NewL( ApplicationRect(), *iDeviceState, iWg ); |
130 iAppView = CTsAppView::NewL( ApplicationRect(), *iDeviceState, iWg ); |
127 AddToStackL( iAppView ); |
131 AddToStackL( iAppView ); |
128 |
132 |
754 if ( eventType == EEventWindowGroupListChanged ) |
758 if ( eventType == EEventWindowGroupListChanged ) |
755 { |
759 { |
756 TInt wgId = WgIdOfUnderlyingApp(EFalse); |
760 TInt wgId = WgIdOfUnderlyingApp(EFalse); |
757 if ( iForeground && |
761 if ( iForeground && |
758 wgId != iUnderAppWgId && |
762 wgId != iUnderAppWgId && |
759 !iAppView->AppCloseInProgress(iUnderAppWgId) ) |
763 !iAppView->AppCloseInProgress(iUnderAppWgId) && |
|
764 !iAppView->WgOnTaskList(wgId) ) |
760 { |
765 { |
761 MoveAppToBackground( ENoneTransition ); |
766 MoveAppToBackground( ENoneTransition ); |
762 } |
767 } |
763 if ( WgIdOfUnderlyingApp(ETrue) != iUnderAppWgId ) |
768 if ( WgIdOfUnderlyingApp(ETrue) != iUnderAppWgId ) |
764 { |
769 { |
833 } |
838 } |
834 allWgIds.Close(); |
839 allWgIds.Close(); |
835 return retVal; |
840 return retVal; |
836 } |
841 } |
837 |
842 |
|
843 |
|
844 // ----------------------------------------------------------------------------- |
|
845 // CTsAppUi::IsForeground |
|
846 // ----------------------------------------------------------------------------- |
|
847 // |
|
848 TBool CTsAppUi::IsForeground() const |
|
849 { |
|
850 return iForeground; |
|
851 } |
|
852 |
838 // End of file |
853 // End of file |