jovie
#include <talkerchooserproc.h>
Public Member Functions | |
TalkerChooserProc (QObject *parent, const QVariantList &args) | |
virtual | ~TalkerChooserProc () |
virtual QString | convert (const QString &inputText, TalkerCode *talkerCode, const QString &appId) |
virtual bool | init (KConfig *c, const QString &configGroup) |
virtual bool | supportsAsync () |
Public Member Functions inherited from KttsFilterProc | |
KttsFilterProc (QObject *parent, const QVariantList &) | |
virtual | ~KttsFilterProc () |
virtual void | ackFinished () |
virtual bool | asyncConvert (const QString &inputText, TalkerCode *talkerCode, const QString &appId) |
virtual QString | getOutput () |
virtual int | getState () |
virtual bool | isSBD () |
virtual void | setSbRegExp (const QString &re) |
virtual void | stopFiltering () |
virtual void | waitForFinished () |
virtual bool | wasModified () |
Additional Inherited Members | |
Public Types inherited from KttsFilterProc | |
enum | FilterState { fsIdle = 0, fsFiltering = 1, fsStopping = 2, fsFinished = 3 } |
Signals inherited from KttsFilterProc | |
void | error (bool keepGoing, const QString &msg) |
void | filteringFinished () |
void | filteringStopped () |
Detailed Description
Definition at line 35 of file talkerchooserproc.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 39 of file talkerchooserproc.cpp.
|
virtual |
Destructor.
Definition at line 46 of file talkerchooserproc.cpp.
Member Function Documentation
|
virtual |
Convert input, returning output.
Runs synchronously.
- Parameters
-
inputText Input text. talkerCode TalkerCode structure for the talker that KTTSD intends to use for synthing the text. Useful for extracting hints about how to filter the text. For example, languageCode. appId The DCOP appId of the application that queued the text. Also useful for hints about how to do the filtering.
Reimplemented from KttsFilterProc.
Definition at line 73 of file talkerchooserproc.cpp.
|
virtual |
Initialize the filter.
- Parameters
-
c Settings object. configGroup Settings Group.
- Returns
- False if filter is not ready to filter.
Note: The parameters are for reading from kttsdrc file. Plugins may wish to maintain separate configuration files of their own.
Reimplemented from KttsFilterProc.
Definition at line 51 of file talkerchooserproc.cpp.
|
virtual |
Returns True if the plugin supports asynchronous processing, i.e., supports asyncConvert method.
- Returns
- True if this plugin supports asynchronous processing.
If the plugin returns True, it must also implement getState . It must also emit filteringFinished when filtering is completed. If the plugin returns True, it must also implement stopFiltering . It must also emit filteringStopped when filtering has been stopped.
Reimplemented from KttsFilterProc.
Definition at line 71 of file talkerchooserproc.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.