pluginproc.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _PLUGINPROC_H_
00021 #define _PLUGINPROC_H_
00022
00023 #include <qobject.h>
00024 #include <qstring.h>
00025
00026 #include <kconfig.h>
00027
00220 enum pluginState
00221 {
00222 psIdle = 0,
00223 psSaying = 1,
00224 psSynthing = 2,
00225 psFinished = 3
00226 };
00227
00228 class PlugInProc : virtual public QObject{
00229 Q_OBJECT
00230
00231 public:
00235 PlugInProc( QObject *parent = 0, const char *name = 0);
00236
00241 virtual ~PlugInProc();
00242
00257 virtual bool init(KConfig *config, const QString &configGroup);
00258
00268 virtual void sayText(const QString &text);
00269
00283 virtual void synthText(const QString &text, const QString &suggestedFilename);
00284
00294 virtual QString getFilename();
00295
00311 virtual void stopText();
00312
00320 virtual pluginState getState();
00321
00330 virtual void ackFinished();
00331
00341 virtual bool supportsAsync();
00342
00356 virtual bool supportsSynth();
00357
00367 virtual QString getSsmlXsltFilename();
00368
00369 signals:
00373 void synthFinished();
00377 void sayFinished();
00381 void stopped();
00397 void error(const bool keepGoing, const QString &msg);
00398 };
00399
00400 #endif // _PLUGINPROC_H_
This file is part of the documentation for kttsd Library Version 3.3.90.