forked from len0rd/rockbox
Move include to proper place and do some code police.
Change-Id: I74a32e44ead18651a22a3a5038415808cbde6c39
This commit is contained in:
parent
bf6abf7b38
commit
4ea3f9ff2a
2 changed files with 7 additions and 8 deletions
|
|
@ -23,10 +23,6 @@
|
||||||
#define TTSBASE_H
|
#define TTSBASE_H
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QProcess>
|
|
||||||
#include <QDateTime>
|
|
||||||
#include <QRegExp>
|
|
||||||
#include <QTcpSocket>
|
|
||||||
|
|
||||||
#include "encttssettings.h"
|
#include "encttssettings.h"
|
||||||
|
|
||||||
|
|
@ -45,23 +41,23 @@ class TTSBase : public EncTtsSettingInterface
|
||||||
virtual bool start(QString *errStr) =0;
|
virtual bool start(QString *errStr) =0;
|
||||||
//! child class should stop
|
//! child class should stop
|
||||||
virtual bool stop() =0;
|
virtual bool stop() =0;
|
||||||
|
|
||||||
virtual QString voiceVendor(void) = 0;
|
virtual QString voiceVendor(void) = 0;
|
||||||
// configuration
|
// configuration
|
||||||
//! Child class should return true, when configuration is good
|
//! Child class should return true, when configuration is good
|
||||||
virtual bool configOk()=0;
|
virtual bool configOk()=0;
|
||||||
//! Child class should generate and insertSetting(..) its settings
|
//! Child class should generate and insertSetting(..) its settings
|
||||||
virtual void generateSettings() = 0;
|
virtual void generateSettings() = 0;
|
||||||
//! Chlid class should commit the Settings to permanent storage
|
//! Chlid class should commit the Settings to permanent storage
|
||||||
virtual void saveSettings() = 0;
|
virtual void saveSettings() = 0;
|
||||||
|
|
||||||
virtual Capabilities capabilities() = 0;
|
virtual Capabilities capabilities() = 0;
|
||||||
|
|
||||||
// static functions
|
// static functions
|
||||||
static TTSBase* getTTS(QObject* parent,QString ttsname);
|
static TTSBase* getTTS(QObject* parent,QString ttsname);
|
||||||
static QStringList getTTSList();
|
static QStringList getTTSList();
|
||||||
static QString getTTSName(QString tts);
|
static QString getTTSName(QString tts);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//inits the tts List
|
//inits the tts List
|
||||||
static void initTTSList();
|
static void initTTSList();
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include <QtCore>
|
||||||
|
#include <QTcpSocket>
|
||||||
|
|
||||||
#include "ttsfestival.h"
|
#include "ttsfestival.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "rbsettings.h"
|
#include "rbsettings.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue