⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 videonavidecoratortime.h

📁 nokia S60_video_operation
💻 H
字号:
/*
* ============================================================================
*  Name     : CVideoNaviDecoratorTime from VideoNaviDecoratorTime.h
*  Part of  : Video Recording Example (VRex)
*  Created  : 16.03.2004 by Nokia Forum
*  Description: Declares Navi decorator for time
*
*  Version  :
*  Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef __VIDEONAVIDECORATORTIMER_H__
#define __VIDEONAVIDECORATORTIMER_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
        /**
         * This method updates label (time string) in navi pane.
         * @param aLabel, new label (time string)
         * @return void
         */
        void SetLabelL(const TDesC& aLabel);

    protected: // Functions from CCoeControl
        /**
         * See CCoeControl::SizeChanged().
         */
        void SizeChanged();

        /**
         * See CCoeControl::Draw(const TRect& aRect) const.
         */
        void Draw(const TRect& aRect) const;

    private:
        /**
         * C++ default constructor.
         */
        CVideoNaviDecoratorTime();

        /**
         * By default Symbian 2nd phase constructor is private.
         */
        void ConstructL();

    private: // Data
        // Label
        HBufC* iLabel;
        // Rectangle where label is drawn
        TAknLayoutText iTextLayout;
    };

#endif // __VIDEONAVIDECORATORTIMER_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -