|
1 /* |
|
2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file contains the header file of the CPEClientServices class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPECLIENTSERVICES_H |
|
21 #define CPECLIENTSERVICES_H |
|
22 |
|
23 //INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <RPhCltServer.h> |
|
26 #include <CPhCltEmergencyCall.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CPEClientCallRequestMonitor; |
|
31 class CPEClientCommandHandlerMonitor; |
|
32 class CPEDeviceModeHandler; |
|
33 class CPEMessageHandler; |
|
34 class MPEPhoneModelInternal; |
|
35 class CPhCltUssd; |
|
36 class MPECallHandling; |
|
37 class RTASecuritySession; |
|
38 class CPEClientEmergencyCallMonitor; |
|
39 class CPhCltCallNotify; |
|
40 class MPEClientCallRequestMonitor; |
|
41 class CPhCltDialData; |
|
42 class CPEManualCallControlHandler; |
|
43 |
|
44 // CLASS DECLARATION |
|
45 |
|
46 /** |
|
47 * Monitor client requests from the phone server(/phone client). |
|
48 * |
|
49 * |
|
50 * @lib PhoneEngine.lib |
|
51 * @since Series60_2.7 |
|
52 */ |
|
53 NONSHARABLE_CLASS( CPEClientServices ) : public CBase |
|
54 { |
|
55 public: //Constructors and destructor |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 ~CPEClientServices(); |
|
61 |
|
62 /** |
|
63 * Two-phased constructor. |
|
64 */ |
|
65 static CPEClientServices* NewL( |
|
66 MPEPhoneModelInternal& aModel, |
|
67 CPEMessageHandler& aMessageHandler, |
|
68 MPECallHandling& aCallHandling, |
|
69 CPEManualCallControlHandler& aManualCallControlHandler ); |
|
70 |
|
71 public: //New functions |
|
72 |
|
73 /** |
|
74 * Return whether the number specified would initiate an emergency call |
|
75 * @param aNumber a number to be checked |
|
76 * @param aIsEmergencyNumber Etrue, if the number is an emergency number. |
|
77 * @param aMode emergency number checking mode. |
|
78 * @return TInt Return value from PhoneClient. |
|
79 */ |
|
80 TInt IsEmergencyPhoneNumber( |
|
81 TPhCltTelephoneNumber& aNumber, |
|
82 TBool& aIsEmergencyNumber ); |
|
83 |
|
84 /** |
|
85 * Process USSD request |
|
86 * @param aString, Unicode string to be sent. |
|
87 */ |
|
88 TInt SendUssd( const TDesC& aString ); |
|
89 |
|
90 /** |
|
91 * Start Monitoring |
|
92 */ |
|
93 void StartMonitoring(); |
|
94 |
|
95 /** |
|
96 * Return pointer of dial data. |
|
97 */ |
|
98 MPEClientCallRequestMonitor* CallRequestMonitor(); |
|
99 |
|
100 /** |
|
101 * Return pointer of CPEClientCommandHandlerMonitor |
|
102 */ |
|
103 CPEClientCommandHandlerMonitor* CommandHandlerMonitor(); |
|
104 |
|
105 |
|
106 protected: |
|
107 |
|
108 /** |
|
109 * C++ default constructor. |
|
110 */ |
|
111 CPEClientServices( |
|
112 MPEPhoneModelInternal& aModel, |
|
113 CPEMessageHandler& aMessageHandler, |
|
114 MPECallHandling& aCallHandling, |
|
115 CPEManualCallControlHandler& aManualCallControlHandler ); |
|
116 |
|
117 void ConstructL(); |
|
118 |
|
119 |
|
120 private: //Data |
|
121 // MPEPhoneModelInternal is used to send message to the phone application |
|
122 MPEPhoneModelInternal& iModel; |
|
123 // CPEMessageHandler object which owns this requester. |
|
124 CPEMessageHandler& iMessageHandler; |
|
125 // Handle to Call Handling subsystem |
|
126 MPECallHandling& iCallHandling; |
|
127 // Handle to Phone Client/Server |
|
128 RPhCltServer iPhoneServer; |
|
129 // Service for checking emergency number. |
|
130 CPhCltEmergencyCall* iEmergency; |
|
131 // Handle to CPEClientEmergencyCallMonitor |
|
132 CPEClientEmergencyCallMonitor* iClientEmergencyMonitor; |
|
133 // Notifies call request from the client/server interface. |
|
134 CPhCltCallNotify* iCallNotifier; |
|
135 // Handle to Phone Client/Server USSD interface |
|
136 CPhCltUssd* iUssdClient; |
|
137 // Handle to CPEClientCommandHandlerMonitor |
|
138 CPEClientCommandHandlerMonitor* iClientCommandHandlerMonitor; |
|
139 // Handle to CPEClientCallRequestMonitor |
|
140 CPEClientCallRequestMonitor* iClientCallRequestMonitor; |
|
141 // USSD string to be sent |
|
142 TPtrC iString; |
|
143 // Handle to CPEDeviceModeHandler |
|
144 CPEDeviceModeHandler* iDeviceModeHandler; |
|
145 // Manual Call Control Handler |
|
146 CPEManualCallControlHandler& iManualCallControlHandler; |
|
147 }; |
|
148 |
|
149 #endif // CPECLIENTSERVICES_H |
|
150 |
|
151 // End of File |