KTextAddons

speechtotextclient.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "textspeechtotext_export.h"
9#include <QObject>
10namespace TextSpeechToText
11{
12class SpeechToTextPlugin;
13/**
14 * @brief The SpeechToTextClient class
15 * @author Laurent Montel <montel@kde.org>
16 */
17class TEXTSPEECHTOTEXT_EXPORT SpeechToTextClient : public QObject
18{
19 Q_OBJECT
20public:
21 enum EngineType {
22 Locale,
23 Network,
24 };
25 explicit SpeechToTextClient(QObject *parent = nullptr);
26 ~SpeechToTextClient() override;
27
28 /**
29 * @returns the name of the implementing class.
30 */
31 virtual QString name() const = 0;
32
33 virtual QString translatedName() const = 0;
34
35 virtual SpeechToTextPlugin *createTextToSpeech() = 0;
36
37 [[nodiscard]] virtual bool hasConfigurationDialog() const;
38
39 virtual bool showConfigureDialog(QWidget *parentWidget);
40
41 [[nodiscard]] virtual TextSpeechToText::SpeechToTextClient::EngineType engineType() const = 0;
42
43Q_SIGNALS:
44 void configureChanged();
45};
46}
47Q_DECLARE_INTERFACE(TextSpeechToText::SpeechToTextClient, "org.kde.texttospeech.Client")
The SpeechToTextClient class.
virtual QString name() const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.