statevarobserver.h

来自「最新官方例子,图形,描述副,基本控件,通讯协议,等等,」· C头文件 代码 · 共 54 行

H
54
字号
#ifndef __STATEVAROBSERVER_H__
#define __STATEVAROBSERVER_H__

// INCLUDES

// System includes
#include <akndialog.h>	// CAknDialog
#include <saclient.h>

// FORWARD DECLARATIONS
class CSystemAgentDialog;

// CLASS DECLARATION

/**
*
* @class	CStateVarObserver StateVarObserver.h
* @brief	This is the CActive derived class which enables the notification
*			of a change in a State Variable.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

class CStateVarObserver : public CActive
	{
public:	// Construction and destruction.
	static CStateVarObserver* NewL(TUid aUid, CSystemAgentDialog& aDialog);
	static CStateVarObserver* NewLC(TUid aUid, CSystemAgentDialog& aDialog);
	~CStateVarObserver();

public:	// Methods.
	void StartL();
	void ProcessCurrentStateL();

private:	// Construction.
	CStateVarObserver(TUid aUid, CSystemAgentDialog& aDialog);
	void ConstructL();

private:	// From CActive.
	void RunL();
	void DoCancel();

private:	// Data.
	RSystemAgent	iSysAgent;
	TSysAgentEvent	iSysAgentEvent;
	CSystemAgentDialog&	iAppDialog;
	};


#endif	// __STATEVAROBSERVER_H__

// End of File

⌨️ 快捷键说明

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