|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <e32base.h> |
|
17 |
|
18 //all the constant value needs to be in a separate file |
|
19 //Care should be taken not to define the exported data in the same source file |
|
20 //in which they are referred, lest the compiler inline's it. If inlined, the |
|
21 //data cannot be patched. Hence, the definition of data must be put in a |
|
22 //separate source file and they must be referred in other source files by |
|
23 //using 'extern' qualifier |
|
24 |
|
25 /** |
|
26 Patchable data used in the Sysutil framework. This patchable data should be |
|
27 set to the drive letter of the MMC drive, in the range as specified by |
|
28 TDriveNumber enumeration. See sysutil.cpp for further details of the scheme |
|
29 used to configure this constant. |
|
30 @see TDriveNumber |
|
31 SysUtil::MMCSpaceBelowCriticalLevelL will use this specified drive to report |
|
32 on the disk levels. |
|
33 @internalComponent |
|
34 */ |
|
35 EXPORT_C extern const TInt KSysUtilDefaultMMCDrive = -1; |
|
36 |
|
37 /** |
|
38 Patchable data used in the Sysutil framework. Threshold for |
|
39 disk space critical level for a RAM drive. |
|
40 SysUtil::DiskSpaceBelowCriticalLevelL, SysUtil::FFSSpaceBelowCriticalLevelL or |
|
41 SysUtil::MMCSpaceBelowCriticalLevelL will use this level to determine if the |
|
42 disk level has reached the critical threshold. See sysutil.cpp for further |
|
43 details of the scheme used to configure this constant. |
|
44 @internalComponent |
|
45 */ |
|
46 #ifdef __WINSCW__ // Set to valid value for WINSCW as no patching supported. |
|
47 EXPORT_C extern const TInt KSysUtilRamDiskCriticalThreshold = 65536; |
|
48 #else |
|
49 EXPORT_C extern const TInt KSysUtilRamDiskCriticalThreshold = -1; |
|
50 #endif |
|
51 |
|
52 /** |
|
53 Patchable data used in the Sysutil framework. Thres |
|
54 SysUtil::DiskSpaceBelowCriticalLevelL, SysUtil::FFSSpaceBelowCriticalLevelL or |
|
55 SysUtil::MMCSpaceBelowCriticalLevelL will use this level to determine if the |
|
56 disk level has reached the critical threshold.. See sysutil.cpp for |
|
57 further details of the scheme used to configure this constant. |
|
58 @internalComponent |
|
59 */ |
|
60 #ifdef __WINSCW__ // Set to valid value for WINSCW as no patching supported. |
|
61 EXPORT_C extern const TInt KSysUtilOtherDiskCriticalThreshold = 262144; |
|
62 #else |
|
63 EXPORT_C extern const TInt KSysUtilOtherDiskCriticalThreshold = -1; |
|
64 #endif |
|
65 |
|
66 /** |
|
67 Patchable data used in the Sysutil framework. This patchable data should be |
|
68 set to the drive letter of the FFS drive, in the range as specified by |
|
69 TDriveNumber enumeration. See sysutil.cpp for further details of the scheme |
|
70 used to configure this constant. |
|
71 @see TDriveNumber |
|
72 SysUtil::FFSSpaceBelowCriticalLevelL will use this specified drive to report on |
|
73 the disk levels. |
|
74 @internalComponent |
|
75 */ |
|
76 EXPORT_C extern const TInt KSysUtilDefaultFFSDrive = -1; |
|
77 |
|
78 /** |
|
79 Patchable data used to turn off sysutilsetup.exe for the version APIs. By |
|
80 doing this caching of the version information will be turned off. This means |
|
81 the configuration files will be read each time the SysUtil version information |
|
82 APIs are called. Off/disabled is the default platform value to ensure backwards |
|
83 compatibility with earlier SysUtil implementations. |
|
84 @internalComponent |
|
85 */ |
|
86 EXPORT_C extern const TInt KSysUtilDisableVersionSetupExe = ETrue; |
|
87 |
|
88 |
|
89 /** |
|
90 Patchable data used to turn off sysutilsetup.exe for the device type |
|
91 information API. By doing this two things will happen. Firstly, caching of |
|
92 the device type information will be turned off. This means the configuration |
|
93 files will be read each time the SysUtil device type information API is called. |
|
94 Secondly, the ability to use a plug-in will be disabled. This will limit the |
|
95 configuration of the device type information API to only the configuration |
|
96 files. |
|
97 @internalComponent |
|
98 */ |
|
99 EXPORT_C extern const TInt KSysUtilDisableDeviceTypeInfoSetupExe = EFalse; |
|
100 |
|
101 /** |
|
102 Patchable data used to enable the ability of SysUtil to find it's text files in |
|
103 the 'C:\versions\' folder rather than 'Z:\resource\versions\'. |
|
104 Once enabled the test paths can be switched on by setting a P&S property to |
|
105 ETrue in the system category (KUidSystemCategory) with a key of 0x10285B40. |
|
106 If the test paths are switched on then any of the TXT files, INI files and |
|
107 plug-in can be placed on the system drive and will be used instead of the |
|
108 equivalent files on the Z drive. |
|
109 |
|
110 This constant also turns on the ability to use the -delete flag with |
|
111 SysUtilSetup.exe. This flag tells SysUtilSetup.exe to delete the Version |
|
112 and Device Type Information Publish and Subscribe properties. |
|
113 @internalComponent |
|
114 */ |
|
115 #ifdef __WINSCW__ |
|
116 // Set to valid value for WINSCW since cannot patch WINSCW builds |
|
117 // as there is no security threat posed by enabling this under the emulator. |
|
118 EXPORT_C extern const TInt KSysUtilTestModeEnabled = ETrue; |
|
119 #else |
|
120 EXPORT_C extern const TInt KSysUtilTestModeEnabled = EFalse; |
|
121 #endif |