hwrmtestappcontainer.h

来自「平台symbian。 功能:获取系统信息。」· C头文件 代码 · 共 103 行

H
103
字号
/*
* ==============================================================================
*  Name        : HWRMTestAppContainer.h
*  Part of     : HWRMTestApp
*  Interface   : 
*  Description : Declares container control for application.
*  Version     : 
*
*  Copyright (c) 2002-2006 Nokia Corporation.
*  This material, including documentation and any related 
*  computer programs, is protected by copyright controlled by 
*  Nokia Corporation. 
* ==============================================================================
*/

#ifndef HWRMTESTAPPCONTAINER_H
#define HWRMTESTAPPCONTAINER_H

// INCLUDES
#include <coecntrl.h>
   
// FORWARD DECLARATIONS
class CEikEdwin;

// CLASS DECLARATION

/**
*  CHWRMTestAppContainer  container control class.
*
*  @lib HWRMTestApp.exe
*  @since Series S60 3.0
*/
class CHWRMTestAppContainer : public CCoeControl, public MCoeControlObserver
    {
    public: // Constructors and destructor
        
        /**
        * EPOC default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

        /**
        * Destructor.
        */
        ~CHWRMTestAppContainer();

    public: // New functions
        
        void AddMessageL( const TDesC& aMsg ) const;

    public: // Functions from base classes

        TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType );
        
    private: // Functions from base classes

       /**
        * From CoeControl,SizeChanged.
        */
        void SizeChanged();

       /**
        * From CoeControl,CountComponentControls.
        */
        TInt CountComponentControls() const;

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

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

        /**
        * From CoeControl, HandleResourceChange.
        * Called by framework when the view layout is changed.
        */
        virtual void HandleResourceChange(TInt aType);
        
        /**
        * From MCoeControlObserver, HandleControlEventL.
        * Handles an event from an observed control.
        */
        void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
        
    private: //data

        /**
        * Editor window for displaying messages.
        * Own.
        */
        CEikEdwin* iEdwin;
    };

#endif  // HWRMTESTAPPCONTAINER_H

// End of File

⌨️ 快捷键说明

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