|
1 /* |
|
2 * Copyright (c) 2009 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: Common defines for FormatterRFSPlugin |
|
15 * |
|
16 */ |
|
17 |
|
18 // Constants for constructing exclude list name |
|
19 /** |
|
20 * Exclude list path name extension |
|
21 */ |
|
22 const TInt KExcludeListPathNameLenExt( 2 ); |
|
23 |
|
24 /** |
|
25 * Exclude list path and file |
|
26 */ |
|
27 _LIT( KExcludeList, "\\private\\100059C9\\excludelist.txt" ); |
|
28 |
|
29 /** |
|
30 * Exclude list path and file which has the entries of the NR-flagged applications which are installed in c:\ drive and the RFS operation |
|
31 * is based on this file itself |
|
32 */ |
|
33 _LIT( KExcludeListcache, "\\private\\100059C9\\excludelistcache.txt" ); |
|
34 |
|
35 /** |
|
36 * Application exclude list path |
|
37 */ |
|
38 _LIT( KApplicationExcludeListPath, "?:\\private\\102073ea\\excludes\\" ); |
|
39 |
|
40 /** |
|
41 * Application exclude list file search pattern |
|
42 */ |
|
43 _LIT( KApplicationExcludeListFileSearchPattern, "*.exc" ); |
|
44 |
|
45 /** |
|
46 * Uid separator |
|
47 */ |
|
48 _LIT( KEmptyParameter, "-" ); |
|
49 |
|
50 /** |
|
51 * ROM drive |
|
52 */ |
|
53 _LIT( KDefaultRom, "Z" ); |
|
54 |
|
55 // Constants used to run Secure Formatter |
|
56 /** |
|
57 * Secure formatter argument extension length |
|
58 */ |
|
59 const TInt KSecureFormatterArgLenExt( 4 ); |
|
60 |
|
61 /** |
|
62 * Base error code. |
|
63 */ |
|
64 const TInt KErrBase = 1000; |
|
65 |
|
66 /** |
|
67 * Error code for invalid exclude list. |
|
68 */ |
|
69 const TInt KErrInvalidExcList = KErrBase; |
|
70 |
|
71 /** |
|
72 * Secure formatter argument format |
|
73 */ |
|
74 _LIT( KSecureFormatterArgFmt, "%S %c%c%c" ); |
|
75 |
|
76 /** |
|
77 * Secure formatter |
|
78 */ |
|
79 _LIT( KSecureFormatter, "secureformatter.exe" ); |
|
80 |
|
81 // Directories to create after format |
|
82 /** |
|
83 * Central repository path |
|
84 */ |
|
85 _LIT( KCenRepPrivatePath, "\\Private\\10202be9\\" ); |
|
86 |
|
87 /** |
|
88 * Central repository persists path |
|
89 */ |
|
90 _LIT( KCenRepPersistsPath, "\\Private\\10202be9\\persists\\" ); |
|
91 |
|
92 /** |
|
93 * Central repository bur path |
|
94 */ |
|
95 _LIT( KCenRepBurPath, "\\Private\\10202be9\\bur\\" ); |
|
96 |
|
97 // Constants used in RFS script |
|
98 /** |
|
99 * Hexadecimal length |
|
100 */ |
|
101 const TInt KHexLength( 8 ); |
|
102 |
|
103 /** |
|
104 * Key separator |
|
105 */ |
|
106 _LIT( KScriptKeySeparator, ":" ); |
|
107 |
|
108 /** |
|
109 * Uid separator |
|
110 */ |
|
111 _LIT( KScriptUidSeparator, ";" ); |