|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : graphicsdocument.h 00004 * Part of : graphics 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef __GRAPHICSDOCUMENT_H__ 00017 #define __GRAPHICSDOCUMENT_H__ 00018 00019 // INCLUDES 00020 #include <eikdoc.h> 00021 00022 // FORWARD DECLARATIONS 00023 class CGraphicsAppUi; 00024 class CEikApplication; 00025 00026 00027 00028 // CLASS DECLARATION 00029 00030 /** 00031 * CGraphicsDocument application class. 00032 * An instance of class CGraphicsDocument is the Document part of the AVKON 00033 * application framework for the GraphicsDocument example application. 00034 */ 00035 class CGraphicsDocument : public CEikDocument 00036 { 00037 public: // Constructors and destructor 00038 00039 /** 00040 * NewL. 00041 * Two-phased constructor. 00042 * Construct a CGraphicsDocument for the AVKON application aApp. 00043 * Using two phase construction, and return a pointer 00044 * to the created object. 00045 * @param aApp Application creating this document. 00046 * @return A pointer to the created instance of CGraphicsDocument. 00047 */ 00048 static CGraphicsDocument* NewL( CEikApplication& aApp ); 00049 00050 /** 00051 * NewLC. 00052 * Two-phased constructor. 00053 * Construct a CGraphicsDocument for the AVKON application aApp. 00054 * Using two phase construction, and return a pointer 00055 * to the created object. 00056 * @param aApp Application creating this document. 00057 * @return A pointer to the created instance of CGraphicsDocument. 00058 */ 00059 static CGraphicsDocument* NewLC( CEikApplication& aApp ); 00060 00061 /** 00062 * ~CGraphicsDocument 00063 * Virtual Destructor. 00064 */ 00065 virtual ~CGraphicsDocument(); 00066 00067 private: // Constructors 00068 00069 /** 00070 * ConstructL 00071 * 2nd phase constructor. 00072 */ 00073 void ConstructL(); 00074 00075 /** 00076 * CGraphicsDocument. 00077 * C++ default constructor. 00078 * @param aApp Application creating this document. 00079 */ 00080 CGraphicsDocument( CEikApplication& aApp ); 00081 00082 private: // Functions from base classes 00083 00084 /** 00085 * From CEikDocument, CreateAppUiL. 00086 * Create a CGraphicsAppUi object and return a pointer to it. 00087 * @return A pointer to the created instance of the AppUi created. 00088 */ 00089 CEikAppUi* CreateAppUiL(); 00090 }; 00091 00092 #endif // __GRAPHICSDOCUMENT_H__
|
© Nokia 2009 |