📄 systemagentdocument.h
字号:
#ifndef __SYSTEMAGENTDOCUMENT_H__
#define __SYSTEMAGENTDOCUMENT_H__
// INCLUDES
// System includes
#include <akndoc.h> // CAknDocument
#include <savarset.h>
// CONSTANTS
// FORWARD DECLARATIONS
class CEikAppUi;
// OWN STATE VARIABLE
const TUid KUidSystemAgentStateVariable = { 0x101F6119 };
// CLASS DECLARATION
/**
*
* @class CSystemAgentDocument SystemAgentDocument.h
* @brief This is the document class for the System Agent example.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
class CSystemAgentDocument : public CAknDocument
{
public:
// Definition of the valid states of the SystemAgent state variable: can be one of three colors
enum TSystemAgentStatus
{
ESystemAgentRed,
ESystemAgentGreen,
ESystemAgentBlue
};
public: // Construction and destruction.
static CSystemAgentDocument* NewL(CEikApplication& aApp);
~CSystemAgentDocument();
public: // Methods.
void SetSystemAgentStateVarL(TSystemAgentStatus aState);
void ChangeSystemAgentStateVarL();
private: // Construction
CSystemAgentDocument(CEikApplication& aApp);
void ConstructL();
private: // From CEikDocument
CEikAppUi* CreateAppUiL();
private: // Data
// Connection to System Agent to notify it of changes to our state variable
RSAVarChangeNotify iSAVarChangeNotify;
// The current value of SystemAgent state variable
TSystemAgentStatus iSystemAgentState;
};
#endif // #ifndef __SYSTEMAGENTDOCUMENT_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -