diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2009-10-13 19:54:27 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2009-10-13 19:54:27 +0000 |
commit | 3215c09462fe90c35dc6d9e1979e970280b052b1 (patch) | |
tree | 1fc7be334470d6d21b746a40bc7dbe440a722d35 /rbutil/rbutilqt/base/ttsexes.h | |
parent | 31c18116de2105deed8aa8dab84bf08a930f2112 (diff) | |
download | rockbox-3215c09462fe90c35dc6d9e1979e970280b052b1.tar.gz rockbox-3215c09462fe90c35dc6d9e1979e970280b052b1.zip |
rbutil: split tts.cpp/h into individual files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23158 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/ttsexes.h')
-rw-r--r-- | rbutil/rbutilqt/base/ttsexes.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/ttsexes.h b/rbutil/rbutilqt/base/ttsexes.h new file mode 100644 index 0000000000..ab966f5a7e --- /dev/null +++ b/rbutil/rbutilqt/base/ttsexes.h | |||
@@ -0,0 +1,55 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2009 by Dominik Wenger | ||
10 | * $Id$ | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef TTSEXES_H | ||
23 | #define TTSEXES_H | ||
24 | |||
25 | #include "ttsbase.h" | ||
26 | |||
27 | class TTSExes : public TTSBase | ||
28 | { | ||
29 | enum ESettings | ||
30 | { | ||
31 | eEXEPATH, | ||
32 | eOPTIONS | ||
33 | }; | ||
34 | |||
35 | Q_OBJECT | ||
36 | public: | ||
37 | TTSExes(QString name,QObject* parent=NULL); | ||
38 | TTSStatus voice(QString text,QString wavfile, QString *errStr); | ||
39 | bool start(QString *errStr); | ||
40 | bool stop() {return true;} | ||
41 | |||
42 | // for settings | ||
43 | void generateSettings(); | ||
44 | void saveSettings(); | ||
45 | bool configOk(); | ||
46 | |||
47 | private: | ||
48 | QString m_name; | ||
49 | QString m_TTSexec; | ||
50 | QString m_TTSOpts; | ||
51 | QString m_TTSTemplate; | ||
52 | QMap<QString,QString> m_TemplateMap; | ||
53 | }; | ||
54 | |||
55 | #endif | ||