CFeedbackSpec Class Reference

class CFeedbackSpec : public CBase

Contains feedback types used for setting feedback area

This class acts as container for event/feedback type pairs. These pairs define what kind of feedback is producent when area is touched.

touchfeedback.lib
Since
S60 5.2

Inherits from

Constructor & Destructor Documentation

CFeedbackSpec()

CFeedbackSpec ( ) [private]

Constructor.

~CFeedbackSpec()

~CFeedbackSpec ( ) [virtual]

Destructor.

Since
S60 5.2

Member Functions Documentation

AddFeedback(TTouchEventType, TTouchLogicalFeedback)

IMPORT_C TInt AddFeedback ( TTouchEventType aEventType,
TTouchLogicalFeedback aFeedback
)

Adds event/feedback type pair to feedback spec

Since
S60 5.2

Parameters

TTouchEventType aEventType - Touch event type.
TTouchLogicalFeedback aFeedback - Logical feedback type.

AddFeedback(TTouchEventType, TTouchLogicalFeedback, TTouchFeedbackType)

IMPORT_C TInt AddFeedback ( TTouchEventType aEventType,
TTouchLogicalFeedback aFeedback,
TTouchFeedbackType aFeedbackType
)

Adds event/feedback type pair to feedback spec. Using this overload it is possible to define only one feedback type (vibra/audio) for event.

Since
S60 5.2

Parameters

TTouchEventType aEventType - Touch event type.
TTouchLogicalFeedback aFeedback - Logical feedback type.
TTouchFeedbackType aFeedbackType - Bitmask to define feedback type (vibra/audio).

GetFeedbackSpec(RArray< TTactileFbItem > &)

IMPORT_C void GetFeedbackSpec ( RArray < TTactileFbItem > & aArray )

Gets defined event/feedback type pairs

Since
S60 5.2

Parameters

RArray < TTactileFbItem > & aArray - Event/feedback type pairs is returned here.

New()

IMPORT_C CFeedbackSpec * New ( ) [static]

Instantiation method.

Since
S60 5.2

Member Data Documentation

RArray< TTactileFbItem > iFbArray

RArray < TTactileFbItem > iFbArray [private]

Array for event type/feedback type pairs Own.