jovie
Go to the documentation of this file.
30 #include <QtCore/QList>
31 #include <QtCore/QString>
34 #include <kdemacros.h>
36 class TalkerCodePrivate;
44 explicit TalkerCode(
const QString &code=QString(),
bool normal=
false);
67 QString language()
const;
68 int voiceType()
const;
72 QString voiceName()
const;
73 QString outputModule()
const;
78 QString fullLanguageCode()
const;
80 void setName(
const QString& name);
81 void setLanguage(
const QString &language);
82 void setVoiceType(
int voiceType);
83 void setVolume(
int volume);
84 void setRate(
int rate);
85 void setPitch(
int pitch);
86 void setVoiceName(
const QString &voiceName);
87 void setOutputModule(
const QString &moduleName);
92 void setFullLanguageCode(
const QString &fullLanguageCode);
97 void setTalkerCode(
const QString& code);
98 QString getTalkerCode()
const;
103 QString getTranslatedDescription()
const;
115 static void splitFullLanguageCode(
const QString &lang, QString &languageCode, QString &countryCode);
128 static QString defaultTalkerCode(
const QString &fullLanguageCode,
const QString &moduleName);
133 static QString languageCodeToLanguage(
const QString &languageCode);
138 static QString translatedVoiceType(
int voiceType);
149 static int findClosestMatchingTalker(
151 const QString& talker,
152 bool assumeDefaultLang =
true);
157 static QString stripPrefer(
const QString& code,
bool& preferred);
164 void parseTalkerCode(
const QString &talkerCode);
166 TalkerCodePrivate *
const d;
169 #endif // TALKERCODE_H
QList< TalkerCode > TalkerCodeList
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.