halviewcontainer.h

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

H
57
字号
#ifndef __HAL_VIEW_CONTAINER_H__
#define __HAL_VIEW_CONTAINER_H__

// INCLUDES
#include <coecntrl.h>    // CCoeControl

// FORWARD DECLARATIONS
class CAknDoubleGraphicStyleListBox;
class CHalViewView;

// CLASS DECLARATION

/**
*
* @class    CHalViewContainer HalViewContainer.h 
* @brief    This is a container class for an example app based on the 
* Series 60 view switching architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version    1.0
* 
*/
class CHalViewContainer : public CCoeControl
{
public:
    static CHalViewContainer* NewL(CHalViewView& aView, const TRect& aRect);
    ~CHalViewContainer();

public:
    void DisplayAttributesByIdL(TInt aId);

public: // from CoeControl
    TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

private:
    CHalViewContainer(CHalViewView& aView);
    void ConstructL(const TRect& aRect);
    
    TInt CalculateResourceIdL(TInt aId);
    void ReadHalValuesL(TInt aid);

private: // from CoeControl
    TInt CountComponentControls() const;
    CCoeControl* ComponentControl(TInt aIndex) const;
    void Draw(const TRect& aRect) const;

private: // data
    CAknDoubleGraphicStyleListBox*    iListBox;
    CHalViewView& iView;
    TInt iFirstEntry;
    TInt iLastEntry;
};

#endif    // __HAL_VIEW_CONTAINER_H__

// End of File

⌨️ 快捷键说明

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