Nokia N97 SDK
Example Applications Guide

CTactileExampleAppUi Class Reference

#include <tactileexampleappui.h>

Inheritance diagram for CTactileExampleAppUi:

List of all members.

Detailed Description

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

Definition at line 32 of file tactileexampleappui.h.


Public Member Functions

  CTactileExampleAppUi ()
void  ConstructL ()
virtual  ~CTactileExampleAppUi ()

Private Member Functions

void  HandleCommandL (TInt aCommand)
void  HandleResourceChangeL (TInt aType)

Private Attributes

CTactileExampleAppView *  iAppView


Constructor & Destructor Documentation

CTactileExampleAppUi::CTactileExampleAppUi (   ) 
 

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

Definition at line 32 of file tactileexampleappui.cpp.

00033     {
00034     // No implementation required
00035     }

CTactileExampleAppUi::~CTactileExampleAppUi (   )  [virtual]
 

~CTactileExampleAppUi. Virtual Destructor.

Definition at line 62 of file tactileexampleappui.cpp.

References iAppView.

00063     {
00064     RemoveFromStack( iAppView );
00065     if ( iAppView )
00066         {
00067         delete iAppView;
00068         iAppView = NULL;
00069         }
00070     }


Member Function Documentation

void CTactileExampleAppUi::ConstructL (   ) 
 

ConstructL. 2nd phase constructor.

Definition at line 42 of file tactileexampleappui.cpp.

References iAppView, and CTactileExampleAppView::NewL().

00043     {
00044     // Initialise app UI with standard value.
00045     BaseConstructL( CAknAppUi::EAknEnableSkin );
00046 
00047 
00048     // Create view object
00049     iAppView = CTactileExampleAppView::NewL( ClientRect() );
00050     // We need to set the object provider parent for the view, so that
00051     // automatic feedback area disabling works for dimmed and invisible
00052     // controls.
00053     iAppView->SetMopParent( this );
00054     AddToStackL( iAppView );
00055     }

void CTactileExampleAppUi::HandleCommandL (  TInt  aCommand  )  [private]
 

From CEikAppUi. Takes care of command handling.

Parameters:
aCommand  Command to be handled.

Definition at line 78 of file tactileexampleappui.cpp.

00079     {
00080     switch( aCommand )
00081         {
00082         case EAknSoftkeyBack:
00083         case EAknSoftkeyExit:
00084         case EEikCmdExit:
00085             Exit();
00086             break;
00087 
00088         default:
00089             break;
00090         }
00091     }

void CTactileExampleAppUi::HandleResourceChangeL (  TInt  aType  )  [private]
 

From CEikAppUi. Called by framework when layout is changed.

Parameters:
aType  the type of resources that have changed

Definition at line 100 of file tactileexampleappui.cpp.

References iAppView.

00101     {
00102     // base-class call also
00103     CAknAppUi::HandleResourceChangeL( aType );
00104     if ( aType == KEikDynamicLayoutVariantSwitch )
00105         {
00106         if ( iAppView )
00107             {
00108             iAppView->SetRect( ClientRect() );
00109             }
00110         }
00111     }


Member Data Documentation

CTactileExampleAppView* CTactileExampleAppUi::iAppView [private]
 

The application view Own.

Definition at line 80 of file tactileexampleappui.h.

Referenced by ConstructL(), HandleResourceChangeL(), and ~CTactileExampleAppUi().


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

© Nokia 2009

Back to top