S60 3rd Edition SDK for Symbian OS
Example Applications Guide

IMOpenAPIExampleDocument.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : IMOpenAPIExampleDocument.h
00004 *  Part of     : IMOpenAPIExample
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005-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 IMOPENAPIEXAMPLEDOCUMENT_H
00017 #define IMOPENAPIEXAMPLEDOCUMENT_H
00018 
00019 // INCLUDES
00020 #include <akndoc.h>
00021 
00022    
00023 // CONSTANTS
00024 
00025 // FORWARD DECLARATIONS
00026 class  CEikAppUi;
00027 class  CIMOpenAPIExamplemodel;
00028 class CIMOpenAPIExampleAppUi;
00029 
00030 // CLASS DECLARATION
00031 
00032 /**
00033 *  CIMOpenAPIExampleDocument application class.
00034 */
00035 class CIMOpenAPIExampleDocument : public CAknDocument
00036     {
00037     public: // Constructors and destructor
00038         /**
00039         * Two-phased constructor.
00040         */
00041         static CIMOpenAPIExampleDocument* NewL(CEikApplication& aApp);
00042 
00043         /**
00044         * Destructor.
00045         */
00046         virtual ~CIMOpenAPIExampleDocument();
00047 
00048     public: // Own functions
00049     
00050         /**
00051         * Document.
00052         * Returns a reference to itself
00053         * @return a reference to CIMOpenAPIExampleDocument
00054         */
00055         CIMOpenAPIExampleDocument& Document();
00056 
00057     
00058         /**
00059         * Model.
00060         * Returns a reference to the model
00061         * @return a reference to CIMOpenAPIExamplemodel
00062         */
00063                 CIMOpenAPIExamplemodel& Model();
00064                 
00065         /**
00066         * UI.
00067         * Returns a pointer to application UI class
00068         * @return a reference to CIMOpenAPIExampleAppUi
00069         */
00070                 CIMOpenAPIExampleAppUi* UI();
00071                 
00072         /**
00073         * SetPointerToUI.
00074         * Sets the pointer to the application UI
00075         * @param a pointer to CIMOpenAPIExampleAppUi
00076         */
00077                 void SetPointerToUI(CIMOpenAPIExampleAppUi* aUIPointer);
00078 
00079     private:
00080 
00081         /**
00082         * EPOC default constructor.
00083         */
00084         CIMOpenAPIExampleDocument(CEikApplication& aApp);
00085         
00086         /**
00087         * 2nd phase constructor.
00088         */
00089         void ConstructL();
00090 
00091         /**
00092         * From CEikDocument, create CIMOpenAPIExampleAppUi "App UI" object.
00093         */
00094         CEikAppUi* CreateAppUiL();
00095         
00096         private:        // data
00097         /**
00098         * iUI
00099         * Local poiner to application UI
00100         */
00101                 CIMOpenAPIExampleAppUi* iUI;
00102                 
00103         /**
00104         * iModel
00105         * Local poiner to application model
00106         */
00107         CIMOpenAPIExamplemodel* iModel;
00108     };
00109 
00110 #endif //IMOPENAPIEXAMPLEDOCUMENT_H
00111 
00112 // End of File
00113 

© Nokia 2006

Back to top