• 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
  • jovie
speechjob.h
Go to the documentation of this file.
1 /*************************************************** vim:set ts=4 sw=4 sts=4:
2  This class contains a single speech job.
3  -------------------
4  Copyright:
5  (C) 2006 by Gary Cramblitt <garycramblitt@comcast.net>
6  -------------------
7  Original author: Gary Cramblitt <garycramblitt@comcast.net>
8 
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  ******************************************************************************/
23 
24 #ifndef SPEECHJOB_H
25 #define SPEECHJOB_H
26 
27 // Qt includes.
28 #include <QtCore/QList>
29 #include <QtCore/QByteArray>
30 
31 // KDE includes.
32 #include <kspeech.h>
33 
40 class SpeechJobPrivate;
41 class SpeechJob : public QObject {
42 
43  Q_OBJECT
44 
45  Q_PROPERTY(int jobNum READ jobNum WRITE setJobNum)
46  Q_PROPERTY(QString appId READ appId WRITE setAppId)
47  Q_PROPERTY(KSpeech::JobPriority jobPriority READ jobPriority WRITE setJobPriority)
48  Q_PROPERTY(QString talker READ talker WRITE setTalker)
49  Q_PROPERTY(KSpeech::JobState state READ state WRITE setState)
50  Q_PROPERTY(QStringList sentences READ sentences WRITE setSentences)
51  Q_PROPERTY(int sentenceCount READ sentenceCount)
52  Q_PROPERTY(int sentenceNum READ sentenceNum WRITE setSentenceNum)
53  Q_PROPERTY(int seq READ seq WRITE setSeq)
54  Q_PROPERTY(QString getNextSentence READ getNextSentence)
55  Q_PROPERTY(QByteArray serialize READ serialize)
56 
57 public:
58  explicit SpeechJob(KSpeech::JobPriority priority=KSpeech::jpText);
59  ~SpeechJob();
60 
62  int jobNum() const;
63  void setJobNum(int jobNum);
65  QString appId() const;
66  void setAppId(const QString &appId);
68  KSpeech::JobPriority jobPriority() const;
69  void setJobPriority(KSpeech::JobPriority jobPriority);
71  QString talker() const;
72  void setTalker(const QString &talker);
74  KSpeech::JobState state() const;
75  void setState(KSpeech::JobState state);
77  QStringList sentences() const;
78  void setSentences(const QStringList &sentences);
80  int sentenceCount() const;
83  int sentenceNum() const;
84  void setSentenceNum(int sentenceNum);
86  int seq() const;
87  void setSeq(int seq);
88  int refCount() const;
89  void incRefCount();
90  void decRefCount();
91 
97  QString getNextSentence();
98 
133  QByteArray serialize() const;
134 
140  static QString jobStateToStr(KSpeech::JobState state);
141 
142 Q_SIGNALS:
143  void jobStateChanged(const QString& appId, int jobNum, KSpeech::JobState state);
144 
145 private:
146  SpeechJobPrivate* d;
147 };
148 
149 #endif // SPEECHJOB_H
SpeechJob::getNextSentence
QString getNextSentence()
Returns the next sentence in the Job.
SpeechJob::decRefCount
void decRefCount()
SpeechJob::setJobNum
void setJobNum(int jobNum)
SpeechJob::jobStateChanged
void jobStateChanged(const QString &appId, int jobNum, KSpeech::JobState state)
SpeechJob::setSentenceNum
void setSentenceNum(int sentenceNum)
SpeechJob::sentences
QStringList sentences() const
List of sentences in the job.
SpeechJob::talker
QString talker() const
Requested Talker code in which to speak the text.
SpeechJob::refCount
int refCount() const
QObject
SpeechJob::setTalker
void setTalker(const QString &talker)
SpeechJob::serialize
QByteArray serialize() const
Converts the job into a byte stream.
SpeechJob
Object containing a speech job.
Definition: speechjob.h:41
SpeechJob::jobNum
int jobNum() const
Job number.
SpeechJob::setSentences
void setSentences(const QStringList &sentences)
SpeechJob::setAppId
void setAppId(const QString &appId)
SpeechJob::setJobPriority
void setJobPriority(KSpeech::JobPriority jobPriority)
SpeechJob::state
KSpeech::JobState state() const
Job state.
SpeechJob::jobPriority
KSpeech::JobPriority jobPriority() const
Type of job.
SpeechJob::sentenceCount
int sentenceCount() const
Count of sentences in the job.
SpeechJob::seq
int seq() const
Current sentence being synthesized.
SpeechJob::setSeq
void setSeq(int seq)
SpeechJob::jobStateToStr
static QString jobStateToStr(KSpeech::JobState state)
Converts a job state enumerator to a displayable string.
SpeechJob::setState
void setState(KSpeech::JobState state)
SpeechJob::incRefCount
void incRefCount()
SpeechJob::sentenceNum
int sentenceNum() const
Current sentence begin spoken.
SpeechJob::appId
QString appId() const
DBUS senderId of the application that requested the speech job.
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