equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 // INCLUDE FILES |
18 // INCLUDE FILES |
19 #include <ctsydomainpskeys.h> |
19 #include <ctsydomainpskeys.h> |
20 #include "debugtracemacros.h" |
20 #include "debugtracemacros.h" |
21 #include "voipecalleventhandler.h" |
21 #include "VoIPECallEventHandler.h" |
22 |
22 |
23 // ----------------------------------------------------------------------------- |
23 // ----------------------------------------------------------------------------- |
24 // CVoIPECallEventHandler::CVoIPECallEventHandler |
24 // CVoIPECallEventHandler::CVoIPECallEventHandler |
25 // C++ default constructor can NOT contain any code, that |
25 // C++ default constructor can NOT contain any code, that |
26 // might leave. |
26 // might leave. |
41 { |
41 { |
42 TRACE_PRN_FN_ENT; |
42 TRACE_PRN_FN_ENT; |
43 CActiveScheduler::Add(this); |
43 CActiveScheduler::Add(this); |
44 User::LeaveIfError(iProperty.Attach(KPSUidCtsyEmergencyCallInfo, |
44 User::LeaveIfError(iProperty.Attach(KPSUidCtsyEmergencyCallInfo, |
45 KCTSYEmergencyCallInfo)); |
45 KCTSYEmergencyCallInfo)); |
|
46 iStatus = KRequestPending; |
46 iProperty.Subscribe(iStatus); |
47 iProperty.Subscribe(iStatus); |
47 SetActive(); |
48 SetActive(); |
48 TRACE_PRN_FN_EXT; |
49 TRACE_PRN_FN_EXT; |
49 } |
50 } |
50 |
51 |
96 TRACE_PRN_FN_ENT; |
97 TRACE_PRN_FN_ENT; |
97 // Subscribe immediately before analyzing the notification to ensure that we |
98 // Subscribe immediately before analyzing the notification to ensure that we |
98 // don't miss further updates. |
99 // don't miss further updates. |
99 if (iStatus.Int() == KErrNone) |
100 if (iStatus.Int() == KErrNone) |
100 { |
101 { |
|
102 iStatus = KRequestPending; |
101 iProperty.Subscribe(iStatus); |
103 iProperty.Subscribe(iStatus); |
102 SetActive(); |
104 SetActive(); |
103 |
105 |
104 TInt eCall = 0; |
106 TInt eCall = 0; |
105 iProperty.Get(eCall); |
107 iProperty.Get(eCall); |