CTouchFeedbackAdaptation Class Reference

class CTouchFeedbackAdaptation : public CBase

The class for instantiating and accessing Tactile Feedback Client API.

Instance of this class should be created at construction phase of every new application. This interface is ment to be used only by the AppUI class for contructing and destroying the Client API, and for informing the client about layout changes.

touchfeedback.lib
Since
S60 v5.0

Inherits from

  • CTouchFeedbackAdaptation

Constructor & Destructor Documentation

CTouchFeedbackAdaptation()

CTouchFeedbackAdaptation()[private]

~CTouchFeedbackAdaptation()

~CTouchFeedbackAdaptation()[virtual]

Member Functions Documentation

ConstructL()

voidConstructL()[private]

ControlVisibilityChanged(const CCoeControl *)

IMPORT_C voidControlVisibilityChanged(const CCoeControl *aControl)

Deprecated. This is still in place for keeping the .def -file unchanged.

Parameters

const CCoeControl * aControl

CreateInstanceL()

MTouchFeedback *CreateInstanceL()[static]

DestroyInstance()

voidDestroyInstance()[static]

GetInstance()

MTouchFeedback *GetInstance()[static]

HandleControlStateChange(CCoeControl *, TCoeState)

TInt HandleControlStateChange(CCoeControl *aControl,
TCoeStateaState
)

This is implemented for getting notificatons when given control's state (i.e. visiblity or dimming status) has been changed. This way Tactile FW knows to disable or enable the feedback for that control again.

Parameters

CCoeControl * aControl- Pointer to the control, which visiblity or dimming status has changed.
TCoeState aState- Can be used for knowing if it was dimming or visibility status that changed.

LayoutChanged()

IMPORT_C voidLayoutChanged()

This should be called by the application framework for informing that current layout has been changed. This way Tactile FW can disable all feedback areas in those layouts, where pen usage is not enabled (direct feedback is on UI controls' responsibility).

MopSupplyObject(TTypeUid)

TTypeUid::Ptr MopSupplyObject(TTypeUidaId)

We have to implement this because it is pure virtual in MObjectProvider, but we always return TTypeUid::Null.

Parameters

TTypeUid aId- Encapsulates the Uid that identifies the type of object required. Ignored in this class.

NewL()

IMPORT_C CTouchFeedbackAdaptation *NewL()[static]

Instantiation method.

One should not attempt to build more than one instance in each application process.

Member Data Documentation

CTouchFeedbackImpl * iTouchFeedback

CTouchFeedbackImpl *iTouchFeedback[private]

The actual feedback instance. Own.