|
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: Provides interface to mmi initiated security operations. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHCNTMMISECURITY_H |
|
20 #define CPHCNTMMISECURITY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * It provides interface to perform mmi initiated security operations. |
|
29 * |
|
30 * The class shouldn't be destroyed during operation. |
|
31 * |
|
32 * @lib PhoneCntFinder |
|
33 * @since 1.0 |
|
34 */ |
|
35 class CPhCntMmiSecurity |
|
36 : public CBase |
|
37 { |
|
38 public: // New functions |
|
39 |
|
40 /** |
|
41 * Enumerates different pin related commands. |
|
42 * |
|
43 * ECmdChangePin - change pin. |
|
44 * ECmdChangePin2 - change pin2. |
|
45 * ECmdUnblockPin - unblock pin. |
|
46 * ECmdUnblockPin2 - unblock pin2. |
|
47 */ |
|
48 enum TPinCommand |
|
49 { |
|
50 ECmdChangePin, |
|
51 ECmdChangePin2, |
|
52 ECmdUnblockPin, |
|
53 ECmdUnblockPin2 |
|
54 }; |
|
55 |
|
56 /** |
|
57 * Change pin code. |
|
58 * |
|
59 * @param aCommand command. |
|
60 * @param aCode old code. |
|
61 * if command is change, then old pin. |
|
62 * if command is unblock, then puk. |
|
63 * @param aNewPin new pin. |
|
64 * @param aVerifyNew verification of pin. |
|
65 */ |
|
66 virtual TBool ChangePinL( |
|
67 TPinCommand aCommand, |
|
68 const TDesC& aCode, |
|
69 const TDesC& aNewPin, |
|
70 const TDesC& aVerifyNew ) = 0; |
|
71 |
|
72 /** |
|
73 * Enumerates different sim commands. |
|
74 * |
|
75 * ECmdOpenLock - opens lock. |
|
76 * ECmdCloseLock - closes lock. |
|
77 */ |
|
78 enum TSimCommand |
|
79 { |
|
80 ECmdOpenLock, |
|
81 ECmdCloseLock |
|
82 }; |
|
83 |
|
84 /** |
|
85 * Change sim lock status. |
|
86 * |
|
87 * @param aCommand command. |
|
88 * @param aCode password. |
|
89 * @param aType type of lock. |
|
90 */ |
|
91 virtual TBool ChangeSimLockL( |
|
92 TSimCommand aCommand, |
|
93 const TDesC& aCode, |
|
94 const TDesC& aType ) = 0; |
|
95 |
|
96 /** |
|
97 * Cancels whatever it is doing. |
|
98 * |
|
99 * If not doing anything, then does nothing. |
|
100 */ |
|
101 virtual void Cancel() = 0; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // CPHCNTMMISECURITY_H |
|
106 |
|
107 // End of File |