Changeset View
Changeset View
Standalone View
Standalone View
ui/tts.h
Show All 16 Lines | |||||
17 | { | 17 | { | ||
18 | Q_OBJECT | 18 | Q_OBJECT | ||
19 | public: | 19 | public: | ||
20 | explicit OkularTTS( QObject *parent = nullptr ); | 20 | explicit OkularTTS( QObject *parent = nullptr ); | ||
21 | ~OkularTTS(); | 21 | ~OkularTTS(); | ||
22 | 22 | | |||
23 | void say( const QString &text ); | 23 | void say( const QString &text ); | ||
24 | void stopAllSpeechs(); | 24 | void stopAllSpeechs(); | ||
25 | void pauseResumeSpeech(); | ||||
25 | 26 | | |||
26 | public slots: | 27 | public slots: | ||
27 | void slotSpeechStateChanged(QTextToSpeech::State state); | 28 | void slotSpeechStateChanged(QTextToSpeech::State state); | ||
29 | void slotConfigChanged(); | ||||
28 | 30 | | |||
29 | signals: | 31 | signals: | ||
30 | void isSpeaking( bool speaking ); | 32 | void isSpeaking( bool speaking ); | ||
33 | void canPauseOrResume( bool speakingOrPaused ); | ||||
31 | 34 | | |||
32 | private: | 35 | private: | ||
33 | // private storage | 36 | // private storage | ||
34 | class Private; | 37 | class Private; | ||
35 | Private *d; | 38 | Private *d; | ||
36 | }; | 39 | }; | ||
37 | 40 | | |||
38 | #endif | 41 | #endif |