A few new icons...
[kdeaccessibility.git] / kmouth / texttospeechsystem.h
blobfc9b0182e7fdd53f9131f50fa6243498e9f809c8
1 /***************************************************************************
2 texttospeechsystem.h - description
3 -------------------
4 begin : Son Sep 8 2002
5 copyright : (C) 2002 by Gunnar Schmi Dt
6 email : kmouth@schmi-dt.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
19 #ifndef TEXTTOSPEECHSYSTEM_H
20 #define TEXTTOSPEECHSYSTEM_H
22 #include <qstring.h>
23 #include <qobject.h>
24 #include <qptrlist.h>
26 class KConfig;
28 /**This class represents a text-to-speech system.
29 *@author Gunnar Schmi Dt
32 class TextToSpeechSystem : public QObject{
33 Q_OBJECT
34 friend class TextToSpeechConfigurationWidget;
35 public:
36 TextToSpeechSystem();
37 ~TextToSpeechSystem();
39 void readOptions (KConfig *config, const QString &langGroup);
40 void saveOptions (KConfig *config, const QString &langGroup);
42 public slots:
43 void speak (const QString &text, const QString &language);
45 private:
46 void buildCodecList ();
48 QPtrList<QTextCodec> *codecList;
49 int codec;
50 QString ttsCommand;
51 bool stdIn;
52 bool useKttsd;
55 #endif