Maliit Plugins  0.92.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Private Member Functions | Private Attributes
MaliitKeyboard::SoundFeedback Class Reference

#include <soundfeedback.h>

Inheritance diagram for MaliitKeyboard::SoundFeedback:
MaliitKeyboard::AbstractFeedback

List of all members.

Public Member Functions

 SoundFeedback (QObject *parent=0)
virtual ~SoundFeedback ()
virtual void setStyle (const SharedStyle &style)
 Sets the shared Style instance.
- Public Member Functions inherited from MaliitKeyboard::AbstractFeedback
 AbstractFeedback (QObject *parent=0)
virtual ~AbstractFeedback ()=0
Q_SLOT void onKeyPressed ()
 Triggers feedback by calling playPressFeedback().
Q_SLOT void onKeyReleased ()
 Triggers feedback by calling playReleaseFeedback().
Q_SLOT void onLayoutChanged ()
 Triggers feedback by calling playLayoutChangeFeedback().
Q_SLOT void onKeyboardHidden ()
 Triggers feedback by calling playKeyboardHideFeedback().

Private Member Functions

virtual void playPressFeedback ()
 Plays feedback when pressing a key.
virtual void playReleaseFeedback ()
 Plays feedback when releasing a key.
virtual void playLayoutChangeFeedback ()
 Plays feedback when changing a keyboard layout.
virtual void playKeyboardHideFeedback ()
 Plays feedback when hiding the keyboard.
Q_SLOT void applyProfile ()

Private Attributes

const QScopedPointer
< SoundFeedbackPrivate > 
d_ptr

Detailed Description

Provides a sound-playing feedback backend. Used as default backend if QtMobility is configured and ready to use.


Constructor & Destructor Documentation

MaliitKeyboard::SoundFeedback::SoundFeedback ( QObject *  parent = 0)
explicit
Parameters:
parentThe owner of this instance. Can be 0, in case QObject ownership is not required.
MaliitKeyboard::SoundFeedback::~SoundFeedback ( )
virtual

Member Function Documentation

void MaliitKeyboard::SoundFeedback::applyProfile ( )
private
void MaliitKeyboard::SoundFeedback::playKeyboardHideFeedback ( )
privatevirtual

Plays feedback when hiding the keyboard.

Implements MaliitKeyboard::AbstractFeedback.

void MaliitKeyboard::SoundFeedback::playLayoutChangeFeedback ( )
privatevirtual

Plays feedback when changing a keyboard layout.

Implements MaliitKeyboard::AbstractFeedback.

void MaliitKeyboard::SoundFeedback::playPressFeedback ( )
privatevirtual

Plays feedback when pressing a key.

Implements MaliitKeyboard::AbstractFeedback.

void MaliitKeyboard::SoundFeedback::playReleaseFeedback ( )
privatevirtual

Plays feedback when releasing a key.

Implements MaliitKeyboard::AbstractFeedback.

void MaliitKeyboard::SoundFeedback::setStyle ( const SharedStyle style)
virtual

Sets the shared Style instance.

Feedback implementations that depend on style attributes should probably refresh all their feedback effects when this method is called. AbstractFeedback does not store the Style instance in any way.

Implements MaliitKeyboard::AbstractFeedback.


Member Data Documentation

const QScopedPointer<SoundFeedbackPrivate> MaliitKeyboard::SoundFeedback::d_ptr
private

The documentation for this class was generated from the following files: