Nokia N97 SDK
Example Applications Guide

localizationdocument.h

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

© Nokia 2009

Back to top