File indexing completed on 2024-04-28 16:00:59

0001 /*
0002    SPDX-FileCopyrightText: 2023 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include "textedittexttospeech_export.h"
0009 #include <QWidget>
0010 namespace TextEditTextToSpeech
0011 {
0012 class TextToSpeechContainerWidgetPrivate;
0013 /**
0014  * @brief The TextToSpeechContainerWidget class
0015  * @author Laurent Montel <montel@kde.org>
0016  */
0017 class TEXTEDITTEXTTOSPEECH_EXPORT TextToSpeechContainerWidget : public QWidget
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit TextToSpeechContainerWidget(QWidget *parent = nullptr);
0022     ~TextToSpeechContainerWidget() override;
0023 
0024     void say(const QString &text);
0025 
0026 private:
0027     std::unique_ptr<TextToSpeechContainerWidgetPrivate> const d;
0028 };
0029 }