S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CFilelistAppUi Class Reference

#include <FilelistAppui.h>

List of all members.

Public Member Functions

void ConstructL ()
 ~CFilelistAppUi ()

Private Member Functions

void DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
void HandleCommandL (TInt aCommand)
virtual TKeyResponse HandleKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)
virtual void HandleResourceChangeL (TInt aType)

Private Attributes

CFilelistContainer * iAppContainer


Detailed Description

Application UI class. Provides support for the following features:

Definition at line 34 of file FilelistAppui.h.


Constructor & Destructor Documentation

CFilelistAppUi::~CFilelistAppUi (   ) 
 

Destructor.

Definition at line 44 of file FilelistAppui.cpp.

References iAppContainer.

00045     {
00046     if ( iAppContainer )
00047         {
00048         RemoveFromStack( iAppContainer );
00049         delete iAppContainer;
00050         iAppContainer = NULL;
00051         }
00052    }


Member Function Documentation

void CFilelistAppUi::ConstructL (   ) 
 

Symbian default constructor.

Definition at line 31 of file FilelistAppui.cpp.

References iAppContainer, and CFilelistContainer::NewL().

00032     {
00033     BaseConstructL( CAknAppUi::EAknEnableSkin );
00034     iAppContainer = CFilelistContainer::NewL( ClientRect() );
00035     AddToStackL( iAppContainer );
00036     }

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

From CEikAppUi, takes care of command handling.

Parameters:
aCommand command to be handled

Definition at line 85 of file FilelistAppui.cpp.

References CFilelistContainer::ChangePrivateFolderL(), CFilelistContainer::ChangeProtectedFolderL(), and iAppContainer.

00086     {
00087     switch ( aCommand )
00088         {
00089         case EAknSoftkeyExit:
00090         case EEikCmdExit:
00091             {
00092             Exit();
00093             break;
00094             }
00095         case EFilelistCmdAppPrivFolder1:
00096             {
00097             iAppContainer->ChangePrivateFolderL( EPrivateFolder1 );
00098             break;
00099             }
00100        case EFilelistCmdAppPrivFolder2:
00101             {
00102             iAppContainer->ChangePrivateFolderL( EPrivateFolder2 );
00103             break;
00104             }
00105         case EFilelistCmdAppProtFolder:
00106             {
00107             iAppContainer->ChangeProtectedFolderL();
00108             break;
00109             }
00110         default:
00111             break;      
00112         }
00113     }

TKeyResponse CFilelistAppUi::HandleKeyEventL (  const TKeyEvent &  aKeyEvent,
TEventCode  aType
)  [private, virtual]
 

From CEikAppUi, handles key events.

Parameters:
aKeyEvent Event to handled.
aType Type of the key event.
Returns:
Response code (EKeyWasConsumed, EKeyWasNotConsumed).

Definition at line 74 of file FilelistAppui.cpp.

00076     {
00077     return EKeyWasNotConsumed;
00078     }

void CFilelistAppUi::HandleResourceChangeL (  TInt  aType  )  [private, virtual]
 

From CEikAppUi, handles key events.

Parameters:
aType The type of resources that have changed

Definition at line 120 of file FilelistAppui.cpp.

References iAppContainer.

00121     {
00122     CAknAppUi::HandleResourceChangeL( aType );
00123 
00124     // ADDED FOR SCALABLE UI SUPPORT
00125     // *****************************
00126     if ( aType==KEikDynamicLayoutVariantSwitch )
00127         {
00128         iAppContainer->SetRect( ClientRect() );
00129         }
00130     //Controls derived from CCoeControl, handled in container class
00131     iAppContainer->HandleResourceChange( aType );
00132     }


© Nokia 2006

Back to top