emailuis/uicomponents/inc/fstreeitemvisualizerbase.h
branchRCL_3
changeset 80 726fba06891a
parent 73 c8382f7b54ef
equal deleted inserted replaced
73:c8382f7b54ef 80:726fba06891a
    18 
    18 
    19 #ifndef FSTREEITEMVISUALIZERBASE_H_
    19 #ifndef FSTREEITEMVISUALIZERBASE_H_
    20 #define FSTREEITEMVISUALIZERBASE_H_
    20 #define FSTREEITEMVISUALIZERBASE_H_
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
       
    23 //<cmail> removed __FS_ALFRED_SUPPORT flag
       
    24 //#include <fsconfig.h>
       
    25 //</cmail> removed __FS_ALFRED_SUPPORT flag
       
    26 // <cmail> SF
    23 #include <alf/alfeventhandler.h>
    27 #include <alf/alfeventhandler.h>
       
    28 // </cmail>
    24 #include "fstreeitemvisualizer.h"
    29 #include "fstreeitemvisualizer.h"
    25 #include "fslayoutmanager.h"
    30 #include "fslayoutmanager.h"
    26 
    31 
    27 class TRgb;
    32 class TRgb;
    28 
    33 
   306      * 
   311      * 
   307      * @param aTexture New background texture.
   312      * @param aTexture New background texture.
   308      */
   313      */
   309     virtual void SetBackgroundTexture( const CAlfTexture& aTexture );
   314     virtual void SetBackgroundTexture( const CAlfTexture& aTexture );
   310 
   315 
       
   316     // <cmail>
   311     /**
   317     /**
   312      * From MFsTreeItemVisualizer.
   318      * From MFsTreeItemVisualizer.
   313      * Sets item background brush. Ownership not transfered.
   319      * Sets item background brush. Ownership not transfered.
   314      * 
   320      * 
   315      * @param aBrush New background brush.
   321      * @param aBrush New background brush.
   323      * @param aBrush Out parameter. Contains pointer to a background brush.
   329      * @param aBrush Out parameter. Contains pointer to a background brush.
   324      *
   330      *
   325      * @return ETrue if background brush is set, EFalse otherwise.
   331      * @return ETrue if background brush is set, EFalse otherwise.
   326      */
   332      */
   327     virtual TBool GetBackgroundBrush( CAlfBrush*& aBrush );
   333     virtual TBool GetBackgroundBrush( CAlfBrush*& aBrush );
       
   334     // </cmail>
   328 
   335 
   329     /**
   336     /**
   330      * From MFsTreeItemVisualizer.
   337      * From MFsTreeItemVisualizer.
   331      * Returns background texture if it's set.
   338      * Returns background texture if it's set.
   332      * 
   339      * 
   358      * This functions sets wether an item should always be in extended state.
   365      * This functions sets wether an item should always be in extended state.
   359      * 
   366      * 
   360      * @param ETrue if item should always be in extended state.
   367      * @param ETrue if item should always be in extended state.
   361      */
   368      */
   362     virtual void SetAlwaysExtended( TBool aAlwaysExtended );
   369     virtual void SetAlwaysExtended( TBool aAlwaysExtended );
   363 
       
   364     virtual void SetMarkingMode( TBool aMarkingMode );
       
   365     
   370     
   366     /**
   371     /**
   367      * This function returns wether an item is always in extended state.
   372      * This function returns wether an item is always in extended state.
   368      * 
   373      * 
   369      * @return ETrue if item is always in extended state.
   374      * @return ETrue if item is always in extended state.
   434      * 
   439      * 
   435      */
   440      */
   436     virtual void UpdateL( const MFsTreeItemData& aData,
   441     virtual void UpdateL( const MFsTreeItemData& aData,
   437             TBool aFocused,
   442             TBool aFocused,
   438             const TUint aLevel,
   443             const TUint aLevel,
   439             CAlfTexture*& aMarkOnIcon,
   444             CAlfTexture*& aMarkIcon,
   440             CAlfTexture*& aMarkOffIcon,
       
   441             CAlfTexture*& aMenuIcon,
   445             CAlfTexture*& aMenuIcon,
   442             const TUint aTimeout = 0,
   446             const TUint aTimeout = 0,
   443             TBool aUpdateData = ETrue);
   447             TBool aUpdateData = ETrue);
   444 
   448 
   445     /**
   449     /**
   554     enum TFsItemBackgroundState
   558     enum TFsItemBackgroundState
   555         {
   559         {
   556         EFsItemBackgroundNone,
   560         EFsItemBackgroundNone,
   557         EFsItemBackgroundColor,
   561         EFsItemBackgroundColor,
   558         EFsItemBackgroundTexture,
   562         EFsItemBackgroundTexture,
       
   563     // <cmail> this feature is waiting for title divider bg graphics
   559         EFsItemBackgroundBrush
   564         EFsItemBackgroundBrush
       
   565     // </cmail>
   560         };
   566         };
   561     
   567     
   562 protected:
   568 protected:
   563 
   569 
   564     /*
   570     /*