summaryrefslogtreecommitdiffstats
path: root/src/tts/qvoice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tts/qvoice.cpp')
-rw-r--r--src/tts/qvoice.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tts/qvoice.cpp b/src/tts/qvoice.cpp
index d138f94..8a578fd 100644
--- a/src/tts/qvoice.cpp
+++ b/src/tts/qvoice.cpp
@@ -69,6 +69,21 @@ void QVoice::operator=(const QVoice &other)
d->data = other.d->data;
}
+bool QVoice::operator==(const QVoice &other)
+{
+ if (d->name != other.d->name ||
+ d->gender != other.d->gender ||
+ d->age != other.d->age ||
+ d->data != other.d->data)
+ return false;
+ return true;
+}
+
+bool QVoice::operator!=(const QVoice &other)
+{
+ return !operator==(other);
+}
+
void QVoice::setName(const QString &name)
{
d->name = name;