S60 3rd Edition SDK for Symbian OS
Example Applications Guide

AddressBookDocument.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : AddressBookDocument.h
00004 *  Part of     : AddressBook
00005 *  Interface   : 
00006 *  Description : Application Document class, CAddressBookDocument - 
00007 *                                stores and restores the state of the application
00008 *  Version     : 
00009 *
00010 *  Copyright (c) 2002-2006 Nokia Corporation.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia Corporation.
00014 * ==============================================================================
00015 */
00016 
00017 #ifndef ADDRESSBOOKDOCUMENT_H
00018 #define ADDRESSBOOKDOCUMENT_H
00019 
00020 // INCLUDES
00021 #include <akndoc.h>
00022    
00023 // FORWARD DECLARATIONS
00024 class  CEikAppUi;
00025 
00026 // CLASS DECLARATION
00027 
00028 /**
00029 *  CAddressBookDocument application class.
00030 */
00031 class CAddressBookDocument : public CAknDocument
00032     {
00033     public: // Constructors and destructor
00034         
00035         /**
00036         * Two-phased constructor.
00037         */
00038         static CAddressBookDocument* NewL(CEikApplication& aApp);
00039 
00040         /**
00041         * Destructor.
00042         */
00043         virtual ~CAddressBookDocument();
00044 
00045     private: // Constructors
00046 
00047         /**
00048         * C++ default constructor.
00049         */
00050         CAddressBookDocument(CEikApplication& aApp);
00051         
00052         // Functions from base classes
00053         /**
00054         * From CEikDocument, create CAddressBookAppUi "App UI" object.
00055         * @return AddressBook Ui
00056         */
00057         CEikAppUi* CreateAppUiL();
00058     };
00059 
00060 #endif //ADDRESSBOOKDOCUMENT_H
00061 
00062 // End of File
00063 

© Nokia 2006

Back to top