• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeaccessibility API Reference
  • KDE Home
  • Contact Us
 

jovie

  • sources
  • kde-4.12
  • kdeaccessibility
  • jovie
  • libkttsd
filterproc.h
Go to the documentation of this file.
1 /***************************************************** vim:set ts=4 sw=4 sts=4:
2  Filter Processing class.
3  This is the interface definition for text filters.
4  -------------------
5  Copyright:
6  (C) 2005 by Gary Cramblitt <garycramblitt@comcast.net>
7  -------------------
8  Original author: Gary Cramblitt <garycramblitt@comcast.net>
9 
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23  ******************************************************************************/
24 
25 #ifndef FILTERPROC_H
26 #define FILTERPROC_H
27 
28 // Qt includes.
29 #include <QtCore/QObject>
30 #include <QtCore/QVariantList>
31 
32 // KDE includes.
33 #include <kdemacros.h>
34 
35 class TalkerCode;
36 class KConfig;
37 
38 class KDE_EXPORT KttsFilterProc : public QObject
39 {
40  Q_OBJECT
41 
42 public:
43  enum FilterState {
44  fsIdle = 0, // Not doing anything. Ready to filter.
45  fsFiltering = 1, // Filtering.
46  fsStopping = 2, // Stop of filtering is in progress.
47  fsFinished = 3 // Filtering finished.
48  };
49 
53  KttsFilterProc( QObject *parent, const QVariantList &);
54 
58  virtual ~KttsFilterProc();
59 
69  virtual bool init(KConfig *config, const QString &configGroup);
70 
76  virtual bool isSBD();
77 
88  virtual bool supportsAsync();
89 
99  virtual QString convert(const QString& inputText, TalkerCode* talkerCode, const QString& appId);
100 
115  virtual bool asyncConvert(const QString& inputText, TalkerCode* talkerCode, const QString& appId);
116 
120  virtual void waitForFinished();
121 
125  virtual int getState();
126 
130  virtual QString getOutput();
131 
135  virtual void ackFinished();
136 
141  virtual void stopFiltering();
142 
147  virtual bool wasModified();
148 
155  virtual void setSbRegExp(const QString& re);
156 
157 signals:
161  void filteringFinished();
162 
166  void filteringStopped();
167 
175  void error(bool keepGoing, const QString &msg);
176 };
177 
178 #endif // FILTERPROC_H
QObject
KttsFilterProc
Definition: filterproc.h:38
TalkerCode
Definition: talkercode.h:38
KttsFilterProc::FilterState
FilterState
Definition: filterproc.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

jovie

Skip menu "jovie"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeaccessibility API Reference

Skip menu "kdeaccessibility API Reference"
  • jovie

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal