summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2017-01-23 15:12:52 +0100
committerNico Vertriest <nico.vertriest@qt.io>2017-01-25 15:36:48 +0000
commit9bfe64fddcc528e9aa27b33a17e1435f46ec620d (patch)
tree93598171794cd774396d8a609eda37d9295cd891
parent483208aff4f583df2c9c14d0d549c39d68481196 (diff)
Doc: added doc for class QVoice
Change-Id: If728c67f47ff3d0e7fa2f2ad9bd578cfaf914089 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
-rw-r--r--src/tts/qvoice.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tts/qvoice.cpp b/src/tts/qvoice.cpp
index 8a578fd..4f9563c 100644
--- a/src/tts/qvoice.cpp
+++ b/src/tts/qvoice.cpp
@@ -42,6 +42,13 @@
QT_BEGIN_NAMESPACE
+/*!
+ \class QVoice
+ \brief The QVoice class allows to set and retrieve values of a particular voice
+ \inmodule QtSpeech
+*/
+
+
QVoice::QVoice()
{
d = new QVoicePrivate();
@@ -84,16 +91,25 @@ bool QVoice::operator!=(const QVoice &other)
return !operator==(other);
}
+/*!
+ Assign a \a name to a voice
+*/
void QVoice::setName(const QString &name)
{
d->name = name;
}
+/*!
+ Assign a \a gender to a voice
+*/
void QVoice::setGender(Gender gender)
{
d->gender = gender;
}
+/*!
+ Set the \a age property
+*/
void QVoice::setAge(Age age)
{
d->age = age;
@@ -104,16 +120,25 @@ void QVoice::setData(const QVariant &data)
d->data = data;
}
+/*!
+ Returns the \a name to a voice
+*/
QString QVoice::name() const
{
return d->name;
}
+/*!
+ Returns the age of a voice
+*/
QVoice::Age QVoice::age() const
{
return d->age;
}
+/*!
+ Returns the gender of a voice
+*/
QVoice::Gender QVoice::gender() const
{
return d->gender;
@@ -124,6 +149,9 @@ QVariant QVoice::data() const
return d->data;
}
+/*!̈́
+ Returns the gender name of a voice
+*/
QString QVoice::genderName(QVoice::Gender gender)
{
QString retval;
@@ -142,6 +170,9 @@ QString QVoice::genderName(QVoice::Gender gender)
return retval;
}
+/*!
+ Returns the age class of a voice
+*/
QString QVoice::ageName(QVoice::Age age)
{
QString retval;