Nokia N97 SDK
Example Applications Guide

ccontappui.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : ccontappui.h
00004 *  Part of     : Contacts database example
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 #ifndef __CCONTAPPUI_H__
00017 #define __CCONTAPPUI_H__
00018 
00019 // INCLUDES
00020 #include <eikapp.h>
00021 #include <eikdoc.h>
00022 #include <e32std.h>
00023 #include <coeccntx.h>
00024 #include <aknappui.h>
00025 
00026 // FORWARD DECLARATIONS
00027 class CContContainer;
00028 
00029 // CLASS DECLARATION
00030 
00031 /**
00032 * Application UI class.
00033 * Provides support for the following features:
00034 * - EIKON control architecture
00035 *
00036 */
00037 class CContAppUi : public CAknAppUi
00038     {
00039     public: // // Constructors and destructor
00040 
00041         /**
00042         * Default constructor
00043         */
00044         void ConstructL();
00045 
00046         /**
00047         * Destructor
00048         * Destructor is always virtual
00049         */
00050         virtual ~CContAppUi();
00051 
00052     private:
00053         /**
00054         * From MEikMenuObserver
00055         * @param aResourceId Resource ID identifying the menu pane to initialise
00056         * @param aMenuPane The in-memory representation of the menu pane.
00057         */
00058         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
00059 
00060     private:
00061         /**
00062         * From CEikAppUi, takes care of command handling
00063         * @param aCommand command to be handled
00064         */
00065         void HandleCommandL( TInt aCommand );
00066         
00067         /**
00068         * From CEikAppUi, HandleResourceChangeL.
00069         * Handles resource changes.
00070         * @param aType Resource change type to be handled
00071         */
00072         void HandleResourceChangeL( TInt aType );
00073 
00074         /**
00075         * From CEikAppUi, handles key events
00076         * @param aKeyEvent Event to handled.
00077         * @param aType Type of the key event
00078         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed)
00079         */
00080         virtual TKeyResponse HandleKeyEventL(
00081             const TKeyEvent& aKeyEvent, TEventCode aType);
00082 
00083     private: // local methods
00084         /**
00085         * UpdateTitleL
00086         * The method updates title text
00087         * @param aResourceId Resource ID for text
00088         */
00089         void UpdateTitleL( TInt aResourceId );
00090 
00091     private: //Data
00092         /**
00093         * iAppContainer the container class
00094         * Owned by CContAppUi object, instantiated in
00095         * ConstructL, deleted in destructor
00096         */
00097         CContContainer* iAppContainer;
00098     };
00099 
00100 #endif  // __CCONTAPPUI_H__
00101 
00102 // End of File

© Nokia 2009

Back to top