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 S60 5.2

Inherits from

Constructor & Destructor Documentation

CFeedbackSpec()

CFeedbackSpec()[private]

Constructor.

~CFeedbackSpec()

~CFeedbackSpec()[virtual]

Destructor.

S60 5.2

Member Functions Documentation

AddFeedback(TTouchEventType, TTouchLogicalFeedback)

IMPORT_C TIntAddFeedback(TTouchEventTypeaEventType,
TTouchLogicalFeedbackaFeedback
)

Adds event/feedback type pair to feedback spec

S60 5.2

KErrNone, or one of standard Symbian OS error codes.

Parameters

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

AddFeedback(TTouchEventType, TTouchLogicalFeedback, TTouchFeedbackType)

IMPORT_C TIntAddFeedback(TTouchEventTypeaEventType,
TTouchLogicalFeedbackaFeedback,
TTouchFeedbackTypeaFeedbackType
)

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

S60 5.2

KErrNone, or one of standard Symbian OS error codes.

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 voidGetFeedbackSpec(RArray< TTactileFbItem > &aArray)

Gets defined event/feedback type pairs

S60 5.2

Parameters

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

New()

IMPORT_C CFeedbackSpec *New()[static]

Instantiation method.

S60 5.2

New CFeedbackSpec instance.

Member Data Documentation

RArray< TTactileFbItem > iFbArray

RArray< TTactileFbItem >iFbArray[private]

Array for event type/feedback type pairs Own.