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

📄 stopwatchcontainer.h

📁 symbian s60 源代码学习 关于时间和闹钟方面的例子
💻 H
字号:
/*
* ============================================================================
*  Name     : CStopwatchContainer from StopwatchContainer.h
*  Part of  : Stopwatch
*  Created  : 05.02.2006 by ToBeReplacedByAuthor
*  Description:
*     Declares container control for application.
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

#ifndef STOPWATCHCONTAINER_H
#define STOPWATCHCONTAINER_H

// INCLUDES
#include <coecntrl.h>

// CONSTANTS
_LIT(KTimeFormat,"%T:%S.%*C1");

// FORWARD DECLARATIONS
class CEikLabel;        // for example labels
class CStopwatchModel;

// CLASS DECLARATION

/**
*  CStopwatchContainer  container control class.
*  
*/
class CStopwatchContainer : public CCoeControl
    {
    public: // Constructors and destructor
        /**
         *  Create a CStopwatchTimer object
         *  @param aObserver The timer event observer
         *  @result a pointer to the created instance of CStopwatchTimer
         */
        static CStopwatchContainer* NewL(const TRect& aRect, const CStopwatchModel& aModel);
        
        /**
        * Destructor.
        */
        ~CStopwatchContainer();

    public: // New functions
        void RefreshL();

    public: // Functions from base classes

    private: // Functions from base classes
       /**
        * From CoeControl,CountComponentControls.
        */
        TInt CountComponentControls() const;

       /**
        * From CCoeControl,ComponentControl.
        */
        CCoeControl* ComponentControl(TInt aIndex) const;

       /**
        * From CCoeControl,Draw.
        */
        void Draw(const TRect& aRect) const;

    private: //
        /**
        * The constructor
        */
        CStopwatchContainer(const CStopwatchModel& aModel);

        /**
        * EPOC default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

    private: // constants
        static const TInt KTimeStringLength;

    private: //data
        /// The model of the Stopwatch application
        const CStopwatchModel& iModel;

        CEikLabel* iLabel;          // example label



    };

#endif

// End of File

⌨️ 快捷键说明

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