22#ifndef M_TOUCHFEEDBACK_H
23#define M_TOUCHFEEDBACK_H
252 TUint32 aIndex ) = 0;
299 TRect aNewRect ) = 0;
351 TUint32 aIndex ) = 0;
452 TUint32 aIndex ) = 0;
504 TBool aEnableAudio ) = 0;
523 TBool aAudioEnabled ) = 0;
570 const TPointerEvent* aPointerEvent,
572 TTimeIntervalMicroSeconds32 aTimeout ) = 0;
583 TInt aIntensity ) = 0;
644 const TPointerEvent& aPointerEvent ) = 0;
695 const TPointerEvent& aPointerEvent ) = 0;
Contains feedback types used for setting feedback area.
Definition touchfeedbackspec.h:44
This is the Tactile Feedback interface for UI Controls.
Definition touchfeedback.h:63
virtual void RemoveFeedbackArea(const CCoeControl *aControl, TUint32 aIndex)=0
Removes feedback area from the registry.
static IMPORT_C void DestroyInstance()
Destroys the touch feedback instance and clears pointer in thread local storage.
virtual TTouchFeedbackType FeedbackEnabledForDevice()=0
Used to check enabled feedback types for the device.
virtual TInt SetFeedbackArea(const CCoeControl *aControl, TUint32 aIndex, TRect aRect, CFeedbackSpec *aFeedbackSpec)=0
Sets or updates rectangular feedback area to registry.
virtual void SetFeedbackEnabledForThisApp(TBool aVibraEnabled, TBool aAudioEnabled)=0
Used for disabling/enabling audio/vibra feedback in the application.
virtual TInt SetFeedbackArea(const CCoeControl *aControl, TUint32 aIndex, TRect aRect, TTouchLogicalFeedback aFeedbackType, TTouchEventType aEventType)=0
Sets or updates rectangular feedback area to registry.
virtual void InstantFeedback(TTouchLogicalFeedback aType)=0
Gives direct feedback.
virtual void InstantFeedback(const CCoeControl *aControl, TTouchLogicalFeedback aType, TTouchFeedbackType aFeedbackType, const TPointerEvent &aPointerEvent)=0
Gives direct feedback if given control has not disabled it.
virtual TBool FeedbackEnabledForThisApp(TTouchFeedbackType aFeedbackType)=0
Used to check whether audio or vibra feedback is enabled for this application.
virtual void InstantFeedback(const CCoeControl *aControl, TTouchLogicalFeedback aType, const TPointerEvent &aPointerEvent)=0
Gives direct feedback if given control has not disabled it.
static IMPORT_C MTouchFeedback * Instance()
Used for acquiring a pointer to touch feedback instance.
virtual void SetFeedbackEnabledForThisApp(TBool aEnabled)=0
Used for disabling or enabling feedback in the application.
virtual void MoveFeedbackAreaToFirstPriority(const CCoeControl *aControl, TUint32 aIndex)=0
Makes the given feedback area the first priority area in the window where it is located.
virtual void EnableFeedbackForControl(const CCoeControl *aControl, TBool aEnableVibra, TBool aEnableAudio)=0
This function can be used for separately enabling or disabling audio- and vibra feedback for the give...
virtual void FlushRegistryUpdates()=0
This function forces all registry changes made on client side to be sent to server side immediately.
virtual void StopFeedback(const CCoeControl *aControl)=0
This function stops continuous feedback.
virtual void InstantFeedback(const CCoeControl *aControl, TTouchLogicalFeedback aType)=0
Gives direct feedback if given control has not disabled it.
virtual void ChangeFeedbackType(const CCoeControl *aControl, TUint32 aIndex, TTouchLogicalFeedback aNewType)=0
Changes feedback type in the registry.
virtual TInt SetFeedbackEnabledForDevice(TTouchFeedbackType aFeedbackType)=0
This function enables or disables audio or/and vibra feedback in whole device.
virtual void StartFeedback(const CCoeControl *aControl, TTouchContinuousFeedback aType, const TPointerEvent *aPointerEvent, TInt aIntensity, TTimeIntervalMicroSeconds32 aTimeout)=0
Starts continuous feedback if given control has not disabled it.
virtual void InstantFeedback(TTouchLogicalFeedback aType, TTouchFeedbackType aFeedbackType)=0
Gives direct feedback.
virtual TBool TouchFeedbackSupported()=0
This function can be used to check, whether touch feedback is supported at all in the device.
virtual void EnableFeedbackForControl(const CCoeControl *aControl, TBool aEnable)=0
This function enables or disables all feedback areas registered for the given control.
virtual TBool ControlHasFeedback(const CCoeControl *aControl)=0
Can be used for querying, whether given control has any feedback areas registered.
static IMPORT_C MTouchFeedback * CreateInstanceL()
Creates a new touch feedback instance.
virtual void RemoveFeedbackForControl(const CCoeControl *aControl)=0
Removes all feedback areas of specified control from registry.
virtual void ChangeFeedbackArea(const CCoeControl *aControl, TUint32 aIndex, TRect aNewRect)=0
Changes feedback area in the registry.
virtual TBool FeedbackEnabledForThisApp()=0
Used to check whether feedback is enabled for this application.
virtual void ModifyFeedback(const CCoeControl *aControl, TInt aIntensity)=0
This function modifies intensity of continuous feedback on the fly.
virtual TBool ControlHasFeedback(const CCoeControl *aControl, TUint32 aIndex)=0
Can be used for querying, whether given control has a feedback area defined with given index number.
TTouchContinuousFeedback
Logical feedback types for producing continuous feedback.
Definition touchlogicalfeedback.h:109
TTouchEventType
Pointer event types, that can be used when registering areas to registry.
Definition touchlogicalfeedback.h:30
TTouchLogicalFeedback
Logical feedback types, that can be used when producing direct feedback, or when registering areas to...
Definition touchlogicalfeedback.h:67
TTouchFeedbackType
Physical feedback types as bitmask.
Definition touchlogicalfeedback.h:122