16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 // Include Files |
20 // Include Files |
21 #include <cphcltemergencycall.h> // for TPhCltEmergencyNumber |
21 #include <CPhCltEmergencyCall.h> // for TPhCltEmergencyNumber |
22 #include <cphcltcallnotify.h> |
22 #include <CPhCltCallNotify.h> |
23 #include <cphcltdialdata.h> |
23 #include <cphcltdialdata.h> |
24 #include <mphcltdialrequestobserver.h> |
24 #include <mphcltdialrequestobserver.h> |
25 |
25 |
26 #include "rphcltserver.h" |
26 #include "RPhCltServer.h" |
27 #include "cphcltextphonedialdata.h" |
27 #include "CPhCltExtPhoneDialData.h" |
28 #include "rphcltcallnotify.h" |
28 #include "RPhCltCallNotify.h" |
29 #include "cphcltdialrequestmonitor.h" |
29 #include "cphcltdialrequestmonitor.h" |
30 #include "cphcltdialemergencyrequestmonitor.h" |
30 #include "cphcltdialemergencyrequestmonitor.h" |
31 #include "cphcltcomhandrequestmonitor.h" |
31 #include "cphcltcomhandrequestmonitor.h" |
32 |
32 |
33 // ============================= LOCAL FUNCTIONS =============================== |
33 // ============================= LOCAL FUNCTIONS =============================== |
74 // ----------------------------------------------------------------------------- |
74 // ----------------------------------------------------------------------------- |
75 // |
75 // |
76 EXPORT_C TInt CPhCltCallNotify::Open( RPhCltServer& aServer ) |
76 EXPORT_C TInt CPhCltCallNotify::Open( RPhCltServer& aServer ) |
77 { |
77 { |
78 TInt retVal = iCallNotify->Open( aServer ); |
78 TInt retVal = iCallNotify->Open( aServer ); |
79 return retVal; |
79 return retVal; |
80 } |
80 } |
81 |
81 |
82 // ----------------------------------------------------------------------------- |
82 // ----------------------------------------------------------------------------- |
83 // CPhCltCallNotify::Close |
83 // CPhCltCallNotify::Close |
84 // ----------------------------------------------------------------------------- |
84 // ----------------------------------------------------------------------------- |
127 // ----------------------------------------------------------------------------- |
127 // ----------------------------------------------------------------------------- |
128 // |
128 // |
129 EXPORT_C void CPhCltCallNotify::NotifyEmergencyCall( |
129 EXPORT_C void CPhCltCallNotify::NotifyEmergencyCall( |
130 MPhCltDialEmergencyRequestObserver* aObserver, |
130 MPhCltDialEmergencyRequestObserver* aObserver, |
131 TDesC& aEmergencyNumber ) |
131 TDesC& aEmergencyNumber ) |
132 { |
132 { |
133 iDialEmergencyMonitor->NotifyEmergencyCall( aObserver, aEmergencyNumber ); |
133 iDialEmergencyMonitor->NotifyEmergencyCall( aObserver, aEmergencyNumber ); |
134 } |
134 } |
135 |
135 |
136 // ----------------------------------------------------------------------------- |
136 // ----------------------------------------------------------------------------- |
137 // CPhCltCallNotify::CancelNotifyEmergencyCall() |
137 // CPhCltCallNotify::CancelNotifyEmergencyCall() |
138 // |
138 // |
139 // ----------------------------------------------------------------------------- |
139 // ----------------------------------------------------------------------------- |
140 // |
140 // |
141 EXPORT_C void CPhCltCallNotify::CancelNotifyEmergencyCall() const |
141 EXPORT_C void CPhCltCallNotify::CancelNotifyEmergencyCall() const |
142 { |
142 { |
143 iDialEmergencyMonitor->Cancel(); |
143 iDialEmergencyMonitor->Cancel(); |
144 } |
144 } |
145 |
145 |
146 // ----------------------------------------------------------------------------- |
146 // ----------------------------------------------------------------------------- |
147 // CPhCltCallNotify::RespondEmergencyToClient() |
147 // CPhCltCallNotify::RespondEmergencyToClient() |
148 // |
148 // |
149 // ----------------------------------------------------------------------------- |
149 // ----------------------------------------------------------------------------- |
150 // |
150 // |
151 EXPORT_C TInt CPhCltCallNotify::RespondEmergencyToClient( |
151 EXPORT_C TInt CPhCltCallNotify::RespondEmergencyToClient( |
152 const TInt aResultCode ) |
152 const TInt aResultCode ) |
153 { |
153 { |
154 return iDialEmergencyMonitor->RespondEmergencyToClient( aResultCode ); |
154 return iDialEmergencyMonitor->RespondEmergencyToClient( aResultCode ); |
155 } |
155 } |
156 |
156 |
157 // ----------------------------------------------------------------------------- |
157 // ----------------------------------------------------------------------------- |
158 // CPhCltCallNotify::NotifyComHandCommand |
158 // CPhCltCallNotify::NotifyComHandCommand |
159 // |
159 // |
160 // ----------------------------------------------------------------------------- |
160 // ----------------------------------------------------------------------------- |