messagingappbase/mce/inc/MceMessageListboxItemDrawer.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *     Needed because we have to override function Properties so that
       
    16 *     folders cannot be selected.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MCEMESSAGELISTBOXITEMDRAWER_H
       
    23 #define MCEMESSAGELISTBOXITEMDRAWER_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <eikfrlb.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * Needed because have to override function Properties so that
       
    35 * folders cannot be selected.
       
    36 */
       
    37 class CMceMessageListBoxItemDrawer : public CFormattedCellListBoxItemDrawer
       
    38     {
       
    39     public:
       
    40         /**
       
    41         * C++ default constructor.
       
    42         */
       
    43         CMceMessageListBoxItemDrawer(
       
    44             MTextListBoxModel* aTextListBoxModel,
       
    45             const CFont* aFont,
       
    46             CFormattedCellListBoxData* aFormattedCellData,
       
    47             CMceMessageListContainer& aMessageListContainer );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CMceMessageListBoxItemDrawer();
       
    53 
       
    54     public: // Functions from base classes
       
    55 
       
    56         /**
       
    57         * From CFormattedCellListBoxItemDrawer
       
    58         * Needs to be overriden to disable folder selection
       
    59         */
       
    60         virtual TListItemProperties Properties(TInt aItemIndex) const;
       
    61 
       
    62     private: // Data
       
    63         CMceMessageListContainer& iMessageListContainer;
       
    64 
       
    65     };
       
    66 
       
    67 
       
    68 #endif      // MCEMESSAGELISTBOXITEMDRAWER_H
       
    69 
       
    70 // End of File