Used to easily play non-graphical input feedbacks.
More...
Inherits QObject.
List of all members.
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:
-
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 |
( |
|
) |
|
Member Function Documentation
Returns the name of the feedback.
- Returns:
- Name of the feedback.
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] |
void MFeedback::setName |
( |
const QString & |
name |
) |
|
Sets the name of the feedback.
- Parameters:
-
| name | Name of the feedback |
Member Data Documentation
Cancel feedback. Used when finger slides off the object, onto an inactive area.
Also used in cases where a Tap turns into another stroke.
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.
Release feedback. Used when finger is released on the object. Indicates that an action was done.