powerresmanappui.h
来自「基于Symbian平台下随心所欲控制屏幕的灯亮熄.在观看视频和发短信时这一点非常」· C头文件 代码 · 共 99 行
H
99 行
/**
*
* 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 + =
减小字号Ctrl + -
显示快捷键?