Nokia N97 SDK
Example Applications Guide

CBillboardAppUi Class Reference

#include <BillboardAppUi.h>

Inheritance diagram for CBillboardAppUi:

List of all members.

Detailed Description

Application UI class that contains the CBillboardContainer (as required by the Symbian UI application architecture).

Definition at line 32 of file BillboardAppUi.h.


Public Member Functions

void  ConstructL ()
virtual  ~CBillboardAppUi ()

Private Member Functions

void  DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
void  HandleCommandL (TInt aCommand)

Private Attributes

CBillboardContainer *  iAppContainer


Constructor & Destructor Documentation

CBillboardAppUi::~CBillboardAppUi (   )  [virtual]
 

Destructor. Removes CBillboardContainer from the control stack and destroys it.

Definition at line 46 of file BillboardAppUi.cpp.

References iAppContainer.

00047         {
00048     if ( iAppContainer )
00049                 {
00050         RemoveFromStack( iAppContainer );
00051         delete iAppContainer;
00052                 }
00053         }


Member Function Documentation

void CBillboardAppUi::ConstructL (   ) 
 

Second phase constructor that can call methods that may leave. Creates the CBillboardContainer and adds it to the control stack.

Definition at line 27 of file BillboardAppUi.cpp.

References CBillboardContainer::ConstructL(), and iAppContainer.

00028     {
00029     BaseConstructL();
00030     iAppContainer = new (ELeave) CBillboardContainer;
00031     iAppContainer->SetMopParent(this);
00032     iAppContainer->ConstructL( ClientRect(), this );
00033     AddToStackL( iAppContainer );
00034 
00035         // Series60 blocks simultaneous key presses by default.
00036         // To use multiple keys at the same time the keyblocking
00037         // must be disabled.
00038         SetKeyBlockMode( ENoKeyBlock );
00039     }

void CBillboardAppUi::DynInitMenuPaneL (  TInt  aResourceId,
CEikMenuPane *  aMenuPane
)  [private]
 

This method is called by the EIKON framework just before it displays a menu pane. Builds the dynamic menuitems for toggling the various options in the example.

Definition at line 63 of file BillboardAppUi.cpp.

00065     {
00066     }

void CBillboardAppUi::HandleCommandL (  TInt  aCommand  )  [private]
 

CEikAppUi method that is used to handle user commands. Handles menu commands and application exit request.

Parameters:
aCommand  Command to be handled.

Definition at line 72 of file BillboardAppUi.cpp.

00073     {
00074     switch ( aCommand )
00075         {
00076         case EAknSoftkeyBack:
00077         case EEikCmdExit:
00078             {
00079             Exit();
00080             break;
00081             }
00082         default:
00083             break;
00084         }
00085     }


Member Data Documentation

CBillboardContainer* CBillboardAppUi::iAppContainer [private]
 

GUI container that resides in this application UI.

Definition at line 67 of file BillboardAppUi.h.

Referenced by ConstructL(), and ~CBillboardAppUi().


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top