phoneapp/phoneuicontrol/src/cphonesystemeventhandler.cpp
changeset 77 2be0b271d017
parent 72 c76a0b1755b9
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include <telinformationpskeys.h>
    20 #include <telinformationpskeys.h>
    21 #include <telephonyvariant.hrh>
    21 #include <telephonyvariant.hrh>
    22 #include <UikonInternalPSKeys.h>
       
    23 #include <startupdomainpskeys.h>
    22 #include <startupdomainpskeys.h>
    24 #include <hwrmdomainpskeys.h>
    23 #include <hwrmdomainpskeys.h>
    25 
    24 
    26 #include "cphonesystemeventhandler.h"
    25 #include "cphonesystemeventhandler.h"
    27 #include "mphonestate.h"
    26 #include "mphonestate.h"
    73     // Set up notifications for call state values
    72     // Set up notifications for call state values
    74     CPhonePubSubProxy::Instance()->NotifyChangeL(
    73     CPhonePubSubProxy::Instance()->NotifyChangeL(
    75         KPSUidCtsyCallInformation,
    74         KPSUidCtsyCallInformation,
    76         KCTsyCallState,
    75         KCTsyCallState,
    77         this );
    76         this );
    78 
    77     
    79     // Set up notifications for displaying Telephony info on the title pane
       
    80     CPhonePubSubProxy::Instance()->NotifyChangeL(
       
    81         KPSUidTelInformation,
       
    82         KTelDisplayInfo,
       
    83         this );
       
    84 
       
    85     // Set up notifications for Sim security state values.
    78     // Set up notifications for Sim security state values.
    86     CPhonePubSubProxy::Instance()->NotifyChangeL(
    79     CPhonePubSubProxy::Instance()->NotifyChangeL(
    87         KPSUidStartup,
    80         KPSUidStartup,
    88         KStartupSimSecurityStatus,
    81         KStartupSimSecurityStatus,
    89         this );
    82         this );
    90 
       
    91     if ( CPhoneCenRepProxy::Instance()->IsTelephonyFeatureSupported(
       
    92             KTelephonyLVFlagSwivelInDevice ))
       
    93         {
       
    94         // Set up notifications for Swivel state.
       
    95         CPhonePubSubProxy::Instance()->NotifyChangeL(
       
    96             KPSUidHWRM,
       
    97             KHWRMGripStatus,
       
    98             this );
       
    99         }
       
   100     }
    83     }
   101 
    84 
   102 // ---------------------------------------------------------
    85 // ---------------------------------------------------------
   103 // CPhoneSystemEventHandler::CPhoneSystemEventHandler
    86 // CPhoneSystemEventHandler::CPhoneSystemEventHandler
   104 // C++ default constructor
    87 // C++ default constructor
   105 // (other items were commented in a header).
    88 // (other items were commented in a header).
   106 // ---------------------------------------------------------
    89 // ---------------------------------------------------------
   107 //
    90 //
   108 CPhoneSystemEventHandler::~CPhoneSystemEventHandler()
    91 CPhoneSystemEventHandler::~CPhoneSystemEventHandler()
   109     {
    92     {
   110     }
       
   111 
       
   112 // ---------------------------------------------------------
       
   113 // CPhoneSystemEventHandler::HandleSystemEventL
       
   114 // ---------------------------------------------------------
       
   115 //
       
   116 void CPhoneSystemEventHandler::HandleSystemEventL( const TWsEvent& aEvent )
       
   117     {
       
   118     iStateMachine->State()->HandleSystemEventL( aEvent );
       
   119     }
       
   120 
       
   121 // ---------------------------------------------------------
       
   122 // CPhoneSystemEventHandler::HandleForegroundEventL
       
   123 // ---------------------------------------------------------
       
   124 //
       
   125 void CPhoneSystemEventHandler::HandleForegroundEventL( TBool aForeground )
       
   126     {
       
   127     iStateMachine->State()->HandleForegroundEventL( aForeground );
       
   128     }
       
   129 
       
   130 // ---------------------------------------------------------
       
   131 // CPhoneSystemEventHandler::HandlePhoneForegroundEventL
       
   132 // ---------------------------------------------------------
       
   133 //
       
   134 void CPhoneSystemEventHandler::HandlePhoneForegroundEventL()
       
   135     {
       
   136     iStateMachine->State()->HandlePhoneForegroundEventL();
       
   137     }
       
   138 
       
   139  // ---------------------------------------------------------
       
   140 // CPhoneSystemEventHandler::HandlePhoneFocusLostEventL
       
   141 // ---------------------------------------------------------
       
   142 //
       
   143 void CPhoneSystemEventHandler::HandlePhoneFocusLostEventL()
       
   144     {
       
   145     iStateMachine->State()->HandlePhoneFocusLostEventL();
       
   146     }
       
   147 // ---------------------------------------------------------
       
   148 // CPhoneSystemEventHandler::HandleIdleForegroundEventL
       
   149 // ---------------------------------------------------------
       
   150 //
       
   151 void CPhoneSystemEventHandler::HandleIdleForegroundEventL()
       
   152     {
       
   153     iStateMachine->State()->HandleIdleForegroundEventL();
       
   154     }
       
   155 
       
   156 // ---------------------------------------------------------
       
   157 // CPhoneSystemEventHandler::HandleKeyLockEnabled
       
   158 // ---------------------------------------------------------
       
   159 //
       
   160 void CPhoneSystemEventHandler::HandleKeyLockEnabled( TBool aKeylockEnabled )
       
   161     {
       
   162     iStateMachine->State()->HandleKeyLockEnabled( aKeylockEnabled );
       
   163     }
    93     }
   164 
    94 
   165 // ---------------------------------------------------------
    95 // ---------------------------------------------------------
   166 // CPhoneSystemEventHandler::HandlePhoneStartupL
    96 // CPhoneSystemEventHandler::HandlePhoneStartupL
   167 // ---------------------------------------------------------
    97 // ---------------------------------------------------------
   181     const TInt aValue )
   111     const TInt aValue )
   182     {
   112     {
   183     iStateMachine->State()->HandlePropertyChangedL( aCategory, aKey, aValue );
   113     iStateMachine->State()->HandlePropertyChangedL( aCategory, aKey, aValue );
   184     }
   114     }
   185 
   115 
   186 // -----------------------------------------------------------
       
   187 // CPhoneSystemEventHandler::HandleCenRepChangeL
       
   188 // -----------------------------------------------------------
       
   189 //
       
   190 void CPhoneSystemEventHandler::HandleCenRepChangeL(
       
   191     const TUid& aUid,
       
   192     const TUint aId )
       
   193     {
       
   194     iStateMachine->State()->HandleCenRepChangeL( aUid, aId );
       
   195     }
       
   196 
       
   197 //  End of File
   116 //  End of File