equal
deleted
inserted
replaced
776 |
776 |
777 // ---------------------------------------------------------------------------- |
777 // ---------------------------------------------------------------------------- |
778 // CESMRCalDbMgr::GetCalendarColorByNameL |
778 // CESMRCalDbMgr::GetCalendarColorByNameL |
779 // ---------------------------------------------------------------------------- |
779 // ---------------------------------------------------------------------------- |
780 // |
780 // |
781 TRgb CESMRCalDbMgr::GetCalendarColorByNameL(TDesC& aCalendarName) |
781 TRgb CESMRCalDbMgr::GetCalendarColorByNameL( const TDesC& aCalendarName ) |
782 { |
782 { |
783 FUNC_LOG; |
783 FUNC_LOG; |
784 TInt count = iCalendarInfoArray.Count(); |
784 TInt count = iCalendarInfoArray.Count(); |
785 TRgb color(0); |
785 TRgb color(0); |
786 |
786 |
797 |
797 |
798 // ---------------------------------------------------------------------------- |
798 // ---------------------------------------------------------------------------- |
799 // CESMRCalDbMgr::SetCurCalendarByNameL |
799 // CESMRCalDbMgr::SetCurCalendarByNameL |
800 // ---------------------------------------------------------------------------- |
800 // ---------------------------------------------------------------------------- |
801 // |
801 // |
802 void CESMRCalDbMgr::SetCurCalendarByNameL( TDesC& aCalendarName ) |
802 void CESMRCalDbMgr::SetCurCalendarByNameL( const TDesC& aCalendarName ) |
803 { |
803 { |
804 FUNC_LOG; |
804 FUNC_LOG; |
805 TInt count = iCalendarInfoArray.Count(); |
805 TInt count = iCalendarInfoArray.Count(); |
806 |
806 |
807 for( TInt i(0); i < count; i++ ) |
807 for( TInt i(0); i < count; i++ ) |
849 // |
849 // |
850 void CESMRCalDbMgr::SetCurCalendarByIndex( TInt aIndex ) |
850 void CESMRCalDbMgr::SetCurCalendarByIndex( TInt aIndex ) |
851 { |
851 { |
852 FUNC_LOG; |
852 FUNC_LOG; |
853 iCurCalenIndex = aIndex; |
853 iCurCalenIndex = aIndex; |
|
854 } |
|
855 |
|
856 // ---------------------------------------------------------------------------- |
|
857 // CESMRCalDbMgr::SetCurCalendarByDbIdL |
|
858 // ---------------------------------------------------------------------------- |
|
859 // |
|
860 void CESMRCalDbMgr::SetCurCalendarByDbIdL( TCalFileId aDbId ) |
|
861 { |
|
862 FUNC_LOG; |
|
863 |
|
864 for ( TInt i = 0; i < iCalSessionArray.Count(); ++i ) |
|
865 { |
|
866 TCalFileId fileId( KNullFileId ); |
|
867 iCalSessionArray[ i ]->FileIdL( fileId ); |
|
868 |
|
869 if ( fileId == aDbId ) |
|
870 { |
|
871 iCurCalenIndex = i; |
|
872 break; |
|
873 } |
|
874 } |
854 } |
875 } |
855 |
876 |
856 // ---------------------------------------------------------------------------- |
877 // ---------------------------------------------------------------------------- |
857 // CESMRCalDbMgr::GetCurCalendarColor |
878 // CESMRCalDbMgr::GetCurCalendarColor |
858 // ---------------------------------------------------------------------------- |
879 // ---------------------------------------------------------------------------- |