diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 00bb99ac80741fc50ef8a289719373032f2391eb (patch) | |
tree | 3a5a9bf72f942784b38bf77dd66c534662fab5f2 /ksayit/KTTSD_Lib/kttsdlibtalker2.h | |
download | tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.tar.gz tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit/KTTSD_Lib/kttsdlibtalker2.h')
-rw-r--r-- | ksayit/KTTSD_Lib/kttsdlibtalker2.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.h b/ksayit/KTTSD_Lib/kttsdlibtalker2.h new file mode 100644 index 0000000..e39f1c8 --- /dev/null +++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.h @@ -0,0 +1,101 @@ +// +// C++ Interface: kttsdlibtalker2 +// +// Description: +// +// +// Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2004 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef KTTSDLIBTALKER2_H +#define KTTSDLIBTALKER2_H + +// Qt includes +#include <qobject.h> +#include <qcstring.h> + +#include <kspeech_stub.h> +#include <kspeechsink.h> + +// KDE includes +#include <kapplication.h> +#include <dcopclient.h> + +/** +@author Robert Vogl +*/ +class kttsdlibtalker2 : public QObject, public KSpeech_stub, virtual public KSpeechSink +{ +Q_OBJECT + +signals: + void signalTextStarted(const uint); + void signalTextFinished(const uint); + void signalTextStopped(const uint); + +public: + kttsdlibtalker2(QObject *parent = 0, const char *name = 0); + + ~kttsdlibtalker2(); + + /** Intializes the DCOP interface. + */ + void KTTSD_init(KApplication *Appl); + + /** See \p KSpeech Class Reference. Returns the job number. + */ + uint KTTSD_setText(const QString &text, QString lang); + + /** See \p KSpeech Class Reference. + */ + void KTTSD_startText(uint jobNum); + + /** See \p KSpeech Class Reference. + */ + void KTTSD_stopText(uint jobNum); + + /** See \p KSpeech Class Reference. + */ + void KTTSD_pauseText(uint jobNum); + + /** See \p KSpeech Class Reference. + */ + void KTTSD_resumeText(uint jobNum); + + /** See \p KSpeech Class Reference. + */ + uint KTTSD_moveRelTextSentence(const int n, const uint jobNum = 0); + + /** See \p KSpeech Class Reference. + */ + int KTTSD_getTextJobState(uint jobNum); + + /** See \p KSpeech Class Reference. + */ + void KTTSD_removeText(uint jobNum); + + /** See \p KSpeech Class Reference. + */ + int KTTSD_getCurrentTextJob(); + + +protected: + //////////////////////////////////////////// + // Slots for DCOP signals + //////////////////////////////////////////// + ASYNC textStarted(const QCString &appID, const uint jobNum); + ASYNC textFinished(const QCString &appID, const uint jobNum); + ASYNC textStopped(const QCString &appID, const uint jobNum); + +private: + QCString m_objID; + KApplication *m_Appl; + DCOPClient *m_client; + uint m_jobNum; + + +}; + +#endif |