MPEGPlayer: Skip to next file when there is a problem with a video file in all-play...
[kugel-rb.git] / rbutil / rbutilqt / base / ttsexes.h
blob04efb4ce50df5308ec6e173a7be67dfd1baa0af5
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2009 by Dominik Wenger
10 * $Id$
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef TTSEXES_H
23 #define TTSEXES_H
25 #include "ttsbase.h"
27 class TTSExes : public TTSBase
29 enum ESettings
31 eEXEPATH,
32 eOPTIONS
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 Capabilities capabilities();
43 // for settings
44 void generateSettings();
45 void saveSettings();
46 bool configOk();
48 private:
49 QString m_name;
50 QString m_TTSexec;
51 QString m_TTSOpts;
52 QString m_TTSTemplate;
53 QMap<QString,QString> m_TemplateMap;
56 #endif