VideoNaviDecoratorTime.h
上传用户:xinrui0099
上传日期:2010-03-05
资源大小:48k
文件大小:2k
- /*
- * ==============================================================================
- * Name : VideoNaviDecoratorTime.h
- * Part of : Video
- * Created : 10/14/2003 by Forum Nokia
- * Interface :
- * Description : Declares Navi decorator for time
- * Version :
- * Copyright : Nokia Corporation, 2003
- * ==============================================================================
- */
- #ifndef VIDEO_NAVIDECORATORTIMER_H
- #define VIDEO_NAVIDECORATORTIMER_H
- #include <coecntrl.h>
- #include <aknutils.h>
- /**
- * CVideoNaviDecoratorTime
- * A specific control to display time progress when playing a video clip. It can
- * also be used to display some status information.
- */
- class CVideoNaviDecoratorTime : public CCoeControl
- {
- public: // Constructors and destructor
-
- /**
- * Two-phased constructor.
- */
- static CVideoNaviDecoratorTime* NewL();
-
- /**
- * Destructor.
- */
- virtual ~CVideoNaviDecoratorTime();
- public: // New functions
-
- /**
- * Updates label (time string) in navi pane.
- * @param aLabel New label (time string)
- * @return void
- */
- void SetLabelL(const TDesC& aLabel);
- protected: // Functions from base classes
-
- /**
- * From CCoeControl. Handles the size change events.
- */
- void SizeChanged();
- /**
- * From CCoeControl. Draws control.
- * @param aRect The region of the control to be redrawn.
- */
- void Draw(const TRect& aRect) const;
- private:
- /**
- * C++ default constructor.
- */
- CVideoNaviDecoratorTime();
- /**
- * By default Symbian 2nd phase constructor is private.
- */
- void ConstructL();
- private: // New functions
-
- private: // Data
- //Label
- HBufC* iLabel;
- // Rectangle where label is drawn
- TAknLayoutText iTextLayout;
- };
- #endif // VIDEO_NAVIDECORATORTIMER_H