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