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

📄 powerresmanappui.h

📁 基于Symbian平台下随心所欲控制屏幕的灯亮熄.在观看视频和发短信时这一点非常重要.
💻 H
字号:
/**
*
* CPowerResManAppUi PowerResManAppUi.h
* This is the main application UI class for the PowerResMan example 
*
* Copyright (c) 2004 Nokia Corporation
* version 2.0
*/

#ifndef __POWERRESMANAPPUI_H__
#define __POWERRESMANAPPUI_H__

// INCLUDES

// System includes
#include <aknappui.h> // CAknAppUi
#ifdef __SERIES60_3X__
    #include <etel3rdparty.h>
#endif

// User Includes
#include "SummationObserver.h"
// FORWARD DECLARATIONS
class CPowerResManContainer;
class CStateVarObserver;
class CBackLightSwitch;
class CIntegerSummationIdle;
class CIntegerSummation;
class CIntegerSummationThread;
class CResManagement;
// CLASS DECLARATION




class CPowerResManAppUi : public CAknAppUi, public MSummationObserver
	{
public:	// Constructors and destructor
    /**
     * Function:    ConstructL
     * Description: 2nd Phase Constructor
     */
	void ConstructL();

    /**
     * Function:    ~CPowerResManAppUi
     * Description: Destroy the object
     */
	~CPowerResManAppUi();

public:   // from MSummationObserver

    /**
     * Function:    SummationComplete
     * Description: Called when the summation is complete
	 * Params:      aFinalValue - the summation value
     */	
	void SummationComplete(TInt aFinalValue);

private:	// from CAknAppUi
    /**
     * Function:    HandleCommandL
     * Description: Handle user menu selections
     * Param:       aCommand the enumerated code for the menu option selected
     */
	void HandleCommandL(TInt aCommand);
	
	void HandleResourceChangeL(TInt aType);
private:
    /**
     * Function:    SummationCompleteL
     * Description: Display the result of the summation in a note
	 * Params:      aFinalValue - the summation value
     */	
	void SummationCompleteL(TInt aFinalValue) const;

private:	// Data
	// Listbox with labels used to display changes to state variables
	CPowerResManContainer*	   iAppContainer;

	CStateVarObserver*			iBatteryStrengthVarObserver;
	CStateVarObserver*			iChargerVarObserver;
	CStateVarObserver*			iNetworkStrengthVarObserver;
	CBackLightSwitch*			iBackLightSwitch;
	CIntegerSummation*			iSum;
	CIntegerSummationIdle*		iSumIdle;
	CIntegerSummationThread*	iSumThread;
	CResManagement*				iResMan;
	
	#ifdef __SERIES60_3X__
	CTelephony* iTelephony;
	#endif

	};

#endif	// __POWERRESMANAPPUI_H__

// End of File

⌨️ 快捷键说明

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