When applying the system proxy values really use the values.
[Rockbox.git] / rbutil / rbutilqt / talkfile.h
blob8341da4ca9e95836be6f6cc83326b423abbcb63e
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
21 #ifndef TALKFILE_H
22 #define TALKFILE_H
24 #include <QtCore>
25 #include "progressloggerinterface.h"
27 #include "encoders.h"
28 #include "tts.h"
30 class TalkFileCreator :public QObject
32 Q_OBJECT
34 public:
35 TalkFileCreator(QObject* parent=0);
37 bool createTalkFiles(ProgressloggerInterface* logger);
39 void setSettings(RbSettings* sett) { settings = sett;}
41 void setDir(QDir dir){m_dir = dir; }
42 void setMountPoint(QString mountpoint) {m_mountpoint =mountpoint; }
44 void setOverwriteTalk(bool ov) {m_overwriteTalk = ov;}
45 void setOverwriteWav(bool ov) {m_overwriteWav = ov;}
46 void setRemoveWav(bool ov) {m_removeWav = ov;}
47 void setRecursive(bool ov) {m_recursive = ov;}
48 void setStripExtensions(bool ov) {m_stripExtensions = ov;}
49 void setTalkFolders(bool ov) {m_talkFolders = ov;}
50 void setTalkFiles(bool ov) {m_talkFiles = ov;}
52 private slots:
53 void abort();
55 private:
56 TTSBase* m_tts;
57 EncBase* m_enc;
58 RbSettings* settings;
60 QDir m_dir;
61 QString m_mountpoint;
63 bool m_overwriteTalk;
64 bool m_overwriteWav;
65 bool m_removeWav;
66 bool m_recursive;
67 bool m_stripExtensions;
68 bool m_talkFolders;
69 bool m_talkFiles;
71 ProgressloggerInterface* m_logger;
73 bool m_abort;
77 #endif