CAknCcpuSupport Class Reference

API published in: S60 1st Ed

Link against: avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib form.lib

Capability Information

Required Capabilities

None


#include <eikccpu.h>

Inherits CAknControl.


Detailed Description

Cut, copy, paste and undo support class.

Takes care of CBA handling and menu command processing when FEP instructs this control to activate the commands for ccpu operations.


Public Member Functions

IMPORT_C  CAknCcpuSupport (MEikCcpuEditor *aEditor)
  Constructor.
IMPORT_C  ~CAknCcpuSupport ()
  Destructor.
IMPORT_C void  ConstructL ()
  2nd phase constructor.
IMPORT_C void  HandleSelectionChangeL ()
  Updates the CBA labels according to selection and clipboard contents.
IMPORT_C void  HandleFocusChangeL ()
  Updates the CBA labels according to editor focus state.
IMPORT_C TKeyResponse  OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)
  Responds to key presses.
IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  From CCoeControl.
IMPORT_C void  DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane)
  From MEikMenuObserver.
IMPORT_C void  ProcessCommandL (TInt aCommandId)
  From MEikCommandObserver.

Constructor & Destructor Documentation

IMPORT_C CAknCcpuSupport::CAknCcpuSupport MEikCcpuEditor aEditor  ) 
 

Constructor.

ConstructL() must be called after a call to this function.

Parameters:
aEditor  A pointer to the editor implementing the MEikCcpuEditor interface.
IMPORT_C CAknCcpuSupport::~CAknCcpuSupport  ) 
 

Destructor.


Member Function Documentation

IMPORT_C void CAknCcpuSupport::ConstructL  ) 
 

2nd phase constructor.

Adds this control to the control stack.

IMPORT_C void CAknCcpuSupport::DynInitMenuPaneL TInt  aResourceId,
CEikMenuPane aMenuPane
 

From MEikMenuObserver.

Dynamically initialises a menu pane.

Parameters:
aResourceId  Resource ID of the menu.
aMenuPane  The in-memory representation of the menu pane.
IMPORT_C void CAknCcpuSupport::HandleFocusChangeL  ) 
 

Updates the CBA labels according to editor focus state.

IMPORT_C void CAknCcpuSupport::HandlePointerEventL const TPointerEvent &  aPointerEvent  ) 
 

From CCoeControl.

Handles pointer events.

Parameters:
aPointerEvent  The pointer event.
IMPORT_C void CAknCcpuSupport::HandleSelectionChangeL  ) 
 

Updates the CBA labels according to selection and clipboard contents.

IMPORT_C TKeyResponse CAknCcpuSupport::OfferKeyEventL const TKeyEvent &  aKeyEvent,
TEventCode  aType
 

Responds to key presses.

Overrides CCoeControl::OfferKeyEventL().

Parameters:
aKeyEvent  The key event.
aType  Not used.
Returns:
Indicates whether or not the key event was consumed.
IMPORT_C void CAknCcpuSupport::ProcessCommandL TInt  aCommandId  ) 
 

From MEikCommandObserver.

Processes user commands.

Parameters:
aCommandId  ID of the command to respond to.

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top