jovie
#include <speechjob.h>
Object containing a speech job.
Definition at line 41 of file speechjob.h.
SpeechJob::SpeechJob |
( |
KSpeech::JobPriority |
priority = KSpeech::jpText | ) |
|
|
explicit |
SpeechJob::~SpeechJob |
( |
| ) |
|
QString SpeechJob::appId |
( |
| ) |
const |
DBUS senderId of the application that requested the speech job.
void SpeechJob::decRefCount |
( |
| ) |
|
QString SpeechJob::getNextSentence |
( |
| ) |
|
Returns the next sentence in the Job.
Increments sentenceNum. If we run out of sentences, returns QString().
void SpeechJob::incRefCount |
( |
| ) |
|
int SpeechJob::jobNum |
( |
| ) |
const |
KSpeech::JobPriority SpeechJob::jobPriority |
( |
| ) |
const |
Type of job.
Text, Message, Warning, or Screen Reader Output
void SpeechJob::jobStateChanged |
( |
const QString & |
appId, |
|
|
int |
jobNum, |
|
|
KSpeech::JobState |
state |
|
) |
| |
|
signal |
static QString SpeechJob::jobStateToStr |
( |
KSpeech::JobState |
state | ) |
|
|
static |
Converts a job state enumerator to a displayable string.
- Parameters
-
- Returns
- Displayable string for job state.
int SpeechJob::refCount |
( |
| ) |
const |
int SpeechJob::sentenceCount |
( |
| ) |
const |
Count of sentences in the job.
int SpeechJob::sentenceNum |
( |
| ) |
const |
Current sentence begin spoken.
The first sentence is at 1, so if 0, not speaking.
QStringList SpeechJob::sentences |
( |
| ) |
const |
List of sentences in the job.
int SpeechJob::seq |
( |
| ) |
const |
Current sentence being synthesized.
First sentence is 1.
QByteArray SpeechJob::serialize |
( |
| ) |
const |
Converts the job into a byte stream.
- Returns
- A QDataStream containing information about the job. Blank if no such job.
The stream contains the following elements:
- int priority Job Priority
- int state Job state.
- QString appId DBUS senderId of the application that requested the speech job.
- QString talker Language code in which to speak the text.
- int sentenceNum Current sentence being spoken. Sentences are numbered starting at 1.
- int sentenceCount Total number of sentences in the job.
Note that sequence numbers apply to the entire job. They do not start from 1 at the beginning of each part.
The following sample code will decode the stream:
QByteArray jobInfo = serialize();
QDataStream stream(jobInfo, QIODevice::ReadOnly);
qint32 priority;
qint32 state;
QString appId;
QString talker;
qint32 sentenceNum;
qint32 sentenceCount;
stream >> priority;
stream >> state;
stream >> appId;
stream >> talker;
stream >> sentenceNum;
stream >> sentenceCount;
void SpeechJob::setAppId |
( |
const QString & |
appId | ) |
|
void SpeechJob::setJobNum |
( |
int |
jobNum | ) |
|
void SpeechJob::setJobPriority |
( |
KSpeech::JobPriority |
jobPriority | ) |
|
void SpeechJob::setSentenceNum |
( |
int |
sentenceNum | ) |
|
void SpeechJob::setSentences |
( |
const QStringList & |
sentences | ) |
|
void SpeechJob::setSeq |
( |
int |
seq | ) |
|
void SpeechJob::setState |
( |
KSpeech::JobState |
state | ) |
|
void SpeechJob::setTalker |
( |
const QString & |
talker | ) |
|
KSpeech::JobState SpeechJob::state |
( |
| ) |
const |
QString SpeechJob::talker |
( |
| ) |
const |
Requested Talker code in which to speak the text.
QString SpeechJob::getNextSentence |
|
read |
KSpeech::JobPriority SpeechJob::jobPriority |
|
readwrite |
int SpeechJob::sentenceCount |
|
read |
int SpeechJob::sentenceNum |
|
readwrite |
QStringList SpeechJob::sentences |
|
readwrite |
QByteArray SpeechJob::serialize |
|
read |
KSpeech::JobState SpeechJob::state |
|
readwrite |
QString SpeechJob::talker |
|
readwrite |
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
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.