uiacceltk/hitchcock/coretoolkit/inc/HuiRosterImpl.h
branchRCL_3
changeset 7 88b23e2e82e1
parent 0 15bf7259bb7c
child 12 f93c875b566e
equal deleted inserted replaced
6:10534483575f 7:88b23e2e82e1
    26 #include "uiacceltk/huieventhandler.h"
    26 #include "uiacceltk/huieventhandler.h"
    27 #include "uiacceltk/HuiEvent.h"
    27 #include "uiacceltk/HuiEvent.h"
    28 #include "uiacceltk/HuiRealPoint.h"
    28 #include "uiacceltk/HuiRealPoint.h"
    29 #include "uiacceltk/HuiRealPoint.h"
    29 #include "uiacceltk/HuiRealPoint.h"
    30 #include "uiacceltk/HuiGc.h"
    30 #include "uiacceltk/HuiGc.h"
       
    31 #include "uiacceltk/huilowmemoryobserver.h"
    31 #include "huieffectable.h"
    32 #include "huieffectable.h"
    32 
    33 
    33 /* Forward declarations. */
    34 /* Forward declarations. */
    34 class CHuiDisplay;
    35 class CHuiDisplay;
    35 class CHuiLongTapDetector;
    36 class CHuiLongTapDetector;
    51  * drawing of the groups' root visuals.
    52  * drawing of the groups' root visuals.
    52  * Implements the CHuiRoster abstract base class.
    53  * Implements the CHuiRoster abstract base class.
    53  *
    54  *
    54  * @see CHuiRoster
    55  * @see CHuiRoster
    55  */
    56  */
    56 NONSHARABLE_CLASS(CHuiRosterImpl) : public CHuiRoster, MHuiEffectable
    57 NONSHARABLE_CLASS(CHuiRosterImpl) : public CHuiRoster, private MHuiEffectable, 
       
    58         private MHuiMemoryLevelObserver
    57 	{
    59 	{
    58 public:
    60 public:
    59 
    61 
    60 	/* Constructors and destructor. */
    62 	/* Constructors and destructor. */
    61 
    63 
   328     void EffectDrawSelf( CHuiGc &aGc, const TRect & aDisplayRect) const;
   330     void EffectDrawSelf( CHuiGc &aGc, const TRect & aDisplayRect) const;
   329     THuiRealRect EffectDisplayRect() const __SOFTFP;
   331     THuiRealRect EffectDisplayRect() const __SOFTFP;
   330     void SetLoadingEffect(TBool aLoading);
   332     void SetLoadingEffect(TBool aLoading);
   331     void EffectSetSource( TBool aIsInput1 );
   333     void EffectSetSource( TBool aIsInput1 );
   332     TBool EffectGetSource() const;	
   334     TBool EffectGetSource() const;	
       
   335     
       
   336     // From MHuiMemoryLevelObserver
       
   337     void SetMemoryLevel(THuiMemoryLevel aLevel);
       
   338     
   333 protected:
   339 protected:
   334 
   340 
   335     /* Methods. */
   341     /* Methods. */
   336 
   342 
   337 	/**
   343 	/**
   449     /**
   455     /**
   450      * Traverses through visual tree and draws outline for visual
   456      * Traverses through visual tree and draws outline for visual
   451      */
   457      */
   452 	void DrawBoundaries( CHuiGc& aGc, CHuiVisual* aVisual, TBool aDrawOutline ) const;
   458 	void DrawBoundaries( CHuiGc& aGc, CHuiVisual* aVisual, TBool aDrawOutline ) const;
   453 
   459 
       
   460     /**
       
   461      * Returns true if render buffer can be used for freeze.
       
   462      */
       
   463     TBool UseRenderBufferForFreeze() const;
       
   464     
   454 private:
   465 private:
   455 
   466 
   456     /** Area occupied by the roster. */
   467     /** Area occupied by the roster. */
   457     TRect iRect;
   468     TRect iRect;
   458 
   469 
   496 
   507 
   497 	/** Render buffer */
   508 	/** Render buffer */
   498     CHuiCanvasGc* iCanvasGc;
   509     CHuiCanvasGc* iCanvasGc;
   499     CHuiCanvasRenderBuffer* iCanvasRenderBuffer;
   510     CHuiCanvasRenderBuffer* iCanvasRenderBuffer;
   500     CHuiGc::TOrientation iCanvasRenderBufferOrientation;
   511     CHuiGc::TOrientation iCanvasRenderBufferOrientation;
       
   512 	
       
   513 	TBool iRosterIsFrozen;
       
   514 	TBool iMonitorMemoryLevel;
   501 	};
   515 	};
   502 
   516 
   503 #endif  // __HUIROSTERIMPL_H__
   517 #endif  // __HUIROSTERIMPL_H__