Nokia N97 SDK
Example Applications Guide

guiengineappui.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : guiengineappui.h
00004 *  Part of     : GuiEngine
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2004 - 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 
00017 #ifndef __GUIENGINEAPPUI_H__
00018 #define __GUIENGINEAPPUI_H__
00019 
00020 
00021 // INCLUDES
00022 #include <aknappui.h>
00023 #include <eikmenup.h>
00024 #include "ShapeListManager.h"
00025 
00026 
00027 // FORWARD DECLARATIONS
00028 class CGuiEngineAppView;
00029 class CGuiEngineDocument;
00030 
00031 
00032 // CLASS DECLARATION
00033 
00034 /**
00035 * CGuiEngineAppUi
00036 * The Application User Interface.
00037 */
00038 class CGuiEngineAppUi : public CAknAppUi
00039 {
00040     public: // Constructors and destructor
00041 
00042         /**
00043         * ConstructL.
00044         * 2nd phase constructor.
00045         */
00046         void ConstructL();
00047 
00048         /**
00049         * CGuiEngineAppUi.
00050         * C++ default constructor.
00051         * @param aDocument the model
00052         */
00053         CGuiEngineAppUi( CGuiEngineDocument* aDocument );
00054 
00055         /**
00056         * ~CGuiEngineAppUi.
00057         * Virtual Destructor.
00058         */
00059         virtual ~CGuiEngineAppUi();
00060 
00061 
00062     public:  // New Functions
00063 
00064         /**
00065         * StoreL
00066         * Store the user interface settings to a store
00067         * @param aStore the store to save the data to
00068         * @return Returns the id of the stream containing the data
00069         */
00070         TStreamId StoreL( CStreamStore& aStore ) const;
00071 
00072         /**
00073         * RestoreL
00074         * Restore the user interface settings from a store
00075         * @param aStore the store to read the data from
00076         * @param aStreamId the id of the stream containing the data
00077         */
00078         void RestoreL( const CStreamStore& aStore,
00079                        TStreamId aStreamId);
00080 
00081 
00082     public: //  from CAknAppUi
00083 
00084         /**
00085         * HandleModelChangeL
00086         * Update the system to reflect changes in the model
00087         */
00088         void HandleModelChangeL();
00089 
00090         /**
00091         * HandleCommandL
00092         * From CAknView, takes care of command handling.
00093         * @param aCommand Command to be handled
00094         */
00095         void HandleCommandL( TInt aCommand );
00096 
00097     private:    // Data
00098 
00099         /**
00100         * iAppView The application view
00101         * Owned by CGuiEngineAppUi object.
00102         */
00103         CGuiEngineAppView* iAppView;
00104 
00105         /**
00106         * iDocument,  The current document
00107         * Not owned by CGuiEngineAppUi object.
00108         */
00109         CGuiEngineDocument* iDocument;
00110     };
00111 
00112 
00113 #endif // __GUIENGINEAPPUI_H__
00114 
00115 // End of File

© Nokia 2009

Back to top