1 /*
2     SPDX-FileCopyrightText: 2007 Olivier Goffart <ogoffart at kde.org>
3     SPDX-FileCopyrightText: 2009 Laurent Montel <montel@kde.org>
4 
5     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 
8 #ifndef NOTIFYBYTTS_H
9 #define NOTIFYBYTTS_H
10 
11 #include "knotificationplugin.h"
12 
13 class QTextToSpeech;
14 
15 class NotifyByTTS : public KNotificationPlugin
16 {
17     Q_OBJECT
18 public:
19     explicit NotifyByTTS(QObject *parent = nullptr);
20     ~NotifyByTTS() override;
21 
optionName()22     QString optionName() override
23     {
24         return QStringLiteral("TTS");
25     }
26     void notify(KNotification *notification, KNotifyConfig *config) override;
27 
28 private:
29     QTextToSpeech *const m_speech;
30 };
31 
32 #endif
33