halviewdocument.h
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 66 行
H
66 行
#ifndef __HAL_VIEW_DOCUMENT_H__
#define __HAL_VIEW_DOCUMENT_H__
// INCLUDES
// System includes
#include <akndoc.h> // CAknDocument
#include <hal.h> // HAL
// FORWARD DECLARATIONS
class CEikAppUi;
// CLASS DECLARATION
/**
*
* @class CHalViewDocument HalViewDocument.h
* @brief This is the document class for an example app based on the
* Series 60 view switching architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*
*/
class CHalViewDocument : public CAknDocument
{
public: // Constructor
static CHalViewDocument* NewL(CEikApplication& aApp);
~CHalViewDocument();
public:
inline TInt NumHalEntries() const;
inline const HAL::SEntry& GetHalEntry(TInt aEntryIndex) const;
private: // Constructors
CHalViewDocument(CEikApplication& aApp);
void ConstructL();
private: // From CAknDocument
CEikAppUi* CreateAppUiL();
private:
TInt iNumHalEntries;
HAL::SEntry* iHalEntries;
};
// inline functions
inline
TInt CHalViewDocument::NumHalEntries() const
{
return iNumHalEntries;
}
inline
const HAL::SEntry& CHalViewDocument::GetHalEntry(TInt aEntryIndex) const
{
return iHalEntries[aEntryIndex];
}
#endif // #ifndef __HAL_VIEW_DOCUMENT_H__
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?