S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CIsvTelInfoAppView Class Reference

#include <IsvTelInfoAppView.h>

List of all members.

Public Member Functions

 CIsvTelInfoAppView ()
void ConstructL ()
virtual ~CIsvTelInfoAppView ()
CAknTitlePane * GetTitlePaneL ()
TStreamId StoreL (CStreamStore &aStore) const
void RestoreL (const CStreamStore &aStore, const TStreamId aStreamId)
TUid Id () const
void HandleCommandL (TInt aCommand)

Private Member Functions

void DoActivateL (const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage)
void DoDeactivate ()

Private Attributes

CIsvTelInfoAppContainer * iContainer


Detailed Description

CIsvTelInfoAppView view class.

Definition at line 33 of file IsvTelInfoAppView.h.


Constructor & Destructor Documentation

CIsvTelInfoAppView::CIsvTelInfoAppView (   ) 
 

Default constructor.

Definition at line 40 of file IsvTelInfoAppView.cpp.

00041     :   iContainer( NULL )
00042     {
00043     }

CIsvTelInfoAppView::~CIsvTelInfoAppView (   )  [virtual]
 

Destructor.

Definition at line 61 of file IsvTelInfoAppView.cpp.

References iContainer.

00062     {
00063     // Deletes the container class object.
00064     if ( iContainer )
00065         {
00066         // Removes container from view control stack.
00067         AppUi()->RemoveFromStack( iContainer );
00068         }
00069     delete iContainer;
00070     }


Member Function Documentation

void CIsvTelInfoAppView::ConstructL (   ) 
 

EPOC constructor.

Definition at line 50 of file IsvTelInfoAppView.cpp.

References iContainer.

00051     {
00052     BaseConstructL( R_ISVTELINFOAPP_VIEW );
00053     iContainer = new( ELeave ) CIsvTelInfoAppContainer( this );
00054     }

TStreamId CIsvTelInfoAppView::StoreL (  CStreamStore &  aStore  )  const
 

StoreL called from AppUi class

Parameters:
aStore Reference to a stream store
Returns:
Returns the Stream Id

void CIsvTelInfoAppView::RestoreL (  const CStreamStore &  aStore,
const TStreamId  aStreamId
) 
 

RestoreL called from AppUi class

Parameters:
aStore Reference to a stream store
aStreamId Reference to a stream id

TUid CIsvTelInfoAppView::Id (   )  const
 

From CAknView, Id. Returns the ID of view.

Returns:
The ID of view.

Definition at line 77 of file IsvTelInfoAppView.cpp.

00078     {
00079     return KViewId;
00080     }

void CIsvTelInfoAppView::HandleCommandL (  TInt  aCommand  ) 
 

From CAknView, HandleCommandL. handles the commands. if the command is command which is require to display outline-screen, the command is reported to container class.

Parameters:
aCommand Command to be handled.

Definition at line 87 of file IsvTelInfoAppView.cpp.

References CIsvTelInfoAppContainer::DisplayFormL(), and iContainer.

00088     {
00089     switch ( aCommand )
00090         {
00091         /*case EAknSoftkeyBack and EAknCmdExitare handled by the AppUi class.*/        
00092         case EIsvTelInfoAppCmdLaunchPhOps:
00093             iContainer->DisplayFormL( R_ISVTELINFOAPP_NAVIPANE_DIALOG,
00094                 EIsvTelInfoAppPageCtrlIdPagePhoneInfo);
00095             break;
00096         default:
00097             break;
00098         }
00099     }

void CIsvTelInfoAppView::DoActivateL (  const TVwsViewId &  aPrevViewId,
TUid  aCustomMessageId,
const TDesC8 &  aCustomMessage
)  [private]
 

From CAknView, DoActivateL. Creates the Container class object.

Parameters:
aPrevViewId aPrevViewId is not used.
aCustomMessageId aCustomMessageId is not used.
aCustomMessage aCustomMessage is not used.

Definition at line 119 of file IsvTelInfoAppView.cpp.

References iContainer.

00123     {
00124     // Creates container object.
00125     if ( iContainer )
00126         {
00127         iContainer->SetMopParent(this);
00128         iContainer->ConstructL( ClientRect() );
00129         // Adds container to view control stack.
00130         AppUi()->AddToStackL( *this, iContainer );
00131         }
00132     }

void CIsvTelInfoAppView::DoDeactivate (   )  [private]
 

From CAknView, DoDeactivate. Deletes the Container class object.

Definition at line 139 of file IsvTelInfoAppView.cpp.

References iContainer.

00140     {
00141     // Deletes the container class object.
00142     if ( iContainer )
00143         {
00144         // Removes container from view control stack.
00145         AppUi()->RemoveFromStack( iContainer );
00146         delete iContainer;
00147         iContainer = NULL;
00148         }
00149     }


© Nokia 2006

Back to top