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

📄 hwrmtestappappui.h

📁 平台symbian。 功能:获取系统信息。
💻 H
字号:
/*
* ==============================================================================
*  Name        : HWRMTestAppAppUi.h
*  Part of     : HWRMTestApp
*  Interface   : 
*  Description : Declares UI class 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 HWRMTESTAPPAPPUI_H
#define HWRMTESTAPPAPPUI_H

// INCLUDES
#include <aknappui.h>
#include <HWRMLight.h>
#include <HWRMVibra.h>

// FORWARD DECLARATIONS
class CHWRMTestAppContainer;
class CHWRMTestAppPropertyObserver;

// CONSTANTS
// None

// CLASS DECLARATION

/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
*
*  @lib HWRMTestApp.exe
*  @since Series S60 3.0
*/
class CHWRMTestAppAppUi : public CAknAppUi,
                          public MHWRMVibraObserver,
                          public MHWRMLightObserver
    {
    public: // // Constructors and destructor

        /**
        * EPOC default constructor.
        */      
        void ConstructL();

        /**
        * Destructor.
        */      
        ~CHWRMTestAppAppUi();
        
    public: // New functions

    public: // Functions from base classes

    private:
        // From MEikMenuObserver
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

    private:
        /**
        * From CEikAppUi, takes care of command handling.
        * @param aCommand command to be handled
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CEikAppUi, handles key events.
        * @param aKeyEvent Event to handled.
        * @param aType Type of the key event. 
        * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
        */
        virtual TKeyResponse HandleKeyEventL(
            const TKeyEvent& aKeyEvent,TEventCode aType);

        void VibraReserveL();
        void VibraReleaseL();
        void VibraStartL();
        void VibraStopL();
        void VibraStatus();
        void VibraSettings();

        void LightsReserveL();
        void LightsReleaseL();
        void LightsOnL();
        void LightsBlinkL();
        void LightsOffL();
        void LightsStatusL();
        void PrintLightTargetsL();
        
        // from MHWRMVibraObserver
        virtual void VibraModeChanged(CHWRMVibra::TVibraModeState aStatus);
        virtual void VibraStatusChanged(CHWRMVibra::TVibraStatus aStatus);

        // from MHWRMLightObserver
        virtual void LightStatusChanged(TInt aTarget, 
                                        CHWRMLight::TLightStatus aStatus);

		// Helper methods
		// returns the target or KErrCancel if user pressed cancel
		TInt GetLightsTargetL();
		
		// overridden from CCoeAppUi
		virtual void HandleForegroundEventL(TBool aForeground);
		
		
    private: //Data
        CHWRMTestAppContainer*        iAppContainer; 
        CHWRMLight*                   iLight;
        CHWRMVibra*                   iVibra;
        
        CHWRMTestAppPropertyObserver* iBatteryStatusObserver;
        CHWRMTestAppPropertyObserver* iBatteryLevelObserver;
        CHWRMTestAppPropertyObserver* iChargingStatusObserver;
    };

#endif  // HWRMTESTAPPAPPUI_H

// End of File

⌨️ 快捷键说明

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