Nokia N97 SDK
Example Applications Guide

ListboxDocument.h

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

© Nokia 2009

Back to top