File indexing completed on 2024-04-28 11:43:48
0001 /* 0002 SPDX-FileCopyrightText: 2007 Olivier Goffart <ogoffart at kde.org> 0003 SPDX-FileCopyrightText: 2009 Laurent Montel <montel@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #ifndef NOTIFYBYTTS_H 0009 #define NOTIFYBYTTS_H 0010 0011 #include "knotificationplugin.h" 0012 0013 class QTextToSpeech; 0014 0015 class NotifyByTTS : public KNotificationPlugin 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit NotifyByTTS(QObject *parent = nullptr); 0020 ~NotifyByTTS() override; 0021 0022 QString optionName() override 0023 { 0024 return QStringLiteral("TTS"); 0025 } 0026 void notify(KNotification *notification, KNotifyConfig *config) override; 0027 0028 private: 0029 QTextToSpeech *const m_speech; 0030 }; 0031 0032 #endif