messagingappbase/mce/src/MceMessageListboxItemDrawer.cpp
branchRCL_3
changeset 77 da6ac9d688df
parent 71 17302fa075e1
equal deleted inserted replaced
71:17302fa075e1 77:da6ac9d688df
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 #include "MceMessageListContainer.h"
    23 #include "MceMessageListContainer.h"
    24 #include "MceMessageListboxItemDrawer.h"
    24 #include "MceMessageListboxItemDrawer.h"
    25 #include "MceIds.h"
       
    26 
    25 
    27 
    26 
    28 // ================= MEMBER FUNCTIONS =======================
    27 // ================= MEMBER FUNCTIONS =======================
    29 
    28 
    30 // C++ constructor can NOT contain any code that
    29 // C++ constructor can NOT contain any code that
    56 //
    55 //
    57 TListItemProperties CMceMessageListBoxItemDrawer::Properties(TInt aItemIndex) const
    56 TListItemProperties CMceMessageListBoxItemDrawer::Properties(TInt aItemIndex) const
    58     {
    57     {
    59     TListItemProperties properties;
    58     TListItemProperties properties;
    60     properties.SetColor( iTextColor );
    59     properties.SetColor( iTextColor );
    61 	//only for MyFolders set the Hidden Selection, no folder should be able to be selected
    60 
    62     if ( iMessageListContainer.CurrentFolderId() == KMceDocumentsEntryId )
       
    63         {
       
    64     	properties.SetHiddenSelection( iMessageListContainer.IsItemFolder( aItemIndex )  ||
       
    65             iMessageListContainer.SyncMlOutboxOpened() );
       
    66 	}
       
    67     return properties;
    61     return properties;
    68     }
    62     }
    69 
    63 
    70 //  End of File
    64 //  End of File