1 /*
2     SPDX-FileCopyrightText: 2013 Andreas Cord-Landwehr <cordlandwehr@kde.org>
3 
4     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5 */
6 
7 #include "phoneme.h"
8 #include "artikulate_debug.h"
9 
Phoneme(QObject * parent)10 Phoneme::Phoneme(QObject *parent)
11     : QObject(parent)
12 {
13 }
14 
id() const15 QString Phoneme::id() const
16 {
17     return m_id;
18 }
19 
setId(const QString & id)20 void Phoneme::setId(const QString &id)
21 {
22     if (id != m_id) {
23         m_id = id;
24         emit idChanged();
25     }
26 }
27 
title() const28 QString Phoneme::title() const
29 {
30     return m_title;
31 }
32 
setTitle(const QString & title)33 void Phoneme::setTitle(const QString &title)
34 {
35     if (QString::compare(title, m_title) != 0) {
36         m_title = title;
37         emit titleChanged();
38     }
39 }
40