• Skip to content
  • Skip to link menu
KDE API Documentation - Bonus Class Reference (GCompris-qt)
  • KDE Home
  • Contact Us
 

GCompris-qt

  • View on LXR
  • Comments
Signals | Public Member Functions | Properties | List of all members
Bonus Class Reference
Core QML Components

Inherits QtQuick.Image, and Image.

Signals

void loose ()
 
void win ()
 

Public Member Functions

void bad (name)
 
void good (name)
 

Properties

string looseSound
 
string winSound
 

Detailed Description

A QML component providing user feedback upon winning/loosing.

Usually triggered by an activity when a user has won/lost a level via the good / bad methods. Bonus then provides visual and auditive feedback to the user and emits the win / loose signals when finished.

Maintains a list of possible audio voice resources to be playebd back upon winning/loosing events, and selects randomly from them when triggered.

Definition at line 39 of file Bonus.qml.

Member Function Documentation

void Bonus::bad ( name  )

Triggers loose feedback.

Tries to play back a voice resource for loosing, if not found fall back to the looseSound.

Parameters
nameType of win image to show. Possible values are "flower", "gnu", "lion", "note", "smiley", "tux"
void Bonus::good ( name  )

Triggers win feedback.

Tries to play back a voice resource for winning, if not found fall back to the winSound.

Parameters
nameType of win image to show. Possible values are "flower", "gnu", "lion", "note", "smiley", "tux"
void Bonus::loose ( )
signal

Emitted when the loose event is over.

After the animation has finished.

void Bonus::win ( )
signal

Emitted when the win event is over.

After the animation has finished.

Property Documentation

string Bonus::looseSound

Url of the audio resource to be used as loosing sound.

Definition at line 50 of file Bonus.qml.

string Bonus::winSound

Url of the audio resource to be used as winning sound.

Definition at line 45 of file Bonus.qml.


The documentation for this class was generated from the following file:
  • Bonus.qml
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:48 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

GCompris-qt

Skip menu "GCompris-qt"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Modules

Class Picker

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal