|
1 /* |
|
2 * Copyright (c) 2000 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 policymanagement components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CONSTANTS_HEADER__ |
|
20 #define CONSTANTS_HEADER__ |
|
21 |
|
22 namespace IniConstants |
|
23 { |
|
24 const TUint8 KPersistsVersion = 0; |
|
25 |
|
26 |
|
27 _LIT( KCentRepToolPanic, "CentRepToolPanic"); |
|
28 |
|
29 const TInt KFileOpenAttemps = 20; |
|
30 const TInt KFileOpenPeriod = 50; |
|
31 |
|
32 const TInt KSettingNameLength = 10; |
|
33 const TUint8 KSettingEndMark = 10; |
|
34 const TInt KUidLengthRep = 8; |
|
35 const TInt KUidLengthSet = 10; |
|
36 const TInt KAccessStringLength = 6; |
|
37 const TInt KPathLength = 80; |
|
38 const TInt KFileNameLength = 12; |
|
39 |
|
40 const TUint16 KUcs2Bom = 0xfeff; |
|
41 |
|
42 const TPtrC KReadAccessSidString( _L( "sid_rd")); |
|
43 const TPtrC KReadAccessCapString( _L( "cap_rd")); |
|
44 const TPtrC KWriteAccessSidString( _L( "sid_wr")); |
|
45 const TPtrC KWriteAccessCapString( _L( "cap_wr")); |
|
46 const TPtrC8 KAccessAlwaysPass( _L8( "alwayspass")); |
|
47 const TPtrC8 KAccessAlwaysFail( _L8( "alwaysfail")); |
|
48 |
|
49 _LIT(KTypeInt, "int"); |
|
50 _LIT(KTypeReal, "real"); |
|
51 _LIT(KTypeString, "string"); |
|
52 _LIT(KTypeString8, "string8"); |
|
53 _LIT(KTypeBinary, "binary"); |
|
54 |
|
55 |
|
56 |
|
57 _LIT( KRepositoryFileExtensionTxt, ".txt"); |
|
58 _LIT( KRepositoryFileExtensionCre, ".cre"); |
|
59 |
|
60 //for construction backup... |
|
61 _LIT( KRepositoryFileExtensionTmp, ".tmp"); |
|
62 |
|
63 |
|
64 _LIT( KDefaultMetaSection, "[defaultmeta]"); |
|
65 const TInt KDefaultMetaStringLength = 13; |
|
66 |
|
67 _LIT( KOwnerSection, "[owner]"); |
|
68 const TInt KOwnerStringLength = 7; |
|
69 |
|
70 |
|
71 _LIT( KPlatSecSection, "[platsec]"); |
|
72 const TInt KPlatSecStringLength = 9; |
|
73 _LIT( KMainSection, "[main]"); |
|
74 _LIT( KMask, "mask"); |
|
75 const TInt KMainSectionStringLength = 6; |
|
76 |
|
77 _LIT( KDriveC, "C:\\private\\10202be9\\persists\\"); |
|
78 _LIT( KDriveZ, "Z:\\private\\10202be9\\"); |
|
79 |
|
80 _LIT( KBackupPath, "C:\\private\\10207819\\"); |
|
81 _LIT( KTempFile, "rep.tmp"); |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 ////FROM CENTREP |
|
88 |
|
89 |
|
90 const TInt KPrivatePathLen = 25; //20 for path + 5 for wildcard |
|
91 _LIT(KRepositoryFilesWildcard, "*.txt"); |
|
92 |
|
93 |
|
94 _LIT(KSignature, "cenrep"); |
|
95 LOCAL_D const TInt KSignatureLen = 6; |
|
96 _LIT(KVersion, "version"); |
|
97 LOCAL_D const TInt KVersionLen = 7; |
|
98 LOCAL_D const TUint KCurrentVersion = 1; |
|
99 |
|
100 LOCAL_D const TInt KMaxTypeLen = 6; |
|
101 LOCAL_D const TChar KNullDataIndicator = '-'; |
|
102 |
|
103 // PlatSec identifiers in the ini file |
|
104 const TInt KPlatSecSectionLen = 9; |
|
105 const TInt KMainSectionLen = 6; |
|
106 //const TInt KIniFileSectionLen = MAX(KPlatSecSectionLen,KMainSectionLen); |
|
107 _LIT(KMaskString, "mask"); |
|
108 const TInt KMaskLen = 4; |
|
109 //_LIT(KReadAccessSidString, "sid_rd"); |
|
110 //_LIT(KReadAccessCapString, "cap_rd"); |
|
111 //_LIT(KWriteAccessSidString, "sid_wr"); |
|
112 //_LIT(KWriteAccessCapString, "cap_wr"); |
|
113 //_LIT(KAccessAlwaysPass, "alwayspass"); |
|
114 |
|
115 const TInt KMaxAccessTypeLen = 6; // could do max of _LITs above |
|
116 const TInt KMaxCapabilityStringLen = 20; // longest capability string from CapabilityNames is 15 |
|
117 |
|
118 |
|
119 } |
|
120 |
|
121 #endif |