Nokia N97 SDK
Example Applications Guide

CStylusPopupMenuExAppUi Class Reference

#include <styluspopupmenuexappui.h>

Inheritance diagram for CStylusPopupMenuExAppUi:

List of all members.

Detailed Description

CStylusPopupMenuExAppUi application UI class. Interacts with the user through the UI and request message processing from the handler class

Definition at line 24 of file styluspopupmenuexappui.h.


Public Member Functions

void  ConstructL ()
  CStylusPopupMenuExAppUi ()
virtual  ~CStylusPopupMenuExAppUi ()
void  HandleCommandL (TInt aCommand)
void  DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)

Private Attributes

CStylusPopupMenuExContainer *  iAppContainer


Constructor & Destructor Documentation

CStylusPopupMenuExAppUi::CStylusPopupMenuExAppUi (   ) 
 

CStylusPopupMenuExAppUi. C++ default constructor. This needs to be public due to the way the framework constructs the AppUi

Definition at line 42 of file styluspopupmenuexappui.cpp.

00043     {
00044         // no implementation required
00045     }

CStylusPopupMenuExAppUi::~CStylusPopupMenuExAppUi (   )  [virtual]
 

~CStylusPopupMenuExAppUi. Virtual Destructor.

Definition at line 52 of file styluspopupmenuexappui.cpp.

References iAppContainer.

00053     {
00054     if ( iAppContainer )
00055         {
00056         RemoveFromStack( iAppContainer );
00057         delete iAppContainer;
00058         }
00059     }


Member Function Documentation

void CStylusPopupMenuExAppUi::ConstructL (   ) 
 

ConstructL. 2nd phase constructor.

Definition at line 26 of file styluspopupmenuexappui.cpp.

References CStylusPopupMenuExContainer::ConstructL(), and iAppContainer.

00027     {
00028     BaseConstructL( EAknEnableSkin );
00029     
00030     iAppContainer = new ( ELeave ) CStylusPopupMenuExContainer();
00031     iAppContainer->SetMopParent( this );
00032     iAppContainer->ConstructL( ClientRect() );
00033     
00034     AddToStackL( iAppContainer );
00035     }

void CStylusPopupMenuExAppUi::HandleCommandL (  TInt  aCommand  ) 
 

From CEikAppUi, HandleCommandL. Takes care of command handling.

Parameters:
aCommand  Command to be handled.

Definition at line 66 of file styluspopupmenuexappui.cpp.

References iAppContainer, and CStylusPopupMenuExContainer::UseResourceForPopupMenuL().

00067     {
00068     
00069     switch( aCommand )
00070         {
00071         case ECmdCreateMenuFromResource:
00072             iAppContainer->UseResourceForPopupMenuL( ETrue );
00073             break;
00074         case ECmdCreateMenuFromCode:
00075             iAppContainer->UseResourceForPopupMenuL( EFalse );
00076             break;
00077         case EEikCmdExit:
00078         case EAknSoftkeyExit:
00079             Exit();
00080             break;
00081         default:
00082             return;
00083         }
00084     //iAppContainer->DrawDeferred();        
00085         }


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

© Nokia 2009

Back to top