Main Page   Compound List   File List   Compound Members   File Members  

soundfactory.h

Go to the documentation of this file.
00001 /* -------------------------------------------------------------
00002    From KDE Tuberling
00003    mailto:e.bischoff@noos.fr
00004  ------------------------------------------------------------- */
00005  /*
00006  * Copyright (C) 2001-2003 
00007    Eric Bischoff
00008    Anne-Marie Mahfouf <annma@kde.org>
00009 
00010     This program is free software; you can redistribute it and/or
00011     modify it under the terms of version 2 of the GNU General Public
00012     License as published by the Free Software Foundation.
00013 
00014     This program is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017     GNU General Public License for more details.
00018 
00019     You should have received a copy of the GNU General Public License
00020     along with this program; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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

Generated on Sat Oct 18 21:37:50 2003 by doxygen1.2.18