equal
deleted
inserted
replaced
51 // Default Calendar database path |
51 // Default Calendar database path |
52 _LIT( KCalendarDatabaseFilePath, "c:calendar" ); |
52 _LIT( KCalendarDatabaseFilePath, "c:calendar" ); |
53 _LIT( KPhoneCalendar,"Personal" ); |
53 _LIT( KPhoneCalendar,"Personal" ); |
54 _LIT( KExtCalendar,"Ext calendar" ); |
54 _LIT( KExtCalendar,"Ext calendar" ); |
55 const TInt KBuffLength = 24; |
55 const TInt KBuffLength = 24; |
|
56 |
|
57 _LIT(KPhoneCalendarName,"PhoneCalendar"); |
56 |
58 |
57 // ============================ MEMBER FUNCTIONS =============================== |
59 // ============================ MEMBER FUNCTIONS =============================== |
58 |
60 |
59 // ----------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
60 // CCalenGlobalData::CCalenGlobalData |
62 // CCalenGlobalData::CCalenGlobalData |
1467 EXPORT_C void CCalenGlobalData::GetAllCalendarInfoL( |
1469 EXPORT_C void CCalenGlobalData::GetAllCalendarInfoL( |
1468 RPointerArray<CCalCalendarInfo>& aCalendarInfoList ) |
1470 RPointerArray<CCalCalendarInfo>& aCalendarInfoList ) |
1469 { |
1471 { |
1470 TRACE_ENTRY_POINT; |
1472 TRACE_ENTRY_POINT; |
1471 |
1473 |
1472 for(TInt index=0;index<iCalendarInfoList.Count();index++) |
1474 for(TInt index=0;index < iCalendarInfoList.Count();index++) |
1473 { |
1475 { |
1474 aCalendarInfoList.AppendL(iCalendarInfoList[index]); |
1476 TPtrC fileNamePtr = iCalendarInfoList[index]->FileNameL(); |
|
1477 TPtrC calendarNamePtr = iCalendarInfoList[index]->NameL(); |
|
1478 |
|
1479 //We dont want default calendar PhoneCalendar tobe shown in calendarui. |
|
1480 if(fileNamePtr.CompareF(KCalendarDatabaseFilePath) |
|
1481 && calendarNamePtr.CompareF(KPhoneCalendarName)) |
|
1482 { |
|
1483 aCalendarInfoList.AppendL(iCalendarInfoList[index]); |
|
1484 } |
1475 } |
1485 } |
1476 |
1486 |
1477 TRACE_EXIT_POINT; |
1487 TRACE_EXIT_POINT; |
1478 } |
1488 } |
1479 |
1489 |