RTactileFeedback Class Reference

class RTactileFeedback : public RSessionBase

Client interface to tactile feedback server.

tactilefeedbackresolver.lib
Since
S60 5.2

Inherits from

Public Member Functions
RTactileFeedback()
IMPORT_C voidClose()
IMPORT_C TIntConnect()
IMPORT_C voidFeedbackEnabledForDevice(TTouchFeedbackType &)
IMPORT_C voidModifyFeedback(TInt)
IMPORT_C voidModifyPreviewFeedback(TInt)
IMPORT_C voidPlayFeedback(TTouchLogicalFeedback, TBool, TBool)
IMPORT_C voidPlayPreviewFeedback(TInt, TTouchLogicalFeedback, TTouchFeedbackType)
IMPORT_C TIntSetFeedbackEnabledForDevice(TTouchFeedbackType)
IMPORT_C voidStartFeedback(TTouchContinuousFeedback, TInt)
IMPORT_C voidStartPreviewFeedback(TInt, TTouchContinuousFeedback, TInt, TTouchFeedbackType)
IMPORT_C voidStopFeedback()
IMPORT_C voidStopPreviewFeedback()
Private Member Functions
TVersion Version()
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
CThreadPlayer *iThread
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RTactileFeedback()

IMPORT_CRTactileFeedback()
C++ default constructor.
Since
S60 5.2

Member Functions Documentation

Close()

IMPORT_C voidClose()
Closes connection to tactile feedback server.
Since
S60 5.2

Connect()

IMPORT_C TIntConnect()
Creates connection to tactile feedback server.
Since
S60 5.2

FeedbackEnabledForDevice(TTouchFeedbackType &)

IMPORT_C voidFeedbackEnabledForDevice(TTouchFeedbackType &aFeedbackEnabled)
Used to check enabled feedback types for the device.
Since
S60 5.2

Parameters

TTouchFeedbackType & aFeedbackEnabled- Enabled feedback types are returned to this parameter as a bitmask.

ModifyFeedback(TInt)

IMPORT_C voidModifyFeedback(TIntaIntensity)
Modifies the intensity of ongoing continuous feedback.
Since
S60 5.2

Parameters

TInt aIntensity- New intensity for continuous feedback. Value range for intensity is 0-100%.

ModifyPreviewFeedback(TInt)

IMPORT_C voidModifyPreviewFeedback(TIntaIntensity)

Modifies the intensity of ongoing preview of continuous feedback.

Since
S60 5.2

Parameters

TInt aIntensity- New intensity for continuous feedback. Value range for intensity is 0-100% from basic strength.

PlayFeedback(TTouchLogicalFeedback, TBool, TBool)

IMPORT_C voidPlayFeedback(TTouchLogicalFeedbackaFeedbackType,
TBoolaPlayVibra,
TBoolaPlayAudio
)

Produces immediately physical feedback according to given logical feedback type.

Since
S60 5.2

Parameters

TTouchLogicalFeedback aFeedbackType- Logical feedback type.
TBool aPlayVibra- ETrue to play vibra feedback, EFalse if vibra feedback is disabled.
TBool aPlayAudio- ETrue to play audio feedback, EFalse if audio feedback is disabled.

PlayPreviewFeedback(TInt, TTouchLogicalFeedback, TTouchFeedbackType)

IMPORT_C voidPlayPreviewFeedback(TIntaLevel,
TTouchLogicalFeedbackaFeedback,
TTouchFeedbackTypeaType
)

Produces immediate physical feedback according to given logical feedback type and given level.

Maximum feedback level depends on used player and it is defined in Central Repository settings (KTactileFeedbackVibraLevels & KTactileFeedbackAudioLevels).

UID for tactile feedback settings is: KCRUidTactileFeedback = 0x2000B494;

Since
S60 5.2

Parameters

TInt aLevel- Level value defines the strength of playing effect. Maximum level value is player dependent.
TTouchLogicalFeedback aFeedback
TTouchFeedbackType aType- Type of feedback to be previewed. Feedback type in preview mode must be either audio or haptics, not both.

SetFeedbackEnabledForDevice(TTouchFeedbackType)

IMPORT_C TIntSetFeedbackEnabledForDevice(TTouchFeedbackTypeaFeedbackType)

Enables or disables audio or/and vibra feedback in whole device.

Since
S60 5.2

Parameters

TTouchFeedbackType aFeedbackType- Feedback types to be enabled/disabled defined as a bitmask combination of enumeration items from TTouchFeedbackType.

StartFeedback(TTouchContinuousFeedback, TInt)

IMPORT_C voidStartFeedback(TTouchContinuousFeedbackaType,
TIntaIntensity
)

Starts playing continuous feedback.

Since
S60 5.2

Parameters

TTouchContinuousFeedback aType- Type of continuous feedback to be played.
TInt aIntensity- Intensity of continuous feedback. Value range for intensity is 0-100%.

StartPreviewFeedback(TInt, TTouchContinuousFeedback, TInt, TTouchFeedbackType)

IMPORT_C voidStartPreviewFeedback(TIntaLevel,
TTouchContinuousFeedbackaFeedback,
TIntaIntensity,
TTouchFeedbackTypeaType
)

Starts playing continuous feedback of given type on given level.

Maximum feedback level depends on used player and it is defined in Central Repository settings (KTactileFeedbackVibraLevels & KTactileFeedbackAudioLevels).

UID for tactile feedback settings is: KCRUidTactileFeedback = 0x2000B494;

Since
S60 5.2

Parameters

TInt aLevel- Level value defines the strength of playing effect. Maximum level value is player dependent.
TTouchContinuousFeedback aFeedback- Type of continuous feedback to be played.
TInt aIntensity- Intensity of continuous feedback. Value range for intensity is 0-100% from basic strength (see aLevel).
TTouchFeedbackType aType- Type of feedback to be previewed. Feedback type in preview mode must be either audio or haptics, not both.

StopFeedback()

IMPORT_C voidStopFeedback()

Stops the ongoing feedback.

Since
S60 5.2

StopPreviewFeedback()

IMPORT_C voidStopPreviewFeedback()

Stops the ongoing preview of continuous feedback.

Since
S60 5.2

Version()

TVersion Version()const [private]

Returns the version of Tactile Feedback Server.

Member Data Documentation

CThreadPlayer * iThread

CThreadPlayer *iThread[private]

Instance of a class, which creates a new thread for the tactile feedback server Own.