|
1 /* |
|
2 * Copyright (c) 2002-2005 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: CPsetCli is calling line identification restriction SS |
|
15 * setting abstraction. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef PSETCLIR_H |
|
22 #define PSETCLIR_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <etelmm.h> |
|
26 #include "MPsetCliObserver.h" |
|
27 #include "MPsetCli.h" |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class MPsetRequestObserver; |
|
32 |
|
33 |
|
34 // CLASS DECLARATION |
|
35 /** |
|
36 * CPsetCli class is calling line identification restriction SS handler. |
|
37 * @lib phonesettings.lib |
|
38 * @since 1.0 |
|
39 */ |
|
40 class CPsetCli : public CActive, |
|
41 public MPsetCli |
|
42 { |
|
43 public: // constructor & destructor |
|
44 |
|
45 // CLIR's current value |
|
46 enum TPsetClirSetting |
|
47 { |
|
48 EPsetClirPreset = -1, |
|
49 EPsetClirActive = 1, |
|
50 EPsetClirInactive = 0 |
|
51 }; |
|
52 |
|
53 /** |
|
54 * Symbian OS 2-phase constructor. |
|
55 * |
|
56 * @param aPhone Provides client access to |
|
57 * mobile phone functionality provided by TSY. |
|
58 * @param aObserver Observer for CLI. |
|
59 * @return Created CPsetCli object. |
|
60 */ |
|
61 IMPORT_C static CPsetCli* NewL( RMobilePhone& aPhone, |
|
62 MPsetCliObserver& aObserver ); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 IMPORT_C ~CPsetCli(); |
|
68 |
|
69 public: //from base classes |
|
70 |
|
71 /** |
|
72 * @see MPsetCli::GetColpModeL |
|
73 * Can leave, but due to inheritance not an L-function. |
|
74 */ |
|
75 IMPORT_C void GetColpModeL(); |
|
76 |
|
77 /** |
|
78 * @see MPsetCli::GetClipModeL |
|
79 * Can leave, but due to inheritance not an L-function. |
|
80 */ |
|
81 IMPORT_C void GetClipModeL(); |
|
82 |
|
83 /** |
|
84 * @see MPsetCli::GetClirModeL |
|
85 * Can leave, but due to inheritance not an L-function. |
|
86 */ |
|
87 IMPORT_C void GetClirModeL(); |
|
88 |
|
89 /** |
|
90 * @see MPsetCli::GetColrModeL |
|
91 * Can leave, but due to inheritance not an L-function. |
|
92 */ |
|
93 IMPORT_C void GetColrModeL(); |
|
94 |
|
95 /** |
|
96 * @see MPsetCli::CancelAll |
|
97 * Can leave, but due to inheritance not an L-function. |
|
98 */ |
|
99 IMPORT_C void CancelAll(); |
|
100 |
|
101 /* |
|
102 * @see MPsetCli::GetCnapL |
|
103 * @since Series60_1.2 |
|
104 */ |
|
105 IMPORT_C void GetCnapL(); |
|
106 |
|
107 public: //new |
|
108 |
|
109 /* |
|
110 * Sets request observer. |
|
111 * |
|
112 * @param aObs Where the request completion should be informed to. |
|
113 */ |
|
114 IMPORT_C void SetRequestObserver( MPsetRequestObserver* aObs ); |
|
115 |
|
116 private: //constructor |
|
117 |
|
118 /***************************************************** |
|
119 * Series 60 Customer / ETel |
|
120 * Series 60 ETel API |
|
121 *****************************************************/ |
|
122 CPsetCli( RMobilePhone& aPhone ); |
|
123 |
|
124 private: //from base class CActive |
|
125 |
|
126 void RunL(); |
|
127 |
|
128 void DoCancel(); |
|
129 |
|
130 private: //new |
|
131 |
|
132 void SetObserver( MPsetCliObserver& aObserver ); |
|
133 |
|
134 void CleanupLeavePushL(); |
|
135 |
|
136 void HandleLeave(); |
|
137 |
|
138 static void DoHandleLeave( TAny* aAny ); |
|
139 |
|
140 void RequestCompleted( const TInt& aError ); |
|
141 |
|
142 /***************************************************** |
|
143 * Series 60 Customer / ETel |
|
144 * Series 60 ETel API |
|
145 *****************************************************/ |
|
146 //Issues requests. |
|
147 void IssueRequestL( RMobilePhone::TMobilePhoneIdService aService ); |
|
148 |
|
149 /***************************************************** |
|
150 * Series 60 Customer / ETel |
|
151 * Series 60 ETel API |
|
152 *****************************************************/ |
|
153 //Set request status. |
|
154 void SetRequestStatus( RMobilePhone::TMobilePhoneIdService aStatus ); |
|
155 |
|
156 private: //Member data |
|
157 /***************************************************** |
|
158 * Series 60 Customer / ETel |
|
159 * Series 60 ETel API |
|
160 *****************************************************/ |
|
161 //Provides client access to mobile phone functionality provided by TSY. |
|
162 RMobilePhone& iPhone; |
|
163 //Observer for CPsetCli. |
|
164 MPsetCliObserver* iObserver; |
|
165 /***************************************************** |
|
166 * Series 60 Customer / ETel |
|
167 * Series 60 ETel API |
|
168 *****************************************************/ |
|
169 //Current request for CPsetCli. |
|
170 RMobilePhone::TMobilePhoneIdService iRequestedService; |
|
171 /***************************************************** |
|
172 * Series 60 Customer / ETel |
|
173 * Series 60 ETel API |
|
174 *****************************************************/ |
|
175 //The result of inquiry. |
|
176 RMobilePhone::TMobilePhoneIdServiceStatus iServiceStatus; |
|
177 //Request observer. |
|
178 MPsetRequestObserver* iReqObserver; |
|
179 }; |
|
180 #endif // __PSETCLIR_H |
|
181 // end of file |