|
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: Implementation of mmi security. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHCNTMMISECURITYIMPL_H |
|
20 #define CPHCNTMMISECURITYIMPL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPhCntMmiSecurity.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CManualSecuritySettings; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * It is implementation of mmi security. |
|
32 * |
|
33 * @lib PhoneCntFinder |
|
34 * @since 1.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CPhCntMmiSecurityImpl ) |
|
37 : public CPhCntMmiSecurity |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @return New instance |
|
44 */ |
|
45 static CPhCntMmiSecurityImpl* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CPhCntMmiSecurityImpl(); |
|
51 |
|
52 public: // From base classes |
|
53 |
|
54 /** |
|
55 * From CPhCntMmiSecurity |
|
56 */ |
|
57 TBool ChangePinL( |
|
58 TPinCommand aCommand, |
|
59 const TDesC& aCode, |
|
60 const TDesC& aNewPin, |
|
61 const TDesC& aVerifyNew ); |
|
62 |
|
63 /** |
|
64 * From CPhCntMmiSecurity |
|
65 */ |
|
66 TBool ChangeSimLockL( |
|
67 TSimCommand aCommand, |
|
68 const TDesC& aCode, |
|
69 const TDesC& aType ); |
|
70 |
|
71 /** |
|
72 * From CPhCntMmiSecurity |
|
73 */ |
|
74 void Cancel(); |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * Creates model. |
|
80 * |
|
81 * @return model. |
|
82 */ |
|
83 CManualSecuritySettings& CreateModelL(); |
|
84 |
|
85 /** |
|
86 * Destroyes model. |
|
87 */ |
|
88 void DestroyModel(); |
|
89 |
|
90 /** |
|
91 * Panics (in debug builds). |
|
92 */ |
|
93 static void Panic(); |
|
94 |
|
95 private: // Data |
|
96 // Security model |
|
97 CManualSecuritySettings* iModel; |
|
98 |
|
99 }; |
|
100 |
|
101 #endif // CPHCNTMMISECURITYIMPL_H |
|
102 |
|
103 // End of File |