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