54 const TInt KParamIDBlockedAtTime = 6; |
55 const TInt KParamIDBlockedAtTime = 6; |
55 |
56 |
56 const TInt KParamIDBlockedInOOS = 7; |
57 const TInt KParamIDBlockedInOOS = 7; |
57 // ID number for the encrypted security code. |
58 // ID number for the encrypted security code. |
58 const TInt KParamIDCryptoCode = 8; |
59 const TInt KParamIDCryptoCode = 8; |
59 |
60 //ID number for the boolean for the configuartion check |
|
61 const TInt KParamIDConfigChecked = 9; |
60 |
62 |
61 // Total number of Param IDs |
63 // Total number of Param IDs |
62 const TInt KTotalParamIDs = 8; |
64 const TInt KTotalParamIDs = 9; |
63 |
65 |
64 //#ifdef __SAP_DEVICE_LOCK_ENHANCEMENTS |
66 //#ifdef __SAP_DEVICE_LOCK_ENHANCEMENTS |
65 #define SCP_PARAMETERS_WithFlag { &iConfigFlag, \ |
67 #define SCP_PARAMETERS_WithFlag { &iConfigFlag, \ |
66 &iMaxTimeout, \ |
68 &iMaxTimeout, \ |
67 &iSecCode, \ |
69 &iSecCode, \ |
68 &iEnhSecCode, \ |
70 &iEnhSecCode, \ |
69 &iFailedAttempts, \ |
71 &iFailedAttempts, \ |
70 &iBlockedAtTime, \ |
72 &iBlockedAtTime, \ |
71 &iBlockedInOOS, \ |
73 &iBlockedInOOS, \ |
72 &iCryptoCode \ |
74 &iCryptoCode, \ |
73 }; |
75 &iConfigChecked \ |
|
76 }; |
74 |
77 |
75 #define SCP_PARAMIDS_WithFlag { KParamIDConfigFlag, \ |
78 #define SCP_PARAMIDS_WithFlag { KParamIDConfigFlag, \ |
76 KParamIDMaxTimeout, \ |
79 KParamIDMaxTimeout, \ |
77 KParamIDSecCode, \ |
80 KParamIDSecCode, \ |
78 KParamIDEnhSecCode, \ |
81 KParamIDEnhSecCode, \ |
79 KParamIDFailedAttempts, \ |
82 KParamIDFailedAttempts, \ |
80 KParamIDBlockedAtTime, \ |
83 KParamIDBlockedAtTime, \ |
81 KParamIDBlockedInOOS, \ |
84 KParamIDBlockedInOOS, \ |
82 KParamIDCryptoCode \ |
85 KParamIDCryptoCode, \ |
83 }; |
86 KParamIDConfigChecked \ |
|
87 }; |
84 |
88 |
85 #define SCP_PARAMTYPES_WithFlag { EParTypeInt, \ |
89 #define SCP_PARAMTYPES_WithFlag { EParTypeInt, \ |
86 EParTypeInt, \ |
90 EParTypeInt, \ |
87 EParTypeDesc, \ |
91 EParTypeDesc, \ |
88 EParTypeDesc, \ |
92 EParTypeDesc, \ |
89 EParTypeInt, \ |
93 EParTypeInt, \ |
90 EParTypeDesc, \ |
94 EParTypeDesc, \ |
91 EParTypeInt, \ |
95 EParTypeInt, \ |
92 EParTypeDesc\ |
96 EParTypeDesc, \ |
93 }; |
97 EParTypeBool \ |
|
98 }; |
94 |
99 |
95 //#else // !__SAP_DEVICE_LOCK_ENHANCEMENTS |
100 //#else // !__SAP_DEVICE_LOCK_ENHANCEMENTS |
96 |
101 |
97 // Definitions for the structures that control the parsing |
102 // Definitions for the structures that control the parsing |
98 #define SCP_PARAMETERS_WithOutFlag { &iConfigFlag, \ |
103 #define SCP_PARAMETERS_WithOutFlag { &iConfigFlag, \ |
182 /** The security code stored on the server */ |
187 /** The security code stored on the server */ |
183 TSCPSecCode iSecCode; |
188 TSCPSecCode iSecCode; |
184 /** The name of the main configuration file */ |
189 /** The name of the main configuration file */ |
185 TFileName iConfigFileName; |
190 TFileName iConfigFileName; |
186 TInt iBlockedInOOS; |
191 TInt iBlockedInOOS; |
187 |
192 |
|
193 //Flag to check whether Configuration checked already |
|
194 TBool iConfigChecked; |
|
195 |
188 /** A ptr to a connected RFs, not owned */ |
196 /** A ptr to a connected RFs, not owned */ |
189 RFs* iFsSession; |
197 RFs* iFsSession; |
190 |
198 |
191 //#ifdef __SAP_DEVICE_LOCK_ENHANCEMENTS |
199 //#ifdef __SAP_DEVICE_LOCK_ENHANCEMENTS |
192 /** The enchanced security code stored on the server */ |
200 /** The enchanced security code stored on the server */ |