Nokia N97 SDK
Example Applications Guide

CGraphicsAppUi Class Reference

#include <graphicsappui.h>

Inheritance diagram for CGraphicsAppUi:

List of all members.

Detailed Description

CGraphicsAppUi application UI class. An instance of class CGraphicsAppUi is the UserInterface part of the AVKON application framework for the Graphics example application

Definition at line 32 of file graphicsappui.h.


Public Member Functions

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

Private Attributes

CGraphicsAppView *  iAppView


Constructor & Destructor Documentation

CGraphicsAppUi::CGraphicsAppUi (   ) 
 

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

Definition at line 34 of file graphicsappui.cpp.

00035     {
00036     // No implementation required
00037     }

CGraphicsAppUi::~CGraphicsAppUi (   )  [virtual]
 

~CGraphicsAppUi. Virtual Destructor.

Definition at line 57 of file graphicsappui.cpp.

References iAppView.

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


Member Function Documentation

void CGraphicsAppUi::ConstructL (   ) 
 

ConstructL. 2nd phase constructor.

Definition at line 44 of file graphicsappui.cpp.

References iAppView, and CGraphicsAppView::NewL().

00045     {
00046     BaseConstructL(EAknEnableSkin);
00047 
00048     iAppView = CGraphicsAppView::NewL( ClientRect() );
00049     AddToStackL( iAppView );
00050     }

void CGraphicsAppUi::HandleCommandL (  TInt  aCommand  ) 
 

From CEikAppUi, HandleCommandL. Takes care of command handling.

Parameters:
aCommand  Command to be handled.

Definition at line 72 of file graphicsappui.cpp.

References iAppView, CGraphicsAppView::StartNoOffScreenDemo(), CGraphicsAppView::StartOffScreenDemo(), and CGraphicsAppView::StopDemo().

00073     {
00074     switch( aCommand )
00075         {
00076         case EEikCmdExit:
00077         case EAknSoftkeyExit:
00078             Exit();
00079             break;
00080 
00081         case EGaphicsNoOffScreenDemo:
00082             iAppView->StartNoOffScreenDemo();
00083             break;
00084 
00085         case EGaphicsOffScreenDemo:
00086             iAppView->StartOffScreenDemo();
00087             break;
00088 
00089         case EGaphicsStopDemo:
00090             iAppView->StopDemo();
00091             break;
00092 
00093         default:
00094             break;
00095         }
00096     }


Member Data Documentation

CGraphicsAppView* CGraphicsAppUi::iAppView [private]
 

iAppView The application view Owned by CGraphicsAppUi object.

Definition at line 72 of file graphicsappui.h.

Referenced by ConstructL(), HandleCommandL(), and ~CGraphicsAppUi().


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

© Nokia 2009

Back to top