Nokia N97 SDK Example Applications Guide

- Main Page
- Namespaces
- Classes
- Files

# HsWidgetAppUi.h

    00001 /*
    00002  ============================================================================
    00003  Name           : HsWidgetAppUi.h
    00004  Author   :
    00005  Copyright   : Your copyright notice
    00006  Description : Declares UI class for application.
    00007  ============================================================================
    00008  */
    00009
    00010 #ifndef __HSWIDGETAPPUI_H__
    00011 #define __HSWIDGETAPPUI_H__
    00012
    00013 // INCLUDES
    00014 #include <aknappui.h>
    00015
    00016 // FORWARD DECLARATIONS
    00017 class CHsWidgetAppView;
    00018 class CHsWidgetExample;
    00019
    00020 // CLASS DECLARATION
    00021 /**
    00022  * CHsWidgetAppUi application UI class.
    00023  * Interacts with the user through the UI and request message processing
    00024  * from the handler class
    00025  */
    00026 class CHsWidgetAppUi : public CAknAppUi
    00027         {
    00028 public:
    00029         // Constructors and destructor
    00030
    00031         /**
    00032          * ConstructL.
    00033          * 2nd phase constructor.
    00034          */
    00035         void ConstructL();
    00036
    00037         /**
    00038          * CHsWidgetAppUi.
    00039          * C++ default constructor. This needs to be public due to
    00040          * the way the framework constructs the AppUi
    00041          */
    00042         CHsWidgetAppUi();
    00043
    00044         /**
    00045          * ~CHsWidgetAppUi.
    00046          * Virtual Destructor.
    00047          */
    00048         virtual ~CHsWidgetAppUi();
    00049
    00050         /**
    00051          * DynInitMenuPaneL.
    00052          * Dynamically initialises a menu pane..
    00053          * @param aResourceId
    00054          * @param aMenuPane The in-memory representation of the menu bar.
    00055          */
    00056         void DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane );
    00057
    00058 private:
    00059         // Functions from base classes
    00060
    00061         /**
    00062          * From CEikAppUi, HandleCommandL.
    00063          * Takes care of command handling.
    00064          * @param aCommand Command to be handled.
    00065          */
    00066         void HandleCommandL(TInt aCommand);
    00067
    00068         /**
    00069          *  HandleStatusPaneSizeChange.
    00070          *  Called by the framework when the application status pane
    00071          *  size is changed.
    00072          */
    00073         void HandleStatusPaneSizeChange();
    00074
    00075         /**
    00076          *  From CCoeAppUi, HelpContextL.
    00077          *  Provides help context for the application.
    00078          *  size is chaluenged.
    00079          */
    00080         CArrayFix<TCoeHelpContext>* HelpContextL() const;
    00081
    00082 private:
    00083         // Data
    00084
    00085         /**
    00086          * The application view
    00087          * Owned by CHsWidgetAppUi
    00088          */
    00089         CHsWidgetAppView* iAppView;
    00090
    00091         CHsWidgetExample* iWidgetExample;
    00092         };
    00093
    00094 #endif // __HSWIDGETAPPUI_H__
    00095 // End of File

© Nokia 2009 |