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