Nokia N97 SDK
Example Applications Guide

CHierarchicalColumnListAppUi Class Reference

#include <HierarchicalColumnListAppUi.h>

Inheritance diagram for CHierarchicalColumnListAppUi:

List of all members.

Detailed Description

An instance of class CHierarchicalColumnListAppUi is the UserInterface part of the AVKON application framework for the HierarchicalColumnList application.

Definition at line 29 of file HierarchicalColumnListAppUi.h.


Public Member Functions

void  ConstructL ()
  CHierarchicalColumnListAppUi ()
  ~CHierarchicalColumnListAppUi ()
void  DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
void  HandleCommandL (TInt aCommand)
void  HandleForegroundEventL (TBool aForeground)
void  HandleResourceChangeL (TInt aType)

Private Attributes

CHierarchicalColumnListAppView *  iAppView


Constructor & Destructor Documentation

CHierarchicalColumnListAppUi::CHierarchicalColumnListAppUi (   ) 
 

C++ constructor. Performs the first phase of two phase construction. This needs to be public due to the way the framework constructs the AppUi.

Definition at line 41 of file HierarchicalColumnListAppUi.cpp.

00042     {
00043         // no implementation required
00044     }

CHierarchicalColumnListAppUi::~CHierarchicalColumnListAppUi (   ) 
 

Destructor. Destroys the object and releases all memory objects.

Definition at line 47 of file HierarchicalColumnListAppUi.cpp.

References iAppView.

00048     {
00049     if ( iAppView )
00050         {
00051         RemoveFromStack( iAppView );
00052         delete iAppView;
00053         iAppView = NULL;
00054         }
00055     }


Member Function Documentation

void CHierarchicalColumnListAppUi::ConstructL (   ) 
 

Second phase constructor. Performs the second phase construction of a CHierarchicalColumnListAppUi object this needs to be public due to the way the framework constructs the AppUi .

Definition at line 30 of file HierarchicalColumnListAppUi.cpp.

References iAppView, and CHierarchicalColumnListAppView::NewL().

00031     {
00032     BaseConstructL( EAknEnableSkin | EAknEnableMSK );
00033 
00034     iAppView = CHierarchicalColumnListAppView::NewL( ClientRect() ); 
00035     iAppView->SetMopParent( this );
00036 
00037     AddToStackL( iAppView );
00038     }

void CHierarchicalColumnListAppUi::DynInitMenuPaneL (  TInt  aResourceId,
CEikMenuPane *  aMenuPane
) 
 

Dynamically initialises a menu pane.

Definition at line 63 of file HierarchicalColumnListAppUi.cpp.

References CHierarchicalColumnListAppView::DynInitMarkingMenuPaneL(), CHierarchicalColumnListAppView::DynInitOptionsMenuPaneL(), CHierarchicalColumnListAppView::DynInitSettingsMenuPaneL(), and iAppView.

00065     {
00066     if ( aResourceId == R_HIERARCHICALCOLUMNLIST_MENU )
00067         {        
00068         iAppView->DynInitOptionsMenuPaneL( aMenuPane );
00069         }
00070     else if ( aResourceId == R_HIERARCHICALCOLUMNLIST_SETTINGS_MENU )
00071         {
00072         iAppView->DynInitSettingsMenuPaneL( aMenuPane );
00073         }
00074     else if ( aResourceId == R_AVKON_MENUPANE_MARKABLE_LIST_IMPLEMENTATION )
00075         {
00076         iAppView->DynInitMarkingMenuPaneL( aMenuPane );
00077         }
00078     }

void CHierarchicalColumnListAppUi::HandleCommandL (  TInt  aCommand  ) 
 

Handles user menu selections.

Parameters:
aCommand  the enumerated code for the option selected.

Definition at line 86 of file HierarchicalColumnListAppUi.cpp.

References CHierarchicalColumnListAppView::ChangeFunctionIndicatorsL(), CHierarchicalColumnListAppView::ChangeLooping(), CHierarchicalColumnListAppView::ChangeMarkable(), CHierarchicalColumnListAppView::ChangeMarquee(), CHierarchicalColumnListAppView::CollapseFocusedNode(), CHierarchicalColumnListAppView::ExpandFocusedNode(), iAppView, CHierarchicalColumnListAppView::Mark(), CHierarchicalColumnListAppView::MarkAll(), CHierarchicalColumnListAppView::OpenFocusedItem(), CHierarchicalColumnListAppView::Unmark(), and CHierarchicalColumnListAppView::UnmarkAll().

00087     {
00088     switch( aCommand )
00089         {
00090         case EEikCmdExit:
00091         case EAknSoftkeyExit:
00092             Exit();
00093             break;
00094 
00095         case EHclExampleCmdExpand:
00096             iAppView->ExpandFocusedNode();
00097             break;
00098 
00099         case EHclExampleCmdCollapse:
00100             iAppView->CollapseFocusedNode();
00101             break;
00102 
00103         case EHclExampleCmdOpen:
00104             iAppView->OpenFocusedItem();
00105             break;
00106 
00107         case EHclExampleCmdChangeLooping:
00108             iAppView->ChangeLooping();
00109             break;
00110 
00111         case EHclExampleCmdChangeMarquee:
00112             iAppView->ChangeMarquee();
00113             break;
00114 
00115         case EHclExampleCmdChangeMarkable:
00116             iAppView->ChangeMarkable();
00117             break;
00118 
00119         case EHclExampleCmdChangeIndicators:
00120             iAppView->ChangeFunctionIndicatorsL();
00121             break;
00122 
00123         case EAknCmdMark:
00124             iAppView->Mark();
00125             break;
00126 
00127         case EAknCmdUnmark:
00128             iAppView->Unmark();
00129             break;
00130 
00131         case EAknMarkAll:
00132             iAppView->MarkAll();
00133             break;
00134         
00135         case EAknUnmarkAll:
00136             iAppView->UnmarkAll();
00137             break;
00138 
00139         default:
00140             break;
00141         }
00142     }

void CHierarchicalColumnListAppUi::HandleForegroundEventL (  TBool  aForeground  ) 
 

Handles changes in keyboard focus when an application switches to, or from, the foreground.

Definition at line 150 of file HierarchicalColumnListAppUi.cpp.

References iAppView.

00151     {
00152     if ( aForeground )
00153         {
00154         AddToStackL( iAppView );
00155         }
00156     else
00157         {
00158         RemoveFromStack( iAppView );
00159         }
00160     }

void CHierarchicalColumnListAppUi::HandleResourceChangeL (  TInt  aType  ) 
 

Handles a change to the application's resources.

Parameters:
aType  The type of resources that have changed.

Definition at line 168 of file HierarchicalColumnListAppUi.cpp.

References iAppView.

00169     {
00170     CAknAppUi::HandleResourceChangeL( aType );
00171     if ( iAppView  )
00172         {
00173         if ( aType == KEikDynamicLayoutVariantSwitch )
00174             {
00175             iAppView->SetRect( ClientRect() );
00176             }
00177         iAppView->HandleResourceChange( aType );
00178         }
00179     }


Member Data Documentation

CHierarchicalColumnListAppView* CHierarchicalColumnListAppUi::iAppView [private]
 

View The application view. Own.

Definition at line 86 of file HierarchicalColumnListAppUi.h.

Referenced by ConstructL(), DynInitMenuPaneL(), HandleCommandL(), HandleForegroundEventL(), HandleResourceChangeL(), and ~CHierarchicalColumnListAppUi().


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

© Nokia 2009

Back to top