00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _SOUNDFACTORY_H_
00026 #define _SOUNDFACTORY_H_
00027
00028
00029 class QDomDocument;
00030 class KLettres;
00031
00041 class SoundFactory : public QObject
00042 {
00043 Q_OBJECT
00044
00045 public:
00046
00047 SoundFactory(KLettres *parent, const char *name, uint selectedLanguage);
00048 ~SoundFactory();
00049
00051 void change(uint selectedLanguage);
00053 void playSound(int ) ;
00055 int sounds;
00057 QString *namesList;
00059 QString *filesList;
00061 bool loadLanguage(QDomDocument &layoutDocument, uint toLoad);
00062
00063 protected:
00064
00066 bool registerLanguages(QDomDocument &layoutDocument);
00067
00068 private:
00070 void loadFailure();
00071
00072 private:
00074 KLettres *klettres;
00075 };
00076
00077 #endif