okular/part/tts.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
705 B
C
Raw Normal View History

2021-05-24 07:25:56 +00:00
/*
SPDX-FileCopyrightText: 2008 Pino Toscano <pino@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _TTS_H_
#define _TTS_H_
2020-07-08 11:54:37 +00:00
#include <QObject>
#include <QTextToSpeech>
class OkularTTS : public QObject
{
Q_OBJECT
public:
2018-09-01 08:25:57 +00:00
explicit OkularTTS(QObject *parent = nullptr);
~OkularTTS() override;
void say(const QString &text);
void stopAllSpeechs();
void pauseResumeSpeech();
public Q_SLOTS:
void slotSpeechStateChanged(QTextToSpeech::State state);
void slotConfigChanged();
Q_SIGNALS:
void isSpeaking(bool speaking);
void canPauseOrResume(bool speakingOrPaused);
private:
// private storage
class Private;
Private *d;
};
#endif