videonavidecoratortime.h

来自「S60官方视屏播放器程序」· C头文件 代码 · 共 74 行

H
74
字号
/*
* ============================================================================
*  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 + =
减小字号Ctrl + -
显示快捷键?