Home · All Classes · Main Classes · Deprecated
Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes

MFeedback Class Reference

Used to easily play non-graphical input feedbacks. More...

Inherits QObject.

List of all members.

Public Slots

void play () const

Public Member Functions

 MFeedback (QObject *parent=0)
 MFeedback (const MFeedback &)
 MFeedback (const QString &name, QObject *parent=0)
MFeedbackoperator= (const MFeedback &other)
 ~MFeedback ()
void setName (const QString &name)
QString name () const

Static Public Member Functions

static void play (const QString &feedbackName)

Static Public Attributes

static const QString Press = "press"
static const QString Release = "release"
static const QString Cancel = "cancel"

Protected Attributes

MFeedbackPrivate *const d_ptr

Detailed Description

Used to easily play non-graphical input feedbacks.

This class can be used to play non-graphical input feedbacks such as vibra, audio or tactile effects. MFeedback has a name which is used to play the correct feedback(s) when play() function is called.

See also:
MFeedbackPlayer

Constructor & Destructor Documentation

MFeedback::MFeedback ( QObject parent = 0  )  [explicit]

Default constructor.

Creates a MFeedback with no name.

Note:
Calling play() for MFeedback with no name causes no feedback to be played.
Parameters:
parent Parent object
MFeedback::MFeedback ( const MFeedback feedback  ) 

Copy constructor.

Note:
The underlying QObject is not copied, an empty QObject is created instead.
MFeedback::MFeedback ( const QString name,
QObject parent = 0 
) [explicit]

Constructor.

Parameters:
name Name of the feedback
parent Parent object
MFeedback::~MFeedback (  ) 

Destructor.


Member Function Documentation

QString MFeedback::name (  )  const

Returns the name of the feedback.

Returns:
Name of the feedback.
MFeedback & MFeedback::operator= ( const MFeedback other  ) 

Assigment operator.

Note:
The underlying QObject is not copied, an empty QObject is created instead.
void MFeedback::play ( const QString feedbackName  )  [static]

Plays a feedback.

Parameters:
feedbackName Name of the feedback to be played
void MFeedback::play (  )  const [slot]

Plays the feedback.

void MFeedback::setName ( const QString name  ) 

Sets the name of the feedback.

Parameters:
name Name of the feedback

Member Data Documentation

const QString MFeedback::Cancel = "cancel" [static]

Cancel feedback. Used when finger slides off the object, onto an inactive area.

Also used in cases where a Tap turns into another stroke.

MFeedbackPrivate* const MFeedback::d_ptr [protected]
const QString MFeedback::Press = "press" [static]

Press feedback. Used when the user presses on an object. It is also used when the user presses off an object, but slides the finger onto one.

const QString MFeedback::Release = "release" [static]

Release feedback. Used when finger is released on the object. Indicates that an action was done.


Copyright © 2010 Nokia Corporation
MeeGo Touch