Nokia N97 SDK
Example Applications Guide

BillboardAppUi.h

00001 /*
00002  * ==============================================================================
00003  *  Name        : BillboardAppUi.h
00004  *  Part of     : OpenGLEx / Billboard
00005  *
00006  *  Copyright (c) 2005-2006 Nokia Corporation.
00007  *  This material, including documentation and any related
00008  *  computer programs, is protected by copyright controlled by
00009  *  Nokia Corporation.
00010  * ==============================================================================
00011  */
00012 
00013 #ifndef BILLBOARDAPPUI_H
00014 #define BILLBOARDAPPUI_H
00015 
00016 // INCLUDES
00017 #include <eikapp.h>
00018 #include <eikdoc.h>
00019 #include <e32std.h>
00020 #include <coeccntx.h>
00021 #include <aknappui.h>
00022 
00023 // FORWARD DECLARATIONS
00024 class CBillboardContainer;
00025 
00026 // CLASS DECLARATION
00027 
00028 /**
00029  * Application UI class that contains the CBillboardContainer
00030  * (as required by the Symbian UI application architecture).
00031  */
00032 class CBillboardAppUi : public CAknAppUi
00033     {
00034     public: // Constructors and destructor
00035 
00036         /**
00037          * Second phase constructor that can call methods that may leave.
00038          * Creates the CBillboardContainer and adds it to the control stack.
00039          */
00040         void ConstructL();
00041 
00042         /**
00043          * Destructor. Removes CBillboardContainer from the control
00044          * stack and destroys it.
00045          */
00046         virtual ~CBillboardAppUi();
00047 
00048     private: // Functions from base classes
00049 
00050         /**
00051          * This method is called by the EIKON framework just before it displays
00052          * a menu pane. Builds the dynamic menuitems for toggling the various options
00053          * in the example.
00054          */
00055         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
00056 
00057         /**
00058          * CEikAppUi method that is used to handle user commands.
00059          * Handles menu commands and application exit request.
00060          * @param aCommand Command to be handled.
00061          */
00062         void HandleCommandL(TInt aCommand);
00063 
00064     private: //Data
00065 
00066         /** GUI container that resides in this application UI. */
00067         CBillboardContainer* iAppContainer;
00068     };
00069 
00070 #endif
00071 
00072 // End of File

© Nokia 2009

Back to top