|
1 /* |
|
2 * Copyright (c) 2005 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: Macros for scheduled backup configuration |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __MMCSCBKUPCONFIG_H__ |
|
20 #define __MMCSCBKUPCONFIG_H__ |
|
21 |
|
22 // System includes |
|
23 #include <e32std.h> |
|
24 #include <f32file.h> |
|
25 |
|
26 |
|
27 /** |
|
28 * |
|
29 * |
|
30 * @since 3.0 |
|
31 */ |
|
32 const TDriveNumber KMMCScBkupTempFileDrive = EDriveC; |
|
33 |
|
34 |
|
35 /** |
|
36 * |
|
37 * Folder for temporary files, which will be cleaned by Starter if temporary files not deleted. |
|
38 * Currently in 3.0/3.1 folder from C and E drives is cleaned. |
|
39 * |
|
40 * @since 3.0 |
|
41 */ |
|
42 _LIT(KMMCScBkupTempDir, ":\\System\\Temp\\"); |
|
43 |
|
44 |
|
45 /** |
|
46 * |
|
47 * |
|
48 * @since 3.0 |
|
49 */ |
|
50 _LIT(KMMCScBkupMediaGalleryThumbnailFolder, "*\\_PAlbTN\\*"); //Photo Album Thumbnail folder |
|
51 _LIT(KMMCScBkupVideoCenterFolderPath, "C:\\Data\\videocenter\\"); //video center folder |
|
52 _LIT(KMMCScBkupVideoCenterFolder, "*\\videocenter\\*"); //video center folder |
|
53 /** |
|
54 * |
|
55 * Allows the data that is received from the SBE or sent to the SBE to be dumped to individual |
|
56 * files for comparison and inspection purposes. |
|
57 * |
|
58 * @since 3.0 |
|
59 */ |
|
60 //#define DEBUGGING_DATA_TRANSFER |
|
61 |
|
62 /** |
|
63 * |
|
64 * Controls the various directories and files that are generated when debugging |
|
65 * data transfer |
|
66 * |
|
67 * @since 3.0 |
|
68 */ |
|
69 #ifdef DEBUGGING_DATA_TRANSFER |
|
70 _LIT(KMMCScBkupDataTransferDebuggingAllFiles, "*.*"); |
|
71 _LIT(KMMCScBkupDataTransferDebuggingFileName, "MMCBackupDataTransfer_0x%08x_(%c).dat"); |
|
72 // |
|
73 _LIT(KMMCScBkupDataTransferDebuggingPathRoot, "MMCDataDump\\"); |
|
74 _LIT(KMMCScBkupDataTransferDebuggingPathDataJava, "JavData\\"); |
|
75 _LIT(KMMCScBkupDataTransferDebuggingPathDataSystem, "SysData\\"); |
|
76 _LIT(KMMCScBkupDataTransferDebuggingPathDataPassive, "PasData\\"); |
|
77 _LIT(KMMCScBkupDataTransferDebuggingPathDataActive, "ActData\\"); |
|
78 // |
|
79 _LIT(KMMCScBkupDataTransferDebuggingPathDataBackup, "Backup\\"); |
|
80 _LIT(KMMCScBkupDataTransferDebuggingPathDataRestore, "Restore\\"); |
|
81 #endif |
|
82 |
|
83 /** |
|
84 * |
|
85 * Always makes the SBE logging directory - ensures logs are available |
|
86 * |
|
87 * @since 3.0 |
|
88 */ |
|
89 //#define MAKE_SBE_LOGGING_DIRECTORY |
|
90 |
|
91 /** |
|
92 * |
|
93 * Always makes the MMC Engine logging directory |
|
94 * |
|
95 * @since 3.0 |
|
96 */ |
|
97 //#define MAKE_MMCSCBKUP_LOGGING_DIRECTORY |
|
98 |
|
99 /** |
|
100 * |
|
101 * Controls whether logging is to file or to RDebug |
|
102 * |
|
103 * @since 3.0 |
|
104 */ |
|
105 //#ifdef _DEBUG |
|
106 //# define __MMCSCBKUPLOGGING_ENABLED__ |
|
107 //#if defined(__MMCSCBKUPLOGGING_ENABLED__) |
|
108 //# define __MMCSCBKUP_DATA_LOGGING_ENABLED__ |
|
109 //#endif |
|
110 # define __MMCSCBKUPLOGGING_MODE_FILE__ |
|
111 //# define __MMCSCBKUPLOGGING_MODE_RDEBUG__ |
|
112 //#endif |
|
113 |
|
114 |
|
115 /** |
|
116 * Use these to disable backup for the various data types. |
|
117 * |
|
118 * E.g: |
|
119 * |
|
120 * __DEBUG_TESTING_SKIP_BACKUP_REG_DATA return |
|
121 * |
|
122 * ... will ensure that registration data is not backed up (for any DO). |
|
123 * |
|
124 * @since 3.0 |
|
125 */ |
|
126 #define __DEBUG_TESTING_SKIP_BACKUP_REG_DATA |
|
127 #define __DEBUG_TESTING_SKIP_BACKUP_ACT_DATA |
|
128 #define __DEBUG_TESTING_SKIP_BACKUP_PAS_DATA |
|
129 #define __DEBUG_TESTING_SKIP_BACKUP_SYS_DATA |
|
130 #define __DEBUG_TESTING_SKIP_BACKUP_JAV_DATA |
|
131 #define __DEBUG_TESTING_SKIP_BACKUP_PUB_DATA |
|
132 |
|
133 /** |
|
134 * Use these to disable restore for the various data types |
|
135 * |
|
136 * E.g: |
|
137 * |
|
138 * __DEBUG_TESTING_SKIP_RESTORE_REG_DATA return |
|
139 * |
|
140 * ... will ensure that registration data is not restored (for any DO). |
|
141 * |
|
142 * @since 3.0 |
|
143 */ |
|
144 #define __DEBUG_TESTING_SKIP_RESTORE_REG_DATA |
|
145 #define __DEBUG_TESTING_SKIP_RESTORE_ACT_DATA |
|
146 #define __DEBUG_TESTING_SKIP_RESTORE_PAS_DATA |
|
147 #define __DEBUG_TESTING_SKIP_RESTORE_SYS_DATA |
|
148 #define __DEBUG_TESTING_SKIP_RESTORE_JAV_DATA |
|
149 #define __DEBUG_TESTING_SKIP_RESTORE_PUB_DATA |
|
150 |
|
151 |
|
152 #endif // __MMCSCBKUPCONFIG_H__ |
|
153 |
|
154 //End of File |