S60 3rd Edition SDK for Symbian OS
Example Applications Guide

CIsvTelCallAppView Class Reference

#include <IsvTelCallAppView.h>

List of all members.

Public Member Functions

 CIsvTelCallAppView ()
void ConstructL ()
virtual ~CIsvTelCallAppView ()
CAknTitlePane * GetTitlePaneL ()
TUid Id () const
void HandleCommandL (TInt aCommand)

Static Public Member Functions

static CIsvTelCallAppView * NewL ()

Private Member Functions

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

Private Attributes

CIsvTelCallAppContainer * iContainer


Detailed Description

CIsvTelCallAppView view class.

Definition at line 33 of file IsvTelCallAppView.h.


Constructor & Destructor Documentation

CIsvTelCallAppView::CIsvTelCallAppView (   ) 
 

Default constructor.

Definition at line 40 of file IsvTelCallAppView.cpp.

00041 :   iContainer( NULL )
00042     {
00043     }

CIsvTelCallAppView::~CIsvTelCallAppView (   )  [virtual]
 

Destructor.

Definition at line 61 of file IsvTelCallAppView.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

static CIsvTelCallAppView* CIsvTelCallAppView::NewL (   )  [static]
 

Two-phased constructor.

Parameters:
aNotify Reference to an object implementing the MIsvTelCallAppTelephonyNotify interface

void CIsvTelCallAppView::ConstructL (   ) 
 

EPOC constructor.

Definition at line 50 of file IsvTelCallAppView.cpp.

References iContainer.

00051     {
00052     BaseConstructL( R_ISVTELCALLAPP_VIEW );
00053     iContainer = new( ELeave ) CIsvTelCallAppContainer( this );
00054     }

TUid CIsvTelCallAppView::Id (   )  const
 

From CAknView, Id. Returns the ID of view.

Returns:
The ID of view.

Definition at line 77 of file IsvTelCallAppView.cpp.

00078     {
00079     return KViewId;
00080     }

void CIsvTelCallAppView::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 IsvTelCallAppView.cpp.

References CIsvTelCallAppContainer::DisplayFormL(), and iContainer.

00088     {
00089     switch ( aCommand )
00090         {
00091         //case EAknSoftkeyBack and EAknCmdExit are handled by the AppUi class.
00092         case EIsvTelCallAppCmdLaunchPhOps:
00093                 {
00094                 iContainer->DisplayFormL( R_ISVTELCALLAPP_NAVIPANE_DIALOG,
00095                 EIsvTelCallAppPageCtrlIdPagePhone1);
00096                 }
00097             break;
00098         default:
00099             break;
00100         }
00101     }

void CIsvTelCallAppView::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 122 of file IsvTelCallAppView.cpp.

References iContainer.

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

void CIsvTelCallAppView::DoDeactivate (   )  [private]
 

From CAknView, DoDeactivate. Deletes the Container class object.

Definition at line 142 of file IsvTelCallAppView.cpp.

References iContainer.

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


© Nokia 2006

Back to top