File indexing completed on 2024-04-21 04:58:02
0001 /* 0002 SPDX-FileCopyrightText: 2002 George Russell <george.russell@clara.net> 0003 SPDX-FileCopyrightText: 2003-2004 Olaf Schmidt <ojschmidt@kde.org> 0004 SPDX-FileCopyrightText: 2015 Jeremy Whiting <jpwhiting@kde.org> 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KHTMLTTS_H 0009 #define KHTMLTTS_H 0010 0011 #include <konq_kpart_plugin.h> 0012 0013 class QTextToSpeech; 0014 0015 /** 0016 * KHTML KParts Plugin 0017 */ 0018 class KHTMLPluginTTS : public KonqParts::Plugin 0019 { 0020 Q_OBJECT 0021 public: 0022 0023 /** 0024 * Construct a new KParts plugin. 0025 */ 0026 KHTMLPluginTTS(QObject *parent, const QVariantList &); 0027 0028 /** 0029 * Destructor. 0030 */ 0031 ~KHTMLPluginTTS() override; 0032 public Q_SLOTS: 0033 void slotReadOut(); 0034 private: 0035 std::unique_ptr<QTextToSpeech> m_tts; 0036 }; 0037 0038 #endif