Nokia N97 SDK
Example Applications Guide

CChoiceListExAppUi Class Reference

#include <ChoiceListExAppUi.h>

Inheritance diagram for CChoiceListExAppUi:

List of all members.

Detailed Description

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

Definition at line 24 of file ChoiceListExAppUi.h.


Public Member Functions

void  ConstructL ()
  CChoiceListExAppUi ()
virtual  ~CChoiceListExAppUi ()
void  HandleCommandL (TInt aCommand)
void  DynInitMenuPaneL (TInt aMenuId, CEikMenuPane *aMenuPane)

Private Attributes

CChoiceListExContainer *  iAppContainer
TBitFlags  iMenuFlags


Constructor & Destructor Documentation

CChoiceListExAppUi::CChoiceListExAppUi (   ) 
 

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

Definition at line 45 of file ChoiceListExAppUi.cpp.

00046     {
00047         // no implementation required
00048     }

CChoiceListExAppUi::~CChoiceListExAppUi (   )  [virtual]
 

~CChoiceListExAppUi. Virtual Destructor.

Definition at line 55 of file ChoiceListExAppUi.cpp.

References iAppContainer.

00056     {
00057     if ( iAppContainer )
00058         {
00059         RemoveFromStack( iAppContainer );
00060         delete iAppContainer;
00061         }
00062     }


Member Function Documentation

void CChoiceListExAppUi::ConstructL (   ) 
 

ConstructL. 2nd phase constructor.

Definition at line 27 of file ChoiceListExAppUi.cpp.

References CChoiceListExContainer::ConstructL(), iAppContainer, and iMenuFlags.

00028     {
00029     BaseConstructL( EAknEnableSkin );
00030     
00031     iAppContainer = new ( ELeave ) CChoiceListExContainer();
00032     iAppContainer->SetMopParent( this );
00033     iAppContainer->ConstructL( ClientRect() );
00034     
00035     iMenuFlags.ClearAll();
00036     
00037     AddToStackL( iAppContainer );
00038     }

void CChoiceListExAppUi::HandleCommandL (  TInt  aCommand  ) 
 

From CEikAppUi, HandleCommandL. Takes care of command handling.

Parameters:
aCommand  Command to be handled.

Definition at line 69 of file ChoiceListExAppUi.cpp.

References CChoiceListExContainer::AddItemL(), CChoiceListExContainer::ChangeListFlagsL(), CChoiceListExContainer::CreateButtonChoiceListL(), CChoiceListExContainer::CreateDefaultChoiceListL(), CChoiceListExContainer::CreateResourceChoiceListL(), iAppContainer, iMenuFlags, CChoiceListExContainer::InsertItemL(), CChoiceListExContainer::RemoveItemL(), CChoiceListExContainer::SelectItemL(), and CChoiceListExContainer::ShowListL().

00070     {
00071     switch( aCommand )
00072         {
00073         case EEikCmdExit:
00074         case EAknSoftkeyExit:
00075             Exit();
00076             break;
00077         
00078         case ECmdCreateDefault:
00079             iAppContainer->CreateDefaultChoiceListL();
00080             iMenuFlags.ClearAll();
00081             iMenuFlags.Set( ECmdCreateDefault );
00082             break;
00083         
00084         case ECmdCreateButton:
00085             iAppContainer->CreateButtonChoiceListL();
00086             iMenuFlags.ClearAll();
00087             iMenuFlags.Set( ECmdCreateButton );
00088             break;
00089             
00090         case ECmdCreateResource:
00091             iAppContainer->CreateResourceChoiceListL();
00092             iMenuFlags.ClearAll();
00093             iMenuFlags.Set( ECmdCreateResource );
00094             break;
00095             
00096         case ECmdShowList:
00097             iAppContainer->ShowListL();
00098             break;
00099                 
00100         case ECmdAddItem:
00101             iAppContainer->AddItemL();
00102             break;
00103             
00104         case ECmdInsertItem:
00105             iAppContainer->InsertItemL();
00106             break;
00107             
00108         case ECmdRemoveItem:
00109             iAppContainer->RemoveItemL();
00110             break;
00111             
00112         case ECmdSelectItem:
00113             iAppContainer->SelectItemL();
00114             break;
00115         
00116         case ECmdListPosLeft:
00117             iAppContainer->ChangeListFlagsL( 
00118                 CAknChoiceList::EAknChoiceListPositionLeft );
00119             break;
00120         case ECmdListPosRight:
00121             iAppContainer->ChangeListFlagsL(
00122                 CAknChoiceList::EAknChoiceListPositionRight );
00123             break;
00124         
00125         case ECmdListPosBottom:
00126             iAppContainer->ChangeListFlagsL(
00127                 CAknChoiceList::EAknChoiceListPositionBottom );
00128             break;
00129             
00130         default:
00131             return;
00132         }
00133     iAppContainer->DrawDeferred();        
00134     }


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

© Nokia 2009

Back to top