CPbk2AppViewBase Class Reference

class CPbk2AppViewBase : public CAknView

Phonebook 2 application view base. Provides some common application view functionality. All Phonebook 2's application views have to be derived from this class because CPbk2AppUi assumes it.

Inherits from

Public Member Functions
CPbk2AppViewBase ()
~CPbk2AppViewBase ()
IMPORT_C TUid ApplicationUid ()
IMPORT_C void ClosePopup ()
IMPORT_C TInt GetMenuFilteringFlagsL ()
IMPORT_C void LaunchPopupMenuL ( TInt )
IMPORT_C CAknStylusPopUpMenu & LaunchStylusPopupMenu2L ( TInt , const TPoint &)
IMPORT_C void LaunchStylusPopupMenuL ( TInt , const TPoint &)
IMPORT_C CPbk2ViewState * ViewStateLC ()
Protected Member Functions
TAny * AppViewBaseExtension ( TUid )
TInt GetViewSpecificMenuFilteringFlagsL ()
IMPORT_C TBool HandleCommandKeyL (const TKeyEvent &, TEventCode )
IMPORT_C void HandleLongTapEventL (const TPoint &, const TPoint &)
IMPORT_C void HandlePointerEventL (const TPointerEvent &)
Private Member Functions
void CloseStylusPopup ()
void CreatePopupMenuL ( TInt )
void DoLaunchPopupL ( TInt )
void DoLaunchStylusPopupL ( TInt , const TPoint &)
IMPORT_C void Pbk2HandleLongTapEventL (const TPoint &, const TPoint &)
IMPORT_C TBool Pbk2ProcessKeyEventL (const TKeyEvent &, TEventCode )
IMPORT_C void Pbk2ProcessPointerEventL (const TPointerEvent &)
IMPORT_C void ProcessCommandL ( TInt )
Inherited Functions
CAknView::ActivateViewL(const TVwsViewId &)
CAknView::ActivateViewL(const TVwsViewId &,TUid,const TDesC8 &)
CAknView::AknViewActivatedL(const TVwsViewId &,TUid,const TDesC8 &)
CAknView::AknViewDeactivated()
CAknView::AppUi()const
CAknView::BaseConstructL(TInt)
CAknView::CAknView()
CAknView::Cba()const
CAknView::ClientRect()const
CAknView::ConstructMenuAndCbaEarlyL()
CAknView::CreateAndSetToolbarL(TInt)
CAknView::DoActivateL(const TVwsViewId &,TUid,const TDesC8 &)
CAknView::DoDeactivate()
CAknView::HandleCommandL(TInt)
CAknView::HandleForegroundEventL(TBool)
CAknView::HandleStatusPaneSizeChange()
CAknView::HandleViewRectChange()
CAknView::Id()const
CAknView::IsForeground()const
CAknView::MenuBar()const
CAknView::MopNext()
CAknView::MopSupplyObject(TTypeUid)
CAknView::ProcessForegroundEventL(TBool)
CAknView::Redraw()const
CAknView::SaveToolbarStatus(TBool,TBool)
CAknView::SetEmphasis(CCoeControl *,TBool)
CAknView::SetToolbar(CAknToolbar *)
CAknView::ShowToolbarOnViewActivation(TBool)
CAknView::StatusPane()const
CAknView::StopDisplayingMenuBar()
CAknView::StopDisplayingToolbar()
CAknView::Toolbar()const
CAknView::ToolbarShownOnViewActivation()const
CAknView::ViewActivatedL(const TVwsViewId &,TUid,const TDesC8 &)
CAknView::ViewDeactivated()
CAknView::ViewId()const
CAknView::ViewScreenDeviceChangedL()
CAknView::~CAknView()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CEikMenuBar * iPopup
CAknStylusPopUpMenu * iStylusPopup
Inherited Attributes
CAknView::iCoeEnv

Constructor & Destructor Documentation

CPbk2AppViewBase()

IMPORT_C CPbk2AppViewBase ( )

Constructor.

~CPbk2AppViewBase()

IMPORT_C ~CPbk2AppViewBase ( )

Destructor.

Member Functions Documentation

AppViewBaseExtension(TUid)

TAny * AppViewBaseExtension ( TUid ) [protected, inline, virtual]

Returns an extension point for this interface or NULL.

Parameters

TUid

ApplicationUid()

IMPORT_C TUid ApplicationUid ( ) const

Returns Phonebook 2's application uid.

ClosePopup()

IMPORT_C void ClosePopup ( )

Closes PopupMenu

CloseStylusPopup()

void CloseStylusPopup ( ) [private]

CreatePopupMenuL(TInt)

void CreatePopupMenuL ( TInt aResourceId ) [private]

Parameters

TInt aResourceId

DoLaunchPopupL(TInt)

void DoLaunchPopupL ( TInt aResourceId ) [private]

Parameters

TInt aResourceId

DoLaunchStylusPopupL(TInt, const TPoint &)

void DoLaunchStylusPopupL ( TInt aResourceId,
const TPoint & aPoint
) [private]

Parameters

TInt aResourceId
const TPoint & aPoint

GetMenuFilteringFlagsL()

IMPORT_C TInt GetMenuFilteringFlagsL ( ) const

Returns the menu filtering flags for the view.

Pbk2MenuFilteringFlags.hrh for possible flags.

GetViewSpecificMenuFilteringFlagsL()

TInt GetViewSpecificMenuFilteringFlagsL ( ) const [protected, pure virtual]

Gets view specific menu filtering flags.

HandleCommandKeyL(const TKeyEvent &, TEventCode)

IMPORT_C TBool HandleCommandKeyL ( const TKeyEvent & aKeyEvent,
TEventCode aType
) [protected, virtual]

Handles command keys application-side.

CCoeControl::OfferKeyEventL

Parameters

const TKeyEvent & aKeyEvent Key event as in CCoeControl::OfferKeyEventL.
TEventCode aType Key event type as in CCoeControl::OfferKeyEventL.

HandleLongTapEventL(const TPoint &, const TPoint &)

IMPORT_C void HandleLongTapEventL ( const TPoint & aPenEventLocation,
const TPoint & aPenEventScreenLocation
) [protected, virtual]

Handles long tap pointer events.

MAknLongTapDetectorCallBack

Parameters

const TPoint & aPenEventLocation Long tap event location relative to parent control.
const TPoint & aPenEventScreenLocation Long tap event location relative to screen.

HandlePointerEventL(const TPointerEvent &)

IMPORT_C void HandlePointerEventL ( const TPointerEvent & aPointerEvent ) [protected, virtual]

Handles pointer events application-side.

Parameters

const TPointerEvent & aPointerEvent Pointer event.

LaunchPopupMenuL(TInt)

IMPORT_C void LaunchPopupMenuL ( TInt aResourceId )

Creates a pop up menubar of aResourceId. Runs DoLaunchPopupL inside a TRAP.

Parameters

TInt aResourceId Resource id of the popup.

LaunchStylusPopupMenu2L(TInt, const TPoint &)

IMPORT_C CAknStylusPopUpMenu & LaunchStylusPopupMenu2L ( TInt aResourceId,
const TPoint & aPoint
)

Creates a given stylus pop up menu at the given screen coordinates. The only difference with LaunchStylusPopupMenuL is in return value.

Parameters

TInt aResourceId Resource id of the popup.
const TPoint & aPoint The position where stylus was tapped.

LaunchStylusPopupMenuL(TInt, const TPoint &)

IMPORT_C void LaunchStylusPopupMenuL ( TInt aResourceId,
const TPoint & aPoint
)

Creates a given stylus pop up menu at the given screen coordinates.

Parameters

TInt aResourceId Resource id of the popup.
const TPoint & aPoint The position where stylus was tapped.

Pbk2HandleLongTapEventL(const TPoint &, const TPoint &)

IMPORT_C void Pbk2HandleLongTapEventL ( const TPoint & aPenEventLocation,
const TPoint & aPenEventScreenLocation
) [private]

Parameters

const TPoint & aPenEventLocation
const TPoint & aPenEventScreenLocation

Pbk2ProcessKeyEventL(const TKeyEvent &, TEventCode)

IMPORT_C TBool Pbk2ProcessKeyEventL ( const TKeyEvent & aKeyEvent,
TEventCode aType
) [private]

Parameters

const TKeyEvent & aKeyEvent
TEventCode aType

Pbk2ProcessPointerEventL(const TPointerEvent &)

IMPORT_C void Pbk2ProcessPointerEventL ( const TPointerEvent & aPointerEvent ) [private]

Parameters

const TPointerEvent & aPointerEvent

ProcessCommandL(TInt)

IMPORT_C void ProcessCommandL ( TInt aCommand ) [private, virtual]

From MEikMenuObserver . This function processes user commands by handling aCommand values EAknSoftkeyOptions , EAknCmdExit , EEikCmdCanceled and passing the others to HandleCommandL() for sub class to decide the actions.

Parameters

TInt aCommand ID of the command to respond to.

ViewStateLC()

IMPORT_C CPbk2ViewState * ViewStateLC ( ) const [virtual]

Creates and returns an object containing this view's current state, which is used in view switching.

Member Data Documentation

CEikMenuBar * iPopup

CEikMenuBar * iPopup [private]

CAknStylusPopUpMenu * iStylusPopup

CAknStylusPopUpMenu * iStylusPopup [private]