summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/ttsbase.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2010-06-04 21:22:25 +0000
committerDominik Wenger <domonoky@googlemail.com>2010-06-04 21:22:25 +0000
commita8c1934c9d8d3618b78a2a15788f6d3cf5040ca4 (patch)
tree4d0b742e0cae5230529f9bdb933321f3b9336347 /rbutil/rbutilqt/base/ttsbase.h
parent081bda8ab258c763e654067740f365be68269340 (diff)
downloadrockbox-a8c1934c9d8d3618b78a2a15788f6d3cf5040ca4.tar.gz
rockbox-a8c1934c9d8d3618b78a2a15788f6d3cf5040ca4.tar.bz2
rockbox-a8c1934c9d8d3618b78a2a15788f6d3cf5040ca4.zip
rbutil: Make TTS and encoders run on all cores \n FS#11160 by Delyan Kratunov
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26558 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/ttsbase.h')
-rw-r--r--rbutil/rbutilqt/base/ttsbase.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/base/ttsbase.h b/rbutil/rbutilqt/base/ttsbase.h
index 7c5932401f..f04016c85f 100644
--- a/rbutil/rbutilqt/base/ttsbase.h
+++ b/rbutil/rbutilqt/base/ttsbase.h
@@ -32,11 +32,13 @@
#include "encttssettings.h"
enum TTSStatus{ FatalError, NoError, Warning };
-
class TTSBase : public EncTtsSettingInterface
{
Q_OBJECT
public:
+ enum Capability { None = 0, RunInParallel = 1 };
+ Q_DECLARE_FLAGS(Capabilities, Capability)
+
TTSBase(QObject *parent);
//! Child class should generate a clip
virtual TTSStatus voice(QString text,QString wavfile, QString* errStr) =0;
@@ -53,6 +55,8 @@ class TTSBase : public EncTtsSettingInterface
//! Chlid class should commit the Settings to permanent storage
virtual void saveSettings() = 0;
+ virtual Capabilities capabilities() = 0;
+
// static functions
static TTSBase* getTTS(QObject* parent,QString ttsname);
static QStringList getTTSList();
@@ -65,10 +69,6 @@ class TTSBase : public EncTtsSettingInterface
protected:
static QMap<QString,QString> ttsList;
};
-
-
-
-
-
+Q_DECLARE_OPERATORS_FOR_FLAGS(TTSBase::Capabilities)
#endif