|
1 /** |
|
2 * Copyright (c) 2005-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TESTIMPEXVCARD_SUITEDEFS_H__ |
|
21 #define __TESTIMPEXVCARD_SUITEDEFS_H__ |
|
22 |
|
23 #define MAX_TEXT_MESSAGE 256 |
|
24 |
|
25 /** Generic*/ |
|
26 #include <e32test.h> |
|
27 #include <s32file.h> |
|
28 #include <e32std.h> |
|
29 #include <f32file.h> |
|
30 |
|
31 // User includes |
|
32 #include <cntdb.h> |
|
33 #include <vcard.h> |
|
34 #include <cntitem.h> |
|
35 #include <cntfldst.h> |
|
36 #include "cntvcardutils.h" |
|
37 |
|
38 _LIT(KOOM, "OOM"); |
|
39 const TInt KMaxLengthField = 100; |
|
40 /** Alarm Server*/ |
|
41 _LIT(KConsoleAlarmAlertServerImg,"ConsoleAlarmAlertServer"); |
|
42 |
|
43 /** Error Statements - CTestImpRevLocalTZ */ |
|
44 _LIT(KErrOpenDB,"OpenDBL returned error code = %d"); |
|
45 |
|
46 /** TestImpExvCardSuite */ |
|
47 _LIT(KOpenVCFFile, "Opened vCard VCF file %S"); |
|
48 _LIT(KExpectedUTC, "ExpectedUTC"); |
|
49 _LIT(KExpectedBDay, "ExpectedBDay"); |
|
50 |
|
51 /** CTestImpRevLocalTZ */ |
|
52 _LIT(KImportRevLocalTZ, "ImportRevLocalTZ"); |
|
53 _LIT(KPathImportRevLocalTZ, "\\CITExImvCard\\testdata\\ImportREVLocalTZ\\ImportREVLocalTZ"); |
|
54 |
|
55 /** CTestImpRevLocal */ |
|
56 _LIT(KImportRevLocal, "ImportRevLocal"); |
|
57 _LIT(KPathImportRevLocal, "\\CITExImvCard\\testdata\\ImportREVLocal\\ImportREVLocal"); |
|
58 |
|
59 /** CTestImpNoRev */ |
|
60 _LIT(KPathImportNoREv, "\\CITExImvCard\\testdata\\ImportNoRev\\ImportNoRev"); |
|
61 |
|
62 /** CTestImpRevUTC */ |
|
63 _LIT(KImportRevUTC, "ImportRevUTC"); |
|
64 _LIT(KPathImportRevUTC,"\\CITExImvCard\\testdata\\ImportRevUTC\\ImportRevUTC"); |
|
65 |
|
66 /** CTestImpBDay */ |
|
67 _LIT(KImportBDay, "ImportBDay"); |
|
68 _LIT(KPathImportBDay,"\\CITExImvCard\\testdata\\ImportBDay\\ImportBDay"); |
|
69 |
|
70 /** CTestImpNoBDay */ |
|
71 _LIT(KPathImportNoBDay, "\\CITExImvCard\\testdata\\ImportNoBDay\\ImportNoBDay"); |
|
72 |
|
73 /** CTestImpOOM */ |
|
74 _LIT(KImportOOM, "\\CITExImvCard\\testdata\\ImportOOM\\ImportOOM.vcf"); |
|
75 |
|
76 /** CTestExRevUTC */ |
|
77 _LIT(KExportRevUTCFile,"C:\\CITExImvCard\\ExportRevUTCFile.vcf"); |
|
78 |
|
79 /** CTestExBDayLocal */ |
|
80 _LIT(KExportBDayFile,"C:\\CITExImvCard\\ExportBDayLocalFile.vcf"); |
|
81 _LIT(KExportNoBDayFile,"C:\\CITExImvCard\\ExportNoBDayFile.vcf"); |
|
82 _LIT(KVCard, "VCARD"); |
|
83 _LIT(KBDayLocal, "BDAYLOCAL"); |
|
84 _LIT(KName, "NAME"); |
|
85 _LIT(KPhone, "PHONE"); |
|
86 |
|
87 /**CTestExportContact with data*/ |
|
88 _LIT(KExportAsstWithDataFile, "C:\\Export\\ExportAsstWithDataFile.vcf"); |
|
89 _LIT(KExportAsstTelWithDataFile, "C:\\Export\\ExportAsstTelWithDataFile.vcf"); |
|
90 _LIT(KExportAnniWithDataFile, "C:\\Export\\ExportAnniWithDataFile.vcf"); |
|
91 _LIT(KExportSpouseWithDataFile, "C:\\Export\\ExportSpouseWithDataFile.vcf"); |
|
92 _LIT(KExportChildrenWithDataFile, "C:\\Export\\ExportChildrenWithDataFile.vcf"); |
|
93 _LIT(KExportClassWithDataFile, "C:\\Export\\ExportClassWithDataFile.vcf"); |
|
94 _LIT(KExportDeptWithDataFile, "C:\\Export\\ExportDeptWithDataFile.vcf"); |
|
95 _LIT(KExportCompanyWithDataFile, "C:\\Export\\ExportCompanyWithDataFile.vcf"); |
|
96 |
|
97 /**CTestExportContact without data*/ |
|
98 _LIT(KExportAsstWithoutDataFile, "C:\\Export\\ExportAsstWithoutDataFile.vcf"); |
|
99 _LIT(KExportAsstTelWithoutDataFile, "C:\\Export\\ExportAsstTelWithoutDataFile.vcf"); |
|
100 _LIT(KExportAnniWithoutDataFile, "C:\\Export\\ExportAnniWithoutDataFile.vcf"); |
|
101 _LIT(KExportSpouseWithoutDataFile, "C:\\Export\\ExportSpouseWithoutDataFile.vcf"); |
|
102 _LIT(KExportChildrenWithoutDataFile, "C:\\Export\\ExportChildrenWithoutDataFile.vcf"); |
|
103 _LIT(KExportClassWithoutDataFile, "C:\\Export\\ExportClassWithoutDataFile.vcf"); |
|
104 _LIT(KExportDeptWithoutDataFile, "C:\\Export\\ExportDeptWithoutDataFile.vcf"); |
|
105 _LIT(KExportCompanyWithoutDataFile, "C:\\Export\\ExportCompanyWithoutDataFile.vcf"); |
|
106 |
|
107 /**CTestExportContact all fields*/ |
|
108 _LIT(KExportAllFieldFile, "C:\\Export\\ExportAllFieldFile.vcf"); |
|
109 _LIT(KExportAllWithoutDataFile, "C:\\Export\\ExportAllWithoutDataFile.vcf"); |
|
110 |
|
111 /*CTestExportContact empty dept and company fields*/ |
|
112 _LIT(KExportAllFieldWithEmptyCompanyFile, "C:\\Export\\ExportAllFieldWithEmptyCompanyFile.vcf"); |
|
113 _LIT(KExportAllFieldWithEmptyDeptFile, "C:\\Export\\ExportAllFieldWithEmptyDeptFile.vcf"); |
|
114 |
|
115 /**CTestExportContact with data for new file(in Merge Mode)*/ |
|
116 _LIT(KExportAsstWithNewFile, "C:\\Export\\ExportAsstWithNewFile.vcf"); |
|
117 _LIT(KExportAsstTelWithNewFile, "C:\\Export\\ExportAsstTelWithNewFile.vcf"); |
|
118 _LIT(KExportAnniWithNewFile, "C:\\Export\\ExportAnniWithNewFile.vcf"); |
|
119 _LIT(KExportSpouseWithNewFile, "C:\\Export\\ExportSpouseWithNewFile.vcf"); |
|
120 _LIT(KExportChildrenWithNewFile, "C:\\Export\\ExportChildrenWithNewFile.vcf"); |
|
121 _LIT(KExportClassWithNewFile, "C:\\Export\\ExportClassWithNewFile.vcf"); |
|
122 _LIT(KExportDeptWithNewFile, "C:\\Export\\ExportDeptWithNewFile.vcf"); |
|
123 _LIT(KExportCompanyWithNewFile, "C:\\Export\\ExportCompanyWithNewFile.vcf"); |
|
124 |
|
125 /**CTestImportContact with field but no data used for vCard in merge mode3*/ |
|
126 _LIT(KImportAsstMergeMode3File, "\\1286TestData\\ImportAsstMergeMode3File.vcf"); |
|
127 _LIT(KImportAsstTelMergeMode3File, "\\1286TestData\\ImportAsstTelMergeMode3File.vcf"); |
|
128 _LIT(KImportAnniMergeMode3File, "\\1286TestData\\ImportAnniMergeMode3File.vcf"); |
|
129 _LIT(KImportSpouseMergeMode3File, "\\1286TestData\\ImportSpouseMergeMode3File.vcf"); |
|
130 _LIT(KImportChildrenMergeMode3File, "\\1286TestData\\ImportChildrenMergeMode3File.vcf"); |
|
131 _LIT(KImportClassMergeMode3File, "\\1286TestData\\ImportClassMergeMode3File.vcf"); |
|
132 _LIT(KImportDeptMergeMode3File, "\\1286TestData\\ImportDeptMergeMode3File.vcf"); |
|
133 _LIT(KImportCompanyMergeMode3File, "\\1286TestData\\ImportCompanyMergeMode3File.vcf"); |
|
134 |
|
135 /**CTestImportContact with field but no data used for vCard in merge mode2*/ |
|
136 _LIT(KImportAsstMergeMode2File, "\\1286TestData\\ImportAsstMergeMode2File.vcf"); |
|
137 _LIT(KImportAsstTelMergeMode2File, "\\1286TestData\\ImportAsstTelMergeMode2File.vcf"); |
|
138 _LIT(KImportAnniMergeMode2File, "\\1286TestData\\ImportAnniMergeMode2File.vcf"); |
|
139 _LIT(KImportSpouseMergeMode2File, "\\1286TestData\\ImportSpouseMergeMode2File.vcf"); |
|
140 _LIT(KImportChildrenMergeMode2File, "\\1286TestData\\ImportChildrenMergeMode2File.vcf"); |
|
141 _LIT(KImportClassMergeMode2File, "\\1286TestData\\ImportClassMergeMode2File.vcf"); |
|
142 _LIT(KImportDeptMergeMode2File, "\\1286TestData\\ImportDeptMergeMode2File.vcf"); |
|
143 _LIT(KImportCompanyMergeMode2File, "\\1286TestData\\ImportCompanyMergeMode2File.vcf"); |
|
144 |
|
145 /**CTestImportContact field with currupt data*/ |
|
146 _LIT(KImportAsstCorruptData, "\\1286TestData\\ImportAsstCorruptData.vcf"); |
|
147 _LIT(KImportAsstTelCorruptData, "\\1286TestData\\ImportAsstTelCorruptData.vcf"); |
|
148 _LIT(KImportAnniCorruptData, "\\1286TestData\\ImportAnniCorruptData.vcf"); |
|
149 _LIT(KImportSpouseCorruptData, "\\1286TestData\\ImportSpouseCorruptData.vcf"); |
|
150 _LIT(KImportChildrenCorruptData, "\\1286TestData\\ImportChildrenCorruptData.vcf"); |
|
151 _LIT(KImportClassCorruptData, "\\1286TestData\\ImportClassCorruptData.vcf"); |
|
152 _LIT(KImportDeptCorruptData, "\\1286TestData\\ImportDeptCorruptData.vcf"); |
|
153 _LIT(KImportCompanyCorruptData, "\\1286TestData\\ImportCompanyCorruptData.vcf"); |
|
154 |
|
155 |
|
156 #endif |