klettres
soundfactory.cpp
Go to the documentation of this file.
169 //filesList helds the names of the sound files (i.e the location of the sounds like fr/alpha/a-0.mp3)
186 //get the number of sounds then shuffle it: each number will be taken once then the sequence will come back
QStringList filesList
List of sound files associated with each sound name.
Definition: soundfactory.h:67
void clear()
QDomNodeList elementsByTagName(const QString &tagname) const
QDomNode item(int index) const
void play()
MediaObject * createPlayer(Phonon::Category category, const MediaSource &source)
QDomElement toElement() const
SoundFactory(KLettres *parent, const char *name)
Definition: soundfactory.cpp:35
int count() const
void append(const T &value)
bool isEmpty() const
QDomNodeList elementsByTagName(const QString &tagname) const
bool isEmpty() const
uint sounds
Number of sounds corresponding to the current language and level (alphabet or syllables) ...
Definition: soundfactory.h:63
bool loadLanguage(QDomDocument &layoutDocument, const QString ¤tLanguage)
Load the sounds of one given language Call that when you read the language from Config and when the l...
Definition: soundfactory.cpp:105
void change(const QString ¤tLanguage)
Change the language when the user changes the language in the Languages menu.
Definition: soundfactory.cpp:59
void setParent(QObject *parent)
void setCurrentSource(const MediaSource &source)
QString value() const
QObject * parent() const
QDomAttr attributeNode(const QString &name)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.