#include <mw/touchfeedbackspec.h>
class CFeedbackSpec : public CBase |
Public Member Functions | |
---|---|
virtual | ~CFeedbackSpec() |
IMPORT_C TInt | AddFeedback(TTouchEventType, TTouchLogicalFeedback) |
IMPORT_C TInt | AddFeedback(TTouchEventType, TTouchLogicalFeedback, TTouchFeedbackType) |
IMPORT_C void | GetFeedbackSpec(RArray< TTactileFbItem > &) |
IMPORT_C CFeedbackSpec * | New() |
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.
IMPORT_C TInt | AddFeedback | ( | TTouchEventType | aEventType, |
TTouchLogicalFeedback | aFeedback | |||
) |
Adds event/feedback type pair to feedback spec
Parameter | Description |
---|---|
aEventType | - Touch event type. |
aFeedback | - Logical feedback type. |
Returns: KErrNone, or one of standard Symbian OS error codes.
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.
Parameter | Description |
---|---|
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.
IMPORT_C void | GetFeedbackSpec | ( | RArray< TTactileFbItem > & | aArray | ) |
Gets defined event/feedback type pairs
Parameter | Description |
---|---|
aArray | - Event/feedback type pairs is returned here. |
IMPORT_C CFeedbackSpec * | New | ( | ) | [static] |
Instantiation method.
Returns: New CFeedbackSpec instance.