1 /* |
|
2 * Copyright (c) 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: Model for Device & SIM security plug-in. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSSIMSECPLUGINMODEL_H |
|
20 #define GSSIMSECPLUGINMODEL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <centralrepository.h> |
|
25 |
|
26 // CONSTANTS |
|
27 const TInt KGSBufSize128 = 128; |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * CGSSimSecPluginModel is the model class of device & sim security plugin. |
|
40 * It provides functions to get and set setting values. |
|
41 * @lib GSSimSecPlugin.lib |
|
42 * @since Series 60_3.1 |
|
43 |
|
44 */ |
|
45 class CGSSimSecPluginModel : public CBase |
|
46 { |
|
47 public: // Constructor and destructor |
|
48 /** |
|
49 * Two-phased constructor |
|
50 */ |
|
51 static CGSSimSecPluginModel* NewL(); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~CGSSimSecPluginModel(); |
|
57 |
|
58 public: |
|
59 /** |
|
60 * Returns the autolock period time (minutes). |
|
61 * |
|
62 * @return TInt: period |
|
63 */ |
|
64 TInt AutoLockPeriod(); |
|
65 |
|
66 /** |
|
67 * Sets the autolock period. After this period device is locked. |
|
68 * @param aLockTime TInt (minutes) |
|
69 * |
|
70 * @return ETrue: no errors |
|
71 * EFalse: an error has occurred |
|
72 */ |
|
73 TBool SetAutoLockPeriod( const TInt aLockTime ); |
|
74 |
|
75 /** |
|
76 * Returns SAT operations sate |
|
77 * |
|
78 * @return TInt 0: SAT operations off |
|
79 * TInt 1: SAT operations on |
|
80 */ |
|
81 TInt SatOperations(); |
|
82 |
|
83 /** |
|
84 * Sets SAT operations on/off |
|
85 * @param aValue TInt (0 = off 1 =on) |
|
86 * |
|
87 * @return ETrue: no errors |
|
88 * EFalse: an error has occurred |
|
89 */ |
|
90 TBool SetSatOperations( const TInt aValue ); |
|
91 |
|
92 /** |
|
93 * Checking if SAT operations supported |
|
94 * @return: |
|
95 * 0: not supported |
|
96 * 1: supported |
|
97 */ |
|
98 TInt ConfirmSatOperationsSupport(); |
|
99 |
|
100 private: // Private constructors |
|
101 /** |
|
102 * Default C++ contructor |
|
103 */ |
|
104 CGSSimSecPluginModel(); |
|
105 |
|
106 /** |
|
107 * Symbian OS default constructor |
|
108 * @return void |
|
109 */ |
|
110 void ConstructL(); |
|
111 |
|
112 private: // data |
|
113 CRepository* iSecurityRepository; |
|
114 CRepository* iPersonalizationRepository; |
|
115 |
|
116 }; |
|
117 |
|
118 |
|
119 #endif //GSSIMSECPLUGINMODEL_H |
|
120 |
|
121 // End of File |
|