equal
deleted
inserted
replaced
657 CleanupStack::PushL( settingItem ); |
657 CleanupStack::PushL( settingItem ); |
658 |
658 |
659 // Construct setting item with parametrized values |
659 // Construct setting item with parametrized values |
660 HBufC* itemTitle = StringLoader::LoadLC( R_CALEN_SETTING_DEFAULTMAILBOX_TITLE ); |
660 HBufC* itemTitle = StringLoader::LoadLC( R_CALEN_SETTING_DEFAULTMAILBOX_TITLE ); |
661 // The resources loaded up here are empty as the items need to be dynamically updated. |
661 // The resources loaded up here are empty as the items need to be dynamically updated. |
662 |
|
663 settingItem->SetEmptyItemTextL( KNullDesC ); |
|
664 |
|
665 settingItem->ConstructL( EFalse, aOrdinal, *itemTitle, NULL, |
662 settingItem->ConstructL( EFalse, aOrdinal, *itemTitle, NULL, |
666 R_CALEN_SETTING_DEFAULTMAILBOX, EAknCtPopupSettingList, |
663 R_CALEN_SETTING_DEFAULTMAILBOX, EAknCtPopupSettingList, |
667 NULL, R_CALEN_EMPTY_POPUP_SETTING_TEXTS ); |
664 NULL, R_CALEN_EMPTY_POPUP_SETTING_TEXTS ); |
668 |
665 |
669 CArrayPtr<CAknEnumeratedText>* items = settingItem->EnumeratedTextArray(); |
666 CArrayPtr<CAknEnumeratedText>* items = settingItem->EnumeratedTextArray(); |
789 ordinal++ ); |
786 ordinal++ ); |
790 |
787 |
791 |
788 |
792 // Always add this in. We will set it hidden when it's not needed (i.e. when the |
789 // Always add this in. We will set it hidden when it's not needed (i.e. when the |
793 // week start is set to anything other than "Monday") at the bottom of this function. |
790 // week start is set to anything other than "Monday") at the bottom of this function. |
794 AddEnumerationItemL( iWeekTitle, |
791 AddBinaryItemL( iWeekTitle, |
795 ECalenWeekTitleItemId, |
792 ECalenWeekTitleItemId, |
796 R_CALEN_SETTING_WEEKTITLE_TITLE, |
793 R_CALEN_SETTING_WEEKTITLE_TITLE, |
797 R_CALEN_SETTING_WEEKTITLE, |
794 R_CALEN_SETTING_WEEKTITLE, |
798 R_CALEN_WEEKTITLE_TEXTS, |
795 R_CALEN_WEEKTITLE_TEXTS, |
799 ordinal++ ); |
796 ordinal++ ); |