systemagentdocument.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 66 行

H
66
字号
#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 + =
减小字号Ctrl + -
显示快捷键?