equal
deleted
inserted
replaced
19 |
19 |
20 |
20 |
21 //debug |
21 //debug |
22 #include "calendarui_debug.h" |
22 #include "calendarui_debug.h" |
23 |
23 |
24 #include "calensolarterms.h" |
24 #include "CalenSolarTerms.h" |
25 |
25 |
26 #include "calenlunarpaths.h" |
26 #include "CalenLunarPaths.h" |
27 |
27 |
28 #include <f32file.h> |
28 #include <f32file.h> |
29 #include <s32file.h> |
29 #include <s32file.h> |
30 |
30 |
31 |
31 |
32 // CONSTANTS |
32 // CONSTANTS |
33 _LIT(KSolarTermsFile, "SolarItems"); |
33 _LIT(KSolarTermsFile, "SolarItems"); |
34 // search path for solar item file |
34 // search path for solar item file |
35 //Uncomment for emulator |
35 //Uncomment for emulator |
36 _LIT( KSolarTermsPath, "//private//10005901//" ); |
36 //_LIT( KSolarTermsPath, "\\private\\10005901\\" ); |
37 |
37 |
38 //_LIT( KSolarTermsPath, "//Data//calenlunarchinese//" ); |
38 _LIT( KSolarTermsPath, "\\data\\" ); |
39 const TInt KFirstSolarTermYear(1900); |
39 const TInt KFirstSolarTermYear(1900); |
40 const TInt KLastSolarTermYear(2100); |
40 const TInt KLastSolarTermYear(2100); |
41 |
41 |
42 |
42 |
43 // ======== MEMBER FUNCTIONS ======== |
43 // ======== MEMBER FUNCTIONS ======== |
181 { |
181 { |
182 RFile file; |
182 RFile file; |
183 RFs& fs = iFs; |
183 RFs& fs = iFs; |
184 TFindFile ffile(fs); |
184 TFindFile ffile(fs); |
185 User::LeaveIfError(ffile.FindByDir(KSolarTermsFile, KSolarTermsPath)); |
185 User::LeaveIfError(ffile.FindByDir(KSolarTermsFile, KSolarTermsPath)); |
|
186 // User::LeaveIfError(ffile.FindByPath(KSolarTermsFile, KSolarTermsPath)); |
|
187 |
186 User::LeaveIfError(file.Open(fs, |
188 User::LeaveIfError(file.Open(fs, |
187 ffile.File(), EFileRead)); |
189 ffile.File(), EFileRead)); |
188 CleanupClosePushL(file); |
190 CleanupClosePushL(file); |
189 |
191 |
190 TInt seekPos = |
192 TInt seekPos = |