File indexing completed on 2024-06-16 04:29:31

0001 #ifndef SPEECH_H
0002 #define SPEECH_H
0003 
0004 #include <plugins/snoresecondarybackend.h>
0005 
0006 class QTextToSpeech;
0007 
0008 class Speech : public Snore::SnoreSecondaryBackend
0009 {
0010     Q_OBJECT
0011     Q_INTERFACES(Snore::SnoreSecondaryBackend)
0012     Q_PLUGIN_METADATA(IID "org.Snore.SecondaryNotificationBackend/1.0" FILE "snore_plugin.json")
0013 public:
0014     explicit Speech();
0015     ~Speech() = default;
0016 
0017 public Q_SLOTS:
0018     void slotNotificationDisplayed(Snore::Notification notification) override;
0019 
0020     void slotNotificationClosed(Snore::Notification notificatiom);
0021 
0022 private:
0023     QTextToSpeech *m_speech;
0024 };
0025 
0026 #endif // SPEECH_H