CFeedbackSpec Class Reference

#include <mw/touchfeedbackspec.h>

Link against: touchfeedback.lib

class CFeedbackSpec : public CBase

Inherits from

  • CFeedbackSpec

    Detailed Description

    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.

    Since
    S60 5.2

    Constructor & Destructor Documentation

    ~CFeedbackSpec ( )

    ~CFeedbackSpec()[virtual]

    Destructor.

    Since
    S60 5.2

    Member Function Documentation

    AddFeedback ( TTouchEventType, TTouchLogicalFeedback )

    IMPORT_C TIntAddFeedback(TTouchEventTypeaEventType,
    TTouchLogicalFeedbackaFeedback
    )

    Adds event/feedback type pair to feedback spec

    Since
    S60 5.2
    ParameterDescription
    aEventType- Touch event type.
    aFeedback- Logical feedback type.

    Returns: KErrNone, or one of standard Symbian OS error codes.

    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.

    Since
    S60 5.2
    ParameterDescription
    aEventType- Touch event type.
    aFeedback- Logical feedback type.
    aFeedbackType- Bitmask to define feedback type (vibra/audio).

    Returns: KErrNone, or one of standard Symbian OS error codes.

    GetFeedbackSpec ( RArray< TTactileFbItem > & )

    IMPORT_C voidGetFeedbackSpec(RArray< TTactileFbItem > &aArray)

    Gets defined event/feedback type pairs

    Since
    S60 5.2
    ParameterDescription
    aArray- Event/feedback type pairs is returned here.

    New ( )

    IMPORT_C CFeedbackSpec *New()[static]

    Instantiation method.

    Since
    S60 5.2

    Returns: New CFeedbackSpec instance.