satengine/SatServer/SystemState/src/TSatSystemStateFactory.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    13 *
    13 *
    14 * Description:  Provides SAT SystemState objects outside of this DLL
    14 * Description:  Provides SAT SystemState objects outside of this DLL
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 
    18 #include    <startupdomainpskeys.h>
    19 #include    <startupdomainpskeys.h>
    19 #include    <PSVariables.h>
    20 #include    <PSVariables.h>
    20 #define Q_OS_SYMBIAN // needed to activate homescreendomainpskeys.h
    21 #include    <activeidle2domainpskeys.h>
    21 #include    <homescreendomainpskeys.h>
       
    22 #include    <CommonEngineDomainCRKeys.h>
    22 #include    <CommonEngineDomainCRKeys.h>
    23 #include    <BTSapDomainPSKeys.h>
    23 #include    <BTSapDomainPSKeys.h>
    24 #include    <coreapplicationuissdkcrkeys.h>
    24 #include    <ProfileEngineSDKCRKeys.h>
    25 #include    "TSatSystemStateFactory.h"
    25 #include    "TSatSystemStateFactory.h"
    26 #include    "CSatSystemState.h"
    26 #include    "CSatSystemState.h"
    27 #include    "msatmultimodeapi.h"
    27 #include    "msatmultimodeapi.h"
    28 #include    "CSatPSChangeNotifier.h"
    28 #include    "CSatPSChangeNotifier.h"
    29 #include    "CSatCenRepChangeNotifier.h"
    29 #include    "CSatCenRepChangeNotifier.h"
    30 #include    "SatLog.h"
    30 #include    "SatLog.h"
       
    31 
    31 
    32 
    32 // ======== MEMBER FUNCTIONS ========
    33 // ======== MEMBER FUNCTIONS ========
    33 
    34 
    34 // -----------------------------------------------------------------------------
    35 // -----------------------------------------------------------------------------
    35 // (other items were commented in a header).
    36 // (other items were commented in a header).
    58     {
    59     {
    59     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
    60     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
    60         CreateIdleModeChangeNotifierL calling" )
    61         CreateIdleModeChangeNotifierL calling" )
    61 
    62 
    62     MSatSystemStateChangeNotifier* ret = CSatPSChangeNotifier::NewL(
    63     MSatSystemStateChangeNotifier* ret = CSatPSChangeNotifier::NewL(
    63         KHsCategoryUid,
    64         KPSUidAiInformation,
    64         KHsCategoryStateKey,
    65         KActiveIdleState,
    65         aObserver,
    66         aObserver,
    66         EHomeScreenIdleState );
    67         EPSAiForeground );
    67 
    68 
    68     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
    69     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
    69         CreateIdleModeChangeNotifierL exiting" )
    70         CreateIdleModeChangeNotifierL exiting" )
    70     return ret;
    71     return ret;
    71     }
    72     }
   168     {
   169     {
   169     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
   170     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
   170         CreateProfileChangeNotifierL calling" )
   171         CreateProfileChangeNotifierL calling" )
   171 
   172 
   172     MSatSystemStateChangeNotifier* ret = CSatCenRepChangeNotifier::NewL(
   173     MSatSystemStateChangeNotifier* ret = CSatCenRepChangeNotifier::NewL(
   173         KCRUidCoreApplicationUIs,
   174         KCRUidProfileEngine,
   174         KCoreAppUIsNetworkConnectionAllowed,
   175         KProEngActiveProfile,
   175         aObserver,
   176         aObserver,
   176         CSatCenRepChangeNotifier::ECRTypeInteger );
   177         CSatCenRepChangeNotifier::ECRTypeInteger );
   177 
   178 
   178     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
   179     LOG( SIMPLE, "SATSYSTEMSTATE: TSatSystemStateFactory::\
   179         CreateProfileChangeNotifierL exiting" )
   180         CreateProfileChangeNotifierL exiting" )