mclassexampledocument.h

来自「symbian中讲述的一个有关M类使用的例子」· C头文件 代码 · 共 79 行

H
79
字号
/* Copyright (c) 2008, Nokia. All rights reserved */

#ifndef __MCLASSEXAMPLE_DOCUMENT_H__
#define __MCLASSEXAMPLE_DOCUMENT_H__


#include <akndoc.h>

class CMClassExampleAppUi;
class CEikApplication;


/*! 
  @class CMClassExampleDocument
  
  @discussion An instance of class CMClassExampleDocument is the Document part of the AVKON
  application framework for the MClassExample example application
  */
class CMClassExampleDocument : public CAknDocument
    {
public:

/*!
  @function NewL
  
  @discussion Construct a CMClassExampleDocument for the AVKON application aApp 
  using two phase construction, and return a pointer to the created object
  @param aApp Application creating this document
  @result A pointer to the created instance of CMClassExampleDocument
  */
    static CMClassExampleDocument* NewL(CEikApplication& aApp);

/*!
  @function NewLC
  
  @discussion Construct a CMClassExampleDocument for the AVKON application aApp 
  using two phase construction, and return a pointer to the created object
  @param aApp Application creating this document
  @result A pointer to the created instance of CMClassExampleDocument
  */
    static CMClassExampleDocument* NewLC(CEikApplication& aApp);

/*!
  @function ~CMClassExampleDocument
  
  @discussion Destroy the object
  */
    ~CMClassExampleDocument();

public: // from CAknDocument
/*!
  @function CreateAppUiL 
  
  @discussion Create a CMClassExampleAppUi object and return a pointer to it
  @result A pointer to the created instance of the AppUi created
  */
    CEikAppUi* CreateAppUiL();

private:

/*!
  @function ConstructL
  
  @discussion Perform the second phase construction of a CMClassExampleDocument object
  */
    void ConstructL();

/*!
  @function CMClassExampleDocument
  
  @discussion Perform the first phase of two phase construction 
  @param aApp Application creating this document
  */
    CMClassExampleDocument(CEikApplication& aApp);
    };


#endif // __MCLASSEXAMPLE_DOCUMENT_H__

⌨️ 快捷键说明

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