summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/talkfile.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-07-12 17:04:49 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-07-12 17:04:49 +0000
commita9f50c35e684af8b6ca6061838b5ffa61f231c84 (patch)
tree9ab1ef438713772c70595ccbf74f35ed9151e48a /rbutil/rbutilqt/talkfile.h
parentae055017169f699f262606fd307e836d456d2535 (diff)
downloadrockbox-a9f50c35e684af8b6ca6061838b5ffa61f231c84.tar.gz
rockbox-a9f50c35e684af8b6ca6061838b5ffa61f231c84.tar.bz2
rockbox-a9f50c35e684af8b6ca6061838b5ffa61f231c84.zip
rbutil: completly reworked Talkfile generation. Should be more stable and more maintainable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18016 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/talkfile.h')
-rw-r--r--rbutil/rbutilqt/talkfile.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/talkfile.h b/rbutil/rbutilqt/talkfile.h
index f4e9b4c88e..d869c32880 100644
--- a/rbutil/rbutilqt/talkfile.h
+++ b/rbutil/rbutilqt/talkfile.h
@@ -44,8 +44,6 @@ public:
void setMountPoint(QString mountpoint) {m_mountpoint =mountpoint; }
void setOverwriteTalk(bool ov) {m_overwriteTalk = ov;}
- void setOverwriteWav(bool ov) {m_overwriteWav = ov;}
- void setRemoveWav(bool ov) {m_removeWav = ov;}
void setRecursive(bool ov) {m_recursive = ov;}
void setStripExtensions(bool ov) {m_stripExtensions = ov;}
void setTalkFolders(bool ov) {m_talkFolders = ov;}
@@ -55,16 +53,25 @@ private slots:
void abort();
private:
+ bool cleanup(QStringList list);
+ QString stripExtension(QString filename);
+ void doAbort(QStringList cleanupList);
+ void resetProgress(int max);
+ bool createDirAndFileMaps(QDir startDir,QMultiMap<QString,QString> *dirMap,QMultiMap<QString,QString> *fileMap);
+ bool voiceList(QStringList toSpeak,QString* errString);
+ bool encodeList(QStringList toEncode,QString* errString);
+ bool copyTalkDirFiles(QMultiMap<QString,QString> dirMap,QString* errString);
+ bool copyTalkFileFiles(QMultiMap<QString,QString> fileMap,QString* errString);
+
TTSBase* m_tts;
EncBase* m_enc;
RbSettings* settings;
QDir m_dir;
QString m_mountpoint;
+ int m_progress;
bool m_overwriteTalk;
- bool m_overwriteWav;
- bool m_removeWav;
bool m_recursive;
bool m_stripExtensions;
bool m_talkFolders;