24
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// This file contains all the interfaces classes that can be implemented by
|
|
15 |
// the Licensee LTSY relating to Security related features.
|
|
16 |
//
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
/**
|
|
22 |
@file
|
|
23 |
@publishedPartner
|
|
24 |
@released
|
|
25 |
*/
|
|
26 |
|
|
27 |
|
|
28 |
#ifndef MLTSYDISPATCHSECURITYINTERFACE_H_
|
|
29 |
#define MLTSYDISPATCHSECURITYINTERFACE_H_
|
|
30 |
|
|
31 |
#include <ctsy/ltsy/mltsydispatchinterface.h>
|
|
32 |
#include <etelmm.h>
|
|
33 |
#include <ctsy/serviceapi/cmmutility.h>
|
|
34 |
|
|
35 |
namespace DispatcherSecurity
|
|
36 |
{
|
|
37 |
|
|
38 |
/**
|
|
39 |
* This namespace contains all types relating to the Security dispatcher.
|
|
40 |
*/
|
|
41 |
|
|
42 |
enum TSecurityCodeId
|
|
43 |
{
|
|
44 |
ESecCodeSecurity = 1,
|
|
45 |
ESecCodePin,
|
|
46 |
ESecCodePuk,
|
|
47 |
ESecCodePin2,
|
|
48 |
ESecCodePuk2,
|
|
49 |
ESecCodeUpin = 7
|
|
50 |
};
|
|
51 |
|
|
52 |
}
|
|
53 |
|
|
54 |
class MLtsyDispatchSecurityGetSecurityCodeInfo : public MLtsyDispatchInterface
|
|
55 |
{
|
|
56 |
public:
|
|
57 |
|
|
58 |
static const TInt KLtsyDispatchSecurityGetSecurityCodeInfoApiId = KDispatchSecurityFuncUnitId + 1;
|
|
59 |
|
|
60 |
/**
|
|
61 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneGetSecurityCodeInfo
|
|
62 |
* request from the CTSY.
|
|
63 |
*
|
|
64 |
* It is a request call that is completed by invoking
|
|
65 |
* CCtsyDispatcherCallback::CallbackSecurityGetSecurityCodeInfoComp()
|
|
66 |
*
|
|
67 |
* Implementation of this interface should allow a client to retrieve the current number or remaining entry attempts of a
|
|
68 |
* security code.
|
|
69 |
*
|
|
70 |
* @param aSecCode The security code whose information is to be retrieved.
|
|
71 |
*
|
|
72 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
73 |
* failure.
|
|
74 |
*/
|
|
75 |
virtual TInt HandleGetSecurityCodeInfoReqL(RMobilePhone::TMobilePhoneSecurityCode aSecCode) = 0;
|
|
76 |
|
|
77 |
}; // class MLtsyDispatchSecurityGetSecurityCodeInfo
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
class MLtsyDispatchSecurityGetLockInfo : public MLtsyDispatchInterface
|
|
82 |
{
|
|
83 |
public:
|
|
84 |
|
|
85 |
static const TInt KLtsyDispatchSecurityGetLockInfoApiId = KDispatchSecurityFuncUnitId + 2;
|
|
86 |
|
|
87 |
/**
|
|
88 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneGetLockInfo
|
|
89 |
* request from the CTSY.
|
|
90 |
*
|
|
91 |
* It is a request call that is completed by invoking
|
|
92 |
* CCtsyDispatcherCallback::CallbackSecurityGetLockInfoComp()
|
|
93 |
*
|
|
94 |
* Implementation of this interface should retrieve the current status and setting of a lock.
|
|
95 |
*
|
|
96 |
* @param aLockType The lock type whose information is to be retrieved.
|
|
97 |
*
|
|
98 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
99 |
* failure.
|
|
100 |
*/
|
|
101 |
virtual TInt HandleGetLockInfoReqL(RMobilePhone::TMobilePhoneLock aLockType) = 0;
|
|
102 |
|
|
103 |
}; // class MLtsyDispatchSecurityGetLockInfo
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
class MLtsyDispatchSecurityAbortSecurityCode : public MLtsyDispatchInterface
|
|
108 |
{
|
|
109 |
public:
|
|
110 |
|
|
111 |
static const TInt KLtsyDispatchSecurityAbortSecurityCodeApiId = KDispatchSecurityFuncUnitId + 3;
|
|
112 |
|
|
113 |
/**
|
|
114 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneAbortSecurityCode
|
|
115 |
* request from the CTSY.
|
|
116 |
*
|
|
117 |
* It is a request call that is completed by invoking
|
|
118 |
* CCtsyDispatcherCallback::CallbackSecurityAbortSecurityCodeComp()
|
|
119 |
*
|
|
120 |
* Implementation of this interface should inform the phone that the user has cancelled an outstanding
|
|
121 |
* "get security code" or "verify security code" request.
|
|
122 |
*
|
|
123 |
* @param aSecCode Specifies which code request has been cancelled.
|
|
124 |
*
|
|
125 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
126 |
* failure.
|
|
127 |
*/
|
|
128 |
virtual TInt HandleAbortSecurityCodeReqL(RMobilePhone::TMobilePhoneSecurityCode aSecCode) = 0;
|
|
129 |
|
|
130 |
}; // class MLtsyDispatchSecurityAbortSecurityCode
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
class MLtsyDispatchSecurityGetCurrentActivePin : public MLtsyDispatchInterface
|
|
135 |
{
|
|
136 |
public:
|
|
137 |
|
|
138 |
static const TInt KLtsyDispatchSecurityGetCurrentActivePinApiId = KDispatchSecurityFuncUnitId + 4;
|
|
139 |
|
|
140 |
/**
|
|
141 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsySecurityGetSimActivePinStateIPC
|
|
142 |
* request from the CTSY.
|
|
143 |
*
|
|
144 |
* It is a request call that is completed by invoking
|
|
145 |
* CCtsyDispatcherCallback::CallbackSecurityGetCurrentActivePinComp()
|
|
146 |
*
|
|
147 |
* Implementation of this interface should prepare the updating the information of the currently active PIN.
|
|
148 |
*
|
|
149 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
150 |
* failure.
|
|
151 |
*/
|
|
152 |
virtual TInt HandleGetCurrentActivePinReqL() = 0;
|
|
153 |
|
|
154 |
}; // class MLtsyDispatchSecurityGetCurrentActivePin
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
class MLtsyDispatchSecuritySetLockSetting : public MLtsyDispatchInterface
|
|
159 |
{
|
|
160 |
public:
|
|
161 |
|
|
162 |
static const TInt KLtsyDispatchSecuritySetLockSettingApiId = KDispatchSecurityFuncUnitId + 5;
|
|
163 |
|
|
164 |
/**
|
|
165 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneSetLockSetting
|
|
166 |
* request from the CTSY.
|
|
167 |
*
|
|
168 |
* It is a request call that is completed by invoking
|
|
169 |
* CCtsyDispatcherCallback::CallbackSecuritySetLockSettingComp()
|
|
170 |
*
|
|
171 |
* Implementation of this interface should allow a client to change the current setting of a lock.
|
|
172 |
*
|
|
173 |
* @param aLock The lock to change.
|
|
174 |
* @param aSetting The new settings for the lock.
|
|
175 |
* @param aPassword The password paramaters.
|
|
176 |
*
|
|
177 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
178 |
* failure.
|
|
179 |
*
|
|
180 |
* @see RMobilePhone::SetLockSetting()
|
|
181 |
*/
|
|
182 |
virtual TInt HandleSetLockSettingReqL(RMobilePhone::TMobilePhoneLock aLock, RMobilePhone::TMobilePhoneLockSetting aSetting, const TDesC& aPassword) = 0;
|
|
183 |
|
|
184 |
}; // class MLtsyDispatchSecuritySetLockSetting
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
class MLtsyDispatchSecurityVerifySecurityCode : public MLtsyDispatchInterface
|
|
189 |
{
|
|
190 |
public:
|
|
191 |
|
|
192 |
static const TInt KLtsyDispatchSecurityVerifySecurityCodeApiId = KDispatchSecurityFuncUnitId + 6;
|
|
193 |
|
|
194 |
/**
|
|
195 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneVerifySecurityCode
|
|
196 |
* request from the CTSY.
|
|
197 |
*
|
|
198 |
* It is a request call that is completed by invoking
|
|
199 |
* CCtsyDispatcherCallback::CallbackSecurityVerifySecurityCodeComp()
|
|
200 |
*
|
|
201 |
* Implementation of this interface should send a security code requiring verification to the phone.
|
|
202 |
*
|
|
203 |
* If the security code required is one of the unblock codes (either PUK1 or
|
|
204 |
* PUK2), then the user must supply a new PIN1 or PIN2 code as well as the associated
|
|
205 |
* unblocking code. In this case, aUnblockCode will contain the unblocking code
|
|
206 |
* and aCode will contain the new PIN1 or PIN2 value. If the security code required
|
|
207 |
* is NOT one of the unblock codes, then the user only has to supply the one
|
|
208 |
* security code. In this case, aUnblockCode will be invalid and aCode will contain
|
|
209 |
* the required security code (PIN1, PIN2 or Phone Password).
|
|
210 |
*
|
|
211 |
* @param aSecCode The type of code that is to be verified.
|
|
212 |
* @param aCodes The actual code and if a PUK1 or PUK2 is specified, the PUK code.
|
|
213 |
*
|
|
214 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
215 |
* failure.
|
|
216 |
*/
|
|
217 |
virtual TInt HandleVerifySecurityCodeReqL(
|
|
218 |
RMobilePhone::TMobilePhoneSecurityCode aSecCode,
|
|
219 |
const RMobilePhone::TCodeAndUnblockCode& aCodes) = 0;
|
|
220 |
|
|
221 |
}; // class MLtsyDispatchSecurityVerifySecurityCode
|
|
222 |
|
|
223 |
class MLtsyDispatchSecurityGetPin1DisableSupported : public MLtsyDispatchInterface
|
|
224 |
{
|
|
225 |
public:
|
|
226 |
static const TInt KLtsyDispatchSecurityGetPin1DisableSupportedApiId = KDispatchSecurityFuncUnitId + 7;
|
|
227 |
/**
|
|
228 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneGetPin1DisableSupportedIPC
|
|
229 |
* request from the CTSY.
|
|
230 |
*
|
|
231 |
* It is a request call that is completed by invoking
|
|
232 |
* CCtsyDispatcherCallback::CallbackSecurityGetPin1DisableSupportedComp()
|
|
233 |
*
|
|
234 |
* Implementation of this interface should complete whether the SIM supports disabling of PIN1.
|
|
235 |
* This is retrieved from either the EFsst (defined in 3GPP TS 31.102) or
|
|
236 |
* EFust (defined in 3GPP TS 11.11) tables.
|
|
237 |
*
|
|
238 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
239 |
* failure.
|
|
240 |
*/
|
|
241 |
virtual TInt HandleGetPin1DisableSupportedReqL() = 0;
|
|
242 |
|
|
243 |
}; // class MLtsyDispatchSimGetPin1DisableSupported
|
|
244 |
|
|
245 |
class MLtsyDispatchSecurityCheckSecurityCode : public MLtsyDispatchInterface
|
|
246 |
{
|
|
247 |
public:
|
|
248 |
static const TInt KLtsyDispatchSecurityCheckSecurityCodeApiId = KDispatchSecurityFuncUnitId + 8;
|
|
249 |
/**
|
|
250 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomCheckSecurityCodeIPC
|
|
251 |
* request from the CTSY.
|
|
252 |
*
|
|
253 |
* It is a request call that is completed by invoking
|
|
254 |
* CCtsyDispatcherCallback::CallbackSecurityCheckSecurityCodeComp()
|
|
255 |
*
|
|
256 |
* Implementation of this interface should anwser the check security code request.
|
|
257 |
*
|
|
258 |
* @param aCodeID Code ID.
|
|
259 |
* @param aSecCode Security code (maximum length = KMaxMobilePasswordSize).
|
|
260 |
*
|
|
261 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
262 |
* failure.
|
|
263 |
*/
|
|
264 |
virtual TInt HandleCheckSecurityCodeReqL(DispatcherSecurity::TSecurityCodeId aSecCodeID, const TDes& aSecCode) = 0;
|
|
265 |
|
|
266 |
}; // class MLtsyDispatchSecurityCheckSecurityCode
|
|
267 |
|
|
268 |
|
|
269 |
class MLtsyDispatchSecurityDisablePhoneLock : public MLtsyDispatchInterface
|
|
270 |
{
|
|
271 |
public:
|
|
272 |
static const TInt KLtsyDispatchSecurityDisablePhoneLockApiId = KDispatchSecurityFuncUnitId + 9;
|
|
273 |
/**
|
|
274 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomDisablePhoneLockIPC
|
|
275 |
* request from the CTSY.
|
|
276 |
*
|
|
277 |
* It is a request call that is completed by invoking
|
|
278 |
* CCtsyDispatcherCallback::CallbackSecurityDisablePhoneLockComp()
|
|
279 |
*
|
|
280 |
* Implementation of this interface should disable phone lock.
|
|
281 |
*
|
|
282 |
* @param aSecCode Security code (maximum length = KMaxMobilePasswordSize).
|
|
283 |
*
|
|
284 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
285 |
* failure.
|
|
286 |
*/
|
|
287 |
virtual TInt HandleDisablePhoneLockReqL(const TDesC& aSecCode) = 0;
|
|
288 |
|
|
289 |
}; // class MLtsyDispatchSecurityDisablePhoneLock
|
|
290 |
|
|
291 |
class MLtsyDispatchSecurityGetCipheringInfo : public MLtsyDispatchInterface
|
|
292 |
{
|
|
293 |
public:
|
|
294 |
static const TInt KLtsyDispatchSecurityGetCipheringInfoApiId = KDispatchSecurityFuncUnitId + 10;
|
|
295 |
/**
|
|
296 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomGetCipheringInfoIPC
|
|
297 |
* request from the CTSY.
|
|
298 |
*
|
|
299 |
* It is a request call that is completed by invoking
|
|
300 |
* CCtsyDispatcherCallback::CallbackSecurityGetCipheringInfoComp()
|
|
301 |
*
|
|
302 |
* Implementation of this interface should allow retrieving ciphering info: indicator and ciphering status.
|
|
303 |
*
|
|
304 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
305 |
* failure.
|
|
306 |
*/
|
|
307 |
virtual TInt HandleGetCipheringInfoReqL() = 0;
|
|
308 |
|
|
309 |
}; // class MLtsyDispatchSecurityGetCipheringInfo
|
|
310 |
|
|
311 |
|
|
312 |
class MLtsyDispatchSecurityIsSecurityCodeBlocked : public MLtsyDispatchInterface
|
|
313 |
{
|
|
314 |
public:
|
|
315 |
static const TInt KLtsyDispatchSecurityIsSecurityCodeBlockedApiId = KDispatchSecurityFuncUnitId + 11;
|
|
316 |
/**
|
|
317 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomIsBlockedIPC
|
|
318 |
* request from the CTSY.
|
|
319 |
*
|
|
320 |
* It is a request call that is completed by invoking
|
|
321 |
* CCtsyDispatcherCallback::CallbackSecurityIsSecurityCodeBlockedComp()
|
|
322 |
*
|
|
323 |
* Implementation of this interface should support retrieving synchronously the information
|
|
324 |
* if the security code is blocked or not.
|
|
325 |
*
|
|
326 |
* @param aCodeID Code ID.
|
|
327 |
*
|
|
328 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
329 |
* failure.
|
|
330 |
*/
|
|
331 |
virtual TInt HandleIsSecurityCodeBlockedReqL(DispatcherSecurity::TSecurityCodeId aSecCodeID) = 0;
|
|
332 |
|
|
333 |
}; // class MLtsyDispatchSecurityIsSecurityCodeBlocked
|
|
334 |
|
|
335 |
class MLtsyDispatchSecurityCheckSecurityCodeCancel : public MLtsyDispatchInterface
|
|
336 |
{
|
|
337 |
public:
|
|
338 |
static const TInt KLtsyDispatchSecurityCheckSecurityCodeCancelApiId = KDispatchSecurityFuncUnitId + 12;
|
|
339 |
/**
|
|
340 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomCheckSecurityCodeCancelIPC
|
|
341 |
* request from the CTSY.
|
|
342 |
*
|
|
343 |
* It is a request call that is completed by invoking
|
|
344 |
* CCtsyDispatcherCallback::CallbackSecurityCheckSecurityCodeCancelComp()
|
|
345 |
*
|
|
346 |
* Implementation of this interface should cancel check security code request.
|
|
347 |
*
|
|
348 |
* @param aCodeID Code ID.
|
|
349 |
*
|
|
350 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
351 |
* failure.
|
|
352 |
*/
|
|
353 |
virtual TInt HandleCheckSecurityCodeCancelReqL(DispatcherSecurity::TSecurityCodeId aSecCodeID) = 0;
|
|
354 |
|
|
355 |
}; // class MLtsyDispatchSecurityCheckSecurityCodeCancel
|
|
356 |
|
|
357 |
|
|
358 |
|
|
359 |
#endif /*MLTSYDISPATCHSECURITYINTERFACE_H_*/
|