emailuis/emailui/src/FreestyleEmailUiFolderListVisualiser.cpp
branchRCL_3
changeset 73 c8382f7b54ef
parent 64 3533d4323edc
child 80 726fba06891a
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
  1792 			{
  1792 			{
  1793 		    icon = iCurrentSortCriteria.iField == EFSMailSortByRecipient ? 
  1793 		    icon = iCurrentSortCriteria.iField == EFSMailSortByRecipient ? 
  1794 		    	   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1794 		    	   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1795 				   iSortIconArray[ ESortListSenderDescIcon ] : 
  1795 				   iSortIconArray[ ESortListSenderDescIcon ] : 
  1796 				   iSortIconArray[ ESortListSenderAscIcon ] : 
  1796 				   iSortIconArray[ ESortListSenderAscIcon ] : 
  1797 				   iSortIconArray[ ESortListSenderDescIcon ];
  1797 				   iSortIconArray[ ESortListSenderAscIcon ];
  1798 			itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_RECIPIENT, KFsTreeRootID, icon, EFalse );
  1798 			itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_RECIPIENT, KFsTreeRootID, icon, EFalse );
  1799 			iModel->AppendL( itemId, EFSMailSortByRecipient );
  1799 			iModel->AppendL( itemId, EFSMailSortByRecipient );
  1800 			}
  1800 			}
  1801 			break;
  1801 			break;
  1802 
  1802 
  1804 			{
  1804 			{
  1805 		    icon = iCurrentSortCriteria.iField == EFSMailSortBySender ? 
  1805 		    icon = iCurrentSortCriteria.iField == EFSMailSortBySender ? 
  1806 		    	   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1806 		    	   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1807 				   iSortIconArray[ ESortListSenderDescIcon ] : 
  1807 				   iSortIconArray[ ESortListSenderDescIcon ] : 
  1808 				   iSortIconArray[ ESortListSenderAscIcon ] : 
  1808 				   iSortIconArray[ ESortListSenderAscIcon ] : 
  1809 				   iSortIconArray[ ESortListSenderDescIcon ];
  1809 				   iSortIconArray[ ESortListSenderAscIcon ];
  1810 			itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_SENDER, KFsTreeRootID, icon, EFalse );
  1810 			itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_SENDER, KFsTreeRootID, icon, EFalse );
  1811 			iModel->AppendL( itemId, EFSMailSortBySender );
  1811 			iModel->AppendL( itemId, EFSMailSortBySender );
  1812 			}
  1812 			}
  1813 			break;
  1813 			break;
  1814 		}
  1814 		}
  1815 
  1815 
  1816 	icon = iCurrentSortCriteria.iField == EFSMailSortBySubject ? 
  1816 	icon = iCurrentSortCriteria.iField == EFSMailSortBySubject ? 
  1817 		   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1817 		   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1818 		   iSortIconArray[ ESortListSubjectDescIcon ] : 
  1818 		   iSortIconArray[ ESortListSubjectDescIcon ] : 
  1819 		   iSortIconArray[ ESortListSubjectAscIcon ] : 
  1819 		   iSortIconArray[ ESortListSubjectAscIcon ] : 
  1820 		   iSortIconArray[ ESortListSubjectDescIcon ];
  1820 		   iSortIconArray[ ESortListSubjectAscIcon ];
  1821 	
  1821 	
  1822 	itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_SUBJECT, KFsTreeRootID, icon, EFalse );
  1822 	itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_SUBJECT, KFsTreeRootID, icon, EFalse );
  1823 	iModel->AppendL( itemId, EFSMailSortBySubject );
  1823 	iModel->AppendL( itemId, EFSMailSortBySubject );
  1824 
  1824 
  1825 	if ( TFsEmailUiUtility::IsFollowUpSupported( *iAppUi.GetActiveMailbox() ) )
  1825 	if ( TFsEmailUiUtility::IsFollowUpSupported( *iAppUi.GetActiveMailbox() ) )
  1849 		{
  1849 		{
  1850 		icon = iCurrentSortCriteria.iField == EFSMailSortByUnread ? 
  1850 		icon = iCurrentSortCriteria.iField == EFSMailSortByUnread ? 
  1851 			   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1851 			   iCurrentSortCriteria.iOrder == EFSMailAscending ? 
  1852 			   iSortIconArray[ ESortListUnreadDescIcon ] : 
  1852 			   iSortIconArray[ ESortListUnreadDescIcon ] : 
  1853 			   iSortIconArray[ ESortListUnreadAscIcon ] : 
  1853 			   iSortIconArray[ ESortListUnreadAscIcon ] : 
  1854 			   iSortIconArray[ ESortListUnreadDescIcon ];
  1854 			   iSortIconArray[ ESortListUnreadAscIcon ];
  1855 		
  1855 		
  1856 		itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_UNREAD, KFsTreeRootID, icon, EFalse );
  1856 		itemId = AppendItemToListFromResourceL( R_FREESTYLE_EMAIL_UI_SORT_BY_UNREAD, KFsTreeRootID, icon, EFalse );
  1857 		iModel->AppendL( itemId, EFSMailSortByUnread );
  1857 		iModel->AppendL( itemId, EFSMailSortByUnread );
  1858 		}
  1858 		}
  1859 
  1859