|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : focuseventdocument.h 00004 * Part of : Focus event example 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 __FOCUSEVENT_DOCUMENT_H__ 00017 #define __FOCUSEVENT_DOCUMENT_H__ 00018 00019 // INCLUDES 00020 #include <akndoc.h> 00021 00022 // FORWARD DECLARATIONS 00023 class CFocusEventAppUi; 00024 class CEikApplication; 00025 00026 // CLASS DECLARATION 00027 00028 /** 00029 * CFocusEventDocument application class. 00030 * An instance of class CFocusEventDocument is the Document part of the AVKON 00031 * application framework for the FocusEventDocument example application. 00032 */ 00033 class CFocusEventDocument : public CAknDocument 00034 { 00035 public: // Constructors and destructor 00036 00037 /** 00038 * NewL. 00039 * Two-phased constructor. 00040 * Construct a CFocusEventDocument for the AVKON application aApp. 00041 * Using two phase construction, and return a pointer 00042 * to the created object. 00043 * @param aApp Application creating this document. 00044 * @return A pointer to the created instance of CFocusEventDocument. 00045 */ 00046 static CFocusEventDocument* NewL( CEikApplication& aApp ); 00047 00048 /** 00049 * NewLC. 00050 * Two-phased constructor. 00051 * Construct a CFocusEventDocument for the AVKON application aApp. 00052 * Using two phase construction, and return a pointer 00053 * to the created object. 00054 * @param aApp Application creating this document. 00055 * @return A pointer to the created instance of CFocusEventDocument. 00056 */ 00057 static CFocusEventDocument* NewLC( CEikApplication& aApp ); 00058 00059 /** 00060 * ~CFocusEventDocument 00061 * Virtual Destructor. 00062 */ 00063 virtual ~CFocusEventDocument(); 00064 00065 public: // from CEikDocument 00066 00067 /** 00068 * CreateAppUiL 00069 * From CEikDocument, CreateAppUiL. 00070 * Create a CFocusEventAppUi object and return a pointer to it. 00071 * The object returned is owned by the Uikon framework. 00072 * @return Pointer to created instance of AppUi. 00073 */ 00074 CEikAppUi* CreateAppUiL(); 00075 00076 private: // Constructors 00077 00078 /** 00079 * ConstructL 00080 * 2nd phase constructor. 00081 */ 00082 void ConstructL(); 00083 00084 /** 00085 * CFocusEventDocument. 00086 * C++ default constructor. 00087 * @param aApp Application creating this document. 00088 */ 00089 CFocusEventDocument( CEikApplication& aApp ); 00090 }; 00091 00092 #endif // __FOCUSEVENT_DOCUMENT_H__ 00093 00094 // End of File
|
© Nokia 2009 |