klettres
SoundFactory Class Reference
#include <soundfactory.h>
Inheritance diagram for SoundFactory:

Detailed Description
This class manages the sounds toplay in KLettres, reading the data about the sounds in the sounds.xml file which is in /data.Sounds factory class: find and play the right sound.
- Version:
- 1.80
Definition at line 47 of file soundfactory.h.
Public Member Functions | |
| SoundFactory (KLettres *parent, const char *name) | |
| ~SoundFactory () | |
| void | change (const QString ¤tLanguage) |
| void | playSound (int) |
| bool | loadLanguage (QDomDocument &layoutDocument, const QString ¤tLanguage) |
Public Attributes | |
| KLettres * | klettres |
| uint | sounds |
| QStringList | namesList |
| QStringList | filesList |
| QDomDocument | m_layoutsDocument |
| QList< int > | randomList |
Constructor & Destructor Documentation
| SoundFactory::SoundFactory | ( | KLettres * | parent, | |
| const char * | name | |||
| ) |
Definition at line 36 of file soundfactory.cpp.
| SoundFactory::~SoundFactory | ( | ) |
Definition at line 50 of file soundfactory.cpp.
Member Function Documentation
| void SoundFactory::change | ( | const QString & | currentLanguage | ) |
Change the language when the user changes the language in the Languages menu.
Definition at line 54 of file soundfactory.cpp.
| void SoundFactory::playSound | ( | int | mySound | ) |
| bool SoundFactory::loadLanguage | ( | QDomDocument & | layoutDocument, | |
| const QString & | currentLanguage | |||
| ) |
Load the sounds of one given language Call that when you read the language from Config and when the language changes or when the level changes.
Definition at line 92 of file soundfactory.cpp.
Member Data Documentation
| uint SoundFactory::sounds |
Number of sounds corresponding to the current language and level (alphabet or syllables).
Definition at line 63 of file soundfactory.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference