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 TUidApplicationUid()
IMPORT_C voidClosePopup()
IMPORT_C TIntGetMenuFilteringFlagsL()
IMPORT_C voidLaunchPopupMenuL(TInt)
IMPORT_C CAknStylusPopUpMenu &LaunchStylusPopupMenu2L(TInt, const TPoint &)
IMPORT_C voidLaunchStylusPopupMenuL(TInt, const TPoint &)
IMPORT_C CPbk2ViewState *ViewStateLC()
Protected Member Functions
TAny *AppViewBaseExtension(TUid)
TInt GetViewSpecificMenuFilteringFlagsL()
IMPORT_C TBoolHandleCommandKeyL(const TKeyEvent &, TEventCode)
IMPORT_C voidHandleLongTapEventL(const TPoint &, const TPoint &)
IMPORT_C voidHandlePointerEventL(const TPointerEvent &)
Private Member Functions
voidCloseStylusPopup()
voidCreatePopupMenuL(TInt)
voidDoLaunchPopupL(TInt)
voidDoLaunchStylusPopupL(TInt, const TPoint &)
IMPORT_C voidPbk2HandleLongTapEventL(const TPoint &, const TPoint &)
IMPORT_C TBoolPbk2ProcessKeyEventL(const TKeyEvent &, TEventCode)
IMPORT_C voidPbk2ProcessPointerEventL(const TPointerEvent &)
IMPORT_C voidProcessCommandL(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_CCPbk2AppViewBase()

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 TUidApplicationUid()const

Returns Phonebook 2's application uid.

ClosePopup()

IMPORT_C voidClosePopup()

Closes PopupMenu

CloseStylusPopup()

voidCloseStylusPopup()[private]

CreatePopupMenuL(TInt)

voidCreatePopupMenuL(TIntaResourceId)[private]

Parameters

TInt aResourceId

DoLaunchPopupL(TInt)

voidDoLaunchPopupL(TIntaResourceId)[private]

Parameters

TInt aResourceId

DoLaunchStylusPopupL(TInt, const TPoint &)

voidDoLaunchStylusPopupL(TIntaResourceId,
const TPoint &aPoint
)[private]

Parameters

TInt aResourceId
const TPoint & aPoint

GetMenuFilteringFlagsL()

IMPORT_C TIntGetMenuFilteringFlagsL()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 TBoolHandleCommandKeyL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[protected, virtual]

Handles command keys application-side.

CCoeControl::OfferKeyEventL

Parameters

const TKeyEvent & aKeyEventKey event as in CCoeControl::OfferKeyEventL.
TEventCode aTypeKey event type as in CCoeControl::OfferKeyEventL.

HandleLongTapEventL(const TPoint &, const TPoint &)

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

Handles long tap pointer events.

MAknLongTapDetectorCallBack

Parameters

const TPoint & aPenEventLocationLong tap event location relative to parent control.
const TPoint & aPenEventScreenLocationLong tap event location relative to screen.

HandlePointerEventL(const TPointerEvent &)

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

Handles pointer events application-side.

Parameters

const TPointerEvent & aPointerEventPointer event.

LaunchPopupMenuL(TInt)

IMPORT_C voidLaunchPopupMenuL(TIntaResourceId)

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

Parameters

TInt aResourceIdResource id of the popup.

LaunchStylusPopupMenu2L(TInt, const TPoint &)

IMPORT_C CAknStylusPopUpMenu &LaunchStylusPopupMenu2L(TIntaResourceId,
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 aResourceIdResource id of the popup.
const TPoint & aPointThe position where stylus was tapped.

LaunchStylusPopupMenuL(TInt, const TPoint &)

IMPORT_C voidLaunchStylusPopupMenuL(TIntaResourceId,
const TPoint &aPoint
)

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

Parameters

TInt aResourceIdResource id of the popup.
const TPoint & aPointThe position where stylus was tapped.

Pbk2HandleLongTapEventL(const TPoint &, const TPoint &)

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

Parameters

const TPoint & aPenEventLocation
const TPoint & aPenEventScreenLocation

Pbk2ProcessKeyEventL(const TKeyEvent &, TEventCode)

IMPORT_C TBoolPbk2ProcessKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[private]

Parameters

const TKeyEvent & aKeyEvent
TEventCode aType

Pbk2ProcessPointerEventL(const TPointerEvent &)

IMPORT_C voidPbk2ProcessPointerEventL(const TPointerEvent &aPointerEvent)[private]

Parameters

const TPointerEvent & aPointerEvent

ProcessCommandL(TInt)

IMPORT_C voidProcessCommandL(TIntaCommand)[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 aCommandID 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]