uifw/AknGlobalUI/AknCapServer/src/AknEikSgcs.cpp
branchRCL_3
changeset 8 71dd06cfe933
parent 7 08e69e956a8c
child 19 aecbbf00d063
equal deleted inserted replaced
7:08e69e956a8c 8:71dd06cfe933
    24 #include <aknenv.h>
    24 #include <aknenv.h>
    25 #include <AknDef.h>
    25 #include <AknDef.h>
    26 #include <aknappui.h>
    26 #include <aknappui.h>
    27 #include <e32property.h>
    27 #include <e32property.h>
    28 #include <UikonInternalPSKeys.h>
    28 #include <UikonInternalPSKeys.h>
       
    29 #include <akncapserveralternatefsplugin.h>
    29 #include <avkondomainpskeys.h>
    30 #include <avkondomainpskeys.h>
    30 #include <AknSettingCache.h>
    31 #include <AknSettingCache.h>
    31 #include "AknCapServerEntry.h"
    32 #include "AknCapServerEntry.h"
    32 #include <aknconsts.h>
    33 #include <aknconsts.h>
    33 #include "winchangemonitor.h"
    34 #include "winchangemonitor.h"
    45 #ifdef RD_UI_TRANSITION_EFFECTS_LAYOUT_SWITCH
    46 #ifdef RD_UI_TRANSITION_EFFECTS_LAYOUT_SWITCH
    46 #include <akntranseffect.h>
    47 #include <akntranseffect.h>
    47 #include <akntransitionutils.h>
    48 #include <akntransitionutils.h>
    48 #endif
    49 #endif
    49 
    50 
    50 #include <LayoutPack.cdl.h>
    51 #include <layoutpack.cdl.h>
    51 #include <CdlRefs.h>
    52 #include <CdlRefs.h>
    52 const TInt KCdlEComInterfaceId = 0x101f8243;
    53 const TInt KCdlEComInterfaceId = 0x101f8243;
    53 const TInt KMatrixMenuAppId = 0x101F4CD2;
    54 const TInt KMatrixMenuAppId = 0x101F4CD2;
    54 
    55 
    55 const TInt KLayoutChangeTimeout = 2000000; // 2s
    56 const TInt KLayoutChangeTimeout = 2000000; // 2s
  1372     return (idleTask.WgId() == ForegroundWgId());
  1373     return (idleTask.WgId() == ForegroundWgId());
  1373     }
  1374     }
  1374 
  1375 
  1375 void CEikSgcServer::SetIdleState(TBool aFlag)
  1376 void CEikSgcServer::SetIdleState(TBool aFlag)
  1376     {
  1377     {
       
  1378 	//idle is changed to nonidle if taskswitcher is shown 
       
  1379     if (aFlag && iAknCapAppServerAppUi->AlternateFS()
       
  1380               && iAknCapAppServerAppUi->AlternateFS()->IsVisible())
       
  1381         {
       
  1382         aFlag = EFalse;
       
  1383         }
       
  1384 
  1377     // Update the P&S key only if the value has been changed.
  1385     // Update the P&S key only if the value has been changed.
  1378     if ((iNotificationsInIdleAllowed && !aFlag)
  1386     if ((iNotificationsInIdleAllowed && !aFlag)
  1379             || (!iNotificationsInIdleAllowed && aFlag))
  1387             || (!iNotificationsInIdleAllowed && aFlag))
  1380         {
  1388         {
  1381         iNotificationsInIdleAllowed = aFlag;
  1389         iNotificationsInIdleAllowed = aFlag;