Nokia N97 SDK
Example Applications Guide

CHelpExampleAppUi Class Reference

#include <helpexampleappui.h>

Inheritance diagram for CHelpExampleAppUi:

List of all members.

Detailed Description

CHelpExampleAppUi An instance of class CHelpExampleAppUi is the UserInterface part of the AVKON application framework for the HelpExample example application

Definition at line 31 of file helpexampleappui.h.


Public Member Functions

void  ConstructL ()
  CHelpExampleAppUi ()
virtual  ~CHelpExampleAppUi ()
void  HandleCommandL (TInt aCommand)

Private Member Functions

CArrayFix< TCoeHelpContext > *  HelpContextL () const

Private Attributes

CHelpExampleAppView *  iAppView


Constructor & Destructor Documentation

CHelpExampleAppUi::CHelpExampleAppUi (   ) 
 

CHelpExampleAppUi() Perform the first phase of two phase construction. This needs to be public due to the way the framework constructs the AppUi

Definition at line 48 of file helpexampleappui.cpp.

00049     {
00050     // No implementation required
00051     }

CHelpExampleAppUi::~CHelpExampleAppUi (   )  [virtual]
 

~CHelpExampleAppUi() Destroy the object

Definition at line 58 of file helpexampleappui.cpp.

References iAppView.

00059     {
00060     if ( iAppView )
00061         {
00062         iEikonEnv->RemoveFromStack( iAppView );
00063         delete iAppView;
00064         iAppView = NULL;
00065         }
00066     }


Member Function Documentation

void CHelpExampleAppUi::ConstructL (   ) 
 

ConstructL() Perform the second phase construction of a CHelpExampleAppUi object this needs to be public due to the way the framework constructs the AppUi

Definition at line 36 of file helpexampleappui.cpp.

References iAppView, and CHelpExampleAppView::NewL().

00037     {
00038     BaseConstructL( EAknEnableSkin );
00039 
00040     iAppView = CHelpExampleAppView::NewL( ClientRect() );
00041     AddToStackL( iAppView );
00042     }

void CHelpExampleAppUi::HandleCommandL (  TInt  aCommand  ) 
 

HandleCommandL() Handle user menu selections

Parameters:
aCommand  The enumerated code for the option selected

Definition at line 73 of file helpexampleappui.cpp.

References CHelpfulForm::NewL().

00074     {
00075     switch ( aCommand )
00076         {
00077         case EEikCmdExit:
00078         case EAknSoftkeyExit:
00079             Exit();
00080             break;
00081 
00082         case EShowHelpfulDialog:
00083             {
00084             CHelpfulForm* dlg = CHelpfulForm::NewL( R_FORM_MENUBAR );
00085             dlg->ExecuteLD( R_HELPFUL_DIALOG );
00086             }
00087             break;
00088 
00089         case ELaunchHelpForContext:
00090             {
00091             CArrayFix <TCoeHelpContext>* buf = CCoeAppUi::AppHelpContextL();
00092             HlpLauncher::LaunchHelpApplicationL( iEikonEnv->WsSession(), buf );
00093             }
00094             break;
00095 
00096         default:
00097             break;
00098         }
00099     }

CArrayFix< TCoeHelpContext > * CHelpExampleAppUi::HelpContextL (   )  const [private]
 

HelpContextL() Return the help context for this application

Returns:
A pointer to the help context

Definition at line 106 of file helpexampleappui.cpp.

00107     {
00108     CArrayFixFlat <TCoeHelpContext>* array =
00109                 new ( ELeave )CArrayFixFlat <TCoeHelpContext> ( 1 );
00110     CleanupStack::PushL( array );
00111     array->AppendL( TCoeHelpContext( KUidHelpFile, KContextApplication ) );
00112     CleanupStack::Pop( array );
00113     return array;
00114     }


Member Data Documentation

CHelpExampleAppView* CHelpExampleAppUi::iAppView [private]
 

iAppView The application view Owned by CHelpExampleAppUi

Definition at line 83 of file helpexampleappui.h.

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


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

© Nokia 2009

Back to top