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 // --------------------------------------------------------- |