emailuis/uicomponents/inc/fstreenodevisualizerbase.h
branchRCL_3
changeset 80 726fba06891a
parent 73 c8382f7b54ef
equal deleted inserted replaced
73:c8382f7b54ef 80:726fba06891a
    20 #ifndef FSTREENODEVISUALIZERBASE_H_
    20 #ifndef FSTREENODEVISUALIZERBASE_H_
    21 #define FSTREENODEVISUALIZERBASE_H_
    21 #define FSTREENODEVISUALIZERBASE_H_
    22 
    22 
    23 
    23 
    24 #include <e32base.h>
    24 #include <e32base.h>
       
    25 //<cmail> removed __FS_ALFRED_SUPPORT flag
       
    26 //#include <fsconfig.h>
       
    27 //</cmail> removed __FS_ALFRED_SUPPORT flag
    25 #include <gdi.h>
    28 #include <gdi.h>
       
    29 // <cmail> SF
    26 #include <alf/alfeventhandler.h>
    30 #include <alf/alfeventhandler.h>
       
    31 // </cmail>
    27 #include "fstreenodevisualizer.h"
    32 #include "fstreenodevisualizer.h"
    28 
    33 
    29 class CAlfLayout;
    34 class CAlfLayout;
    30 class CAlfTexture;
    35 class CAlfTexture;
    31 class CAlfBrush;
    36 class CAlfBrush;
   303      * 
   308      * 
   304      * @param aTexture New background texture.
   309      * @param aTexture New background texture.
   305      */
   310      */
   306     virtual void SetBackgroundTexture( const CAlfTexture& aTexture );
   311     virtual void SetBackgroundTexture( const CAlfTexture& aTexture );
   307 
   312 
       
   313     // <cmail>
   308     /**
   314     /**
   309      * From MFsTreeItemVisualizer.
   315      * From MFsTreeItemVisualizer.
   310      * Sets item background brush. Ownership not transfered.
   316      * Sets item background brush. Ownership not transfered.
   311      * 
   317      * 
   312      * @param aBrush New background brush.
   318      * @param aBrush New background brush.
   320      * @param aBrush Out parameter. Contains pointer to a background brush.
   326      * @param aBrush Out parameter. Contains pointer to a background brush.
   321      *
   327      *
   322      * @return ETrue if background brush is set, EFalse otherwise.
   328      * @return ETrue if background brush is set, EFalse otherwise.
   323      */
   329      */
   324     virtual TBool GetBackgroundBrush( CAlfBrush*& aBrush );
   330     virtual TBool GetBackgroundBrush( CAlfBrush*& aBrush );
       
   331     // </cmail>
   325 
   332 
   326     /**
   333     /**
   327      * From MFsTreeItemVisualizer.
   334      * From MFsTreeItemVisualizer.
   328      * Returns background texture if it's set.
   335      * Returns background texture if it's set.
   329      * 
   336      * 
   355      * This functions sets wether an item should always be in extended state.
   362      * This functions sets wether an item should always be in extended state.
   356      * 
   363      * 
   357      * @param ETrue if item should always be in extended state.
   364      * @param ETrue if item should always be in extended state.
   358      */
   365      */
   359     virtual void SetAlwaysExtended( TBool aAlwaysExtended );
   366     virtual void SetAlwaysExtended( TBool aAlwaysExtended );
   360 
       
   361     virtual void SetMarkingMode( TBool aMarkingMode );
       
   362     
   367     
   363     /**
   368     /**
   364      * This function returns wether an item is always in extended state.
   369      * This function returns wether an item is always in extended state.
   365      * 
   370      * 
   366      * @return ETrue if item is always in extended state.
   371      * @return ETrue if item is always in extended state.
   432      * 
   437      * 
   433      */
   438      */
   434     virtual void UpdateL( const MFsTreeItemData& aData,
   439     virtual void UpdateL( const MFsTreeItemData& aData,
   435             TBool aFocused,
   440             TBool aFocused,
   436             const TUint aLevel,
   441             const TUint aLevel,
   437             CAlfTexture*& aMarkOnIcon,
   442             CAlfTexture*& aMarkIcon,
   438             CAlfTexture*& aMarkOffIcon,
       
   439             CAlfTexture*& aMenuIcon,
   443             CAlfTexture*& aMenuIcon,
   440             const TUint aTimeout = 0,
   444             const TUint aTimeout = 0,
   441             TBool aUpdateData = ETrue);
   445             TBool aUpdateData = ETrue);
   442 
   446 
   443     /**
   447     /**
   563     enum TFsNodeBackgroundState
   567     enum TFsNodeBackgroundState
   564         {
   568         {
   565         EFsNodeBackgroundNone,
   569         EFsNodeBackgroundNone,
   566         EFsNodeBackgroundColor,
   570         EFsNodeBackgroundColor,
   567         EFsNodeBackgroundTexture,
   571         EFsNodeBackgroundTexture,
       
   572     // <cmail> this feature is waiting for title divider bg graphics
   568         EFsNodeBackgroundBrush       
   573         EFsNodeBackgroundBrush       
       
   574     // </cmail>
   569         };
   575         };
   570     
   576     
   571 protected:
   577 protected:
   572 
   578 
   573     /*
   579     /*