compile
[kdegraphics.git] / okular / ui / tts.h
blobd9eb59324639d1b5d6b144a2e65c3d730b575661
1 /***************************************************************************
2 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _TTS_H_
11 #define _TTS_H_
13 #include <qobject.h>
15 class OkularTTS : public QObject
17 Q_OBJECT
18 public:
19 OkularTTS( QObject *parent = 0 );
20 ~OkularTTS();
22 void say( const QString &text );
23 void stopAllSpeechs();
25 signals:
26 void hasSpeechs( bool has );
27 void errorMessage( const QString &message );
29 private slots:
30 void slotServiceUnregistered( const QString& );
31 void slotServiceOwnerChanged( const QString&, const QString&, const QString& );
32 void slotJobStateChanged( const QString &appId, int jobNum, int state );
34 private:
35 // private storage
36 class Private;
37 Private *d;
40 #endif