|
1 /* |
|
2 * Copyright (c) 2002 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: It is base class for handlers of supplementary service requests. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHONEGSMSSHANDLER_H |
|
20 #define CPHONEGSMSSHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPhoneGsmHandlerBase.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CPhoneGsmParserResult; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * It is base class for handlers of supplementary service requests. |
|
32 * |
|
33 * @since 1.0 |
|
34 * @lib phoneparser.lib |
|
35 */ |
|
36 class CPhoneGsmSsHandler |
|
37 : public CPhoneGsmHandlerBase |
|
38 { |
|
39 public: // New functions |
|
40 |
|
41 /** |
|
42 * It is enumeration containing all actions. |
|
43 */ |
|
44 enum TAction |
|
45 { |
|
46 EActivate, |
|
47 EDeactivate, |
|
48 EInterrogate, |
|
49 ERegister, |
|
50 EErase |
|
51 }; |
|
52 |
|
53 /** |
|
54 * It is enumeration containing all forwarding procedures. |
|
55 */ |
|
56 enum TForwardingProcedure |
|
57 { |
|
58 EForwardingNotReachable, |
|
59 EForwardingNoReply, |
|
60 EForwardingBusy, |
|
61 EForwardingUnconditional, |
|
62 EForwardingAll, |
|
63 EForwardingAllConditional |
|
64 }; |
|
65 |
|
66 /** |
|
67 * It is enumeration containing all barring procedures. |
|
68 */ |
|
69 enum TBarringProcedure |
|
70 { |
|
71 EBarringAllOutgoingCalls, |
|
72 EBarringAllOutgoingInternationalCalls, |
|
73 EBarringAllOutgoingInternationalCallsExceptHome, |
|
74 EBarringAllIncomingCalls, |
|
75 EBarringAllIncomingCallsWhenRoaming, |
|
76 EBarringAllServices, |
|
77 EBarringAllOutgoingServices, |
|
78 EBarringAllIncomingServices |
|
79 }; |
|
80 |
|
81 /** |
|
82 * It is enumeration containing all password procedures. |
|
83 */ |
|
84 enum TPasswordProcedure |
|
85 { |
|
86 EPasswordBarring, |
|
87 EPasswordNetwork |
|
88 }; |
|
89 |
|
90 /** |
|
91 * Process forwarding procedures. |
|
92 * |
|
93 * If a parameter is not allowed for a procedure, |
|
94 * then it is empty. If a parameter is not explicitly given, |
|
95 * then it is empty. If a parameter is present, then it can |
|
96 * be assumed to contain appropriate values. |
|
97 * |
|
98 * @param aAction It is action. |
|
99 * @param aForwarding It contains forwarding procedure. |
|
100 * @param aNumber It is directory number. |
|
101 * @param aBasicCode It is basic service code. |
|
102 * @param aTimer It is timer. |
|
103 */ |
|
104 virtual void ProcessForwardingL( |
|
105 TAction aAction, |
|
106 TForwardingProcedure aForwarding, |
|
107 const TDesC& aNumber, |
|
108 const TDesC& aBasicCode, |
|
109 const TDesC& aTimer ) = 0; |
|
110 |
|
111 /** |
|
112 * Process barring procedures. |
|
113 * |
|
114 * See comments for forwarding, they apply also in here. |
|
115 * |
|
116 * @param aAction It is action. |
|
117 * @param aBarring It contains barring procedure. |
|
118 * @param aPassword It should be barring password, if required. |
|
119 * @param aBasicCode It is basic service code. |
|
120 */ |
|
121 virtual void ProcessBarringL( |
|
122 TAction aAction, |
|
123 TBarringProcedure aBarring, |
|
124 const TDesC& aPassword, |
|
125 const TDesC& aBasicCode ) = 0; |
|
126 |
|
127 /** |
|
128 * Process password change |
|
129 * |
|
130 * @param aPassword It is password procedure. |
|
131 * @param aOldPassword It should be old password. |
|
132 * @param aNewPassword1 It is new password. |
|
133 * @param aNewPassword2 It is new password. |
|
134 */ |
|
135 virtual void ProcessPasswordChangeL( |
|
136 TPasswordProcedure aPassword, |
|
137 const TDesC& aOldPassword, |
|
138 const TDesC& aNewPassword1, |
|
139 const TDesC& aNewPassword2 ) = 0; |
|
140 |
|
141 /** |
|
142 * Process waiting. |
|
143 * |
|
144 * @param aAction It is action. |
|
145 * @param aBasicCode It is basic service code. |
|
146 */ |
|
147 virtual void ProcessWaitingL( |
|
148 TAction aAction, |
|
149 const TDesC& aBasicCode ) = 0; |
|
150 |
|
151 /** |
|
152 * Process calling line identification presentation status. |
|
153 */ |
|
154 virtual void ProcessClipStatusL() = 0; |
|
155 |
|
156 /** |
|
157 * Process calling line idnetification restriction status. |
|
158 */ |
|
159 virtual void ProcessClirStatusL() = 0; |
|
160 |
|
161 /** |
|
162 * Process connected line presentation status. |
|
163 */ |
|
164 virtual void ProcessColpStatusL() = 0; |
|
165 |
|
166 /** |
|
167 * Process connected line restriction status. |
|
168 */ |
|
169 virtual void ProcessColrStatusL() = 0; |
|
170 |
|
171 /** |
|
172 * Process calling name presentation status. |
|
173 */ |
|
174 virtual void ProcessCnapStatusL() = 0; |
|
175 |
|
176 public: // Functions from base classes |
|
177 |
|
178 /** |
|
179 * From CPhoneGsmHandlerBase, processes result. |
|
180 * |
|
181 * @param aResult It is to be processed. |
|
182 */ |
|
183 IMPORT_C virtual void ProcessL( CPhoneGsmParserResult& aResult ); |
|
184 |
|
185 private: |
|
186 |
|
187 /** |
|
188 * Process barring result. |
|
189 */ |
|
190 void DoProcessBarringL( |
|
191 TBarringProcedure aBarring, |
|
192 CPhoneGsmParserResult& aResult ); |
|
193 |
|
194 /** |
|
195 * Process forwarding result. |
|
196 */ |
|
197 void DoProcessForwardingL( |
|
198 TForwardingProcedure aForwarding, |
|
199 CPhoneGsmParserResult& aResult ); |
|
200 }; |
|
201 |
|
202 #endif // CPHONEGSMSSHANDLER_H |
|
203 |
|
204 // End of File |