KTextAddons

texttospeechactions.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textedittexttospeech_export.h"
10#include <QObject>
11#include <TextEditTextToSpeech/TextToSpeechWidget>
12class QAction;
13namespace TextEditTextToSpeech
14{
15class TextToSpeechActionsPrivate;
16/**
17 * @brief The TextToSpeechActions class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class TEXTEDITTEXTTOSPEECH_EXPORT TextToSpeechActions : public QObject
21{
22 Q_OBJECT
23public:
24 explicit TextToSpeechActions(QObject *parent = nullptr);
25 ~TextToSpeechActions() override;
26
27 [[nodiscard]] QAction *stopAction() const;
28
29 [[nodiscard]] QAction *playPauseAction() const;
30
31 [[nodiscard]] TextToSpeechWidget::State state() const;
32
33public Q_SLOTS:
34 void setState(TextToSpeechWidget::State);
35 void slotStop();
36
37Q_SIGNALS:
38 void stateChanged(TextEditTextToSpeech::TextToSpeechWidget::State state);
39
40private:
41 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotPlayPause();
42 std::unique_ptr<TextToSpeechActionsPrivate> const d;
43};
44}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.