summaryrefslogtreecommitdiffstats
path: root/pokemod/Sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Sound.cpp')
-rw-r--r--pokemod/Sound.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/pokemod/Sound.cpp b/pokemod/Sound.cpp
index 374a328f..cdcd480a 100644
--- a/pokemod/Sound.cpp
+++ b/pokemod/Sound.cpp
@@ -21,32 +21,32 @@
// Pokemod includes
#include "Pokemod.h"
-Sound::Sound(const Sound& sound) :
+Pokemod::Sound::Sound(const Sound& sound) :
Object("Sound", sound.parent(), sound.id())
{
*this = sound;
}
-Sound::Sound(const Pokemod* parent, const int id) :
+Pokemod::Sound::Sound(const Pokemod* parent, const int id) :
Object("Sound", parent, id),
m_name(""),
m_data()
{
}
-Sound::Sound(const Sound& sound, const Pokemod* parent, const int id) :
+Pokemod::Sound::Sound(const Sound& sound, const Pokemod* parent, const int id) :
Object("Sound", parent, id)
{
*this = sound;
}
-Sound::Sound(const QDomElement& xml, const Pokemod* parent, const int id) :
+Pokemod::Sound::Sound(const QDomElement& xml, const Pokemod* parent, const int id) :
Object("Sound", parent, id)
{
load(xml, id);
}
-void Sound::validate()
+void Pokemod::Sound::validate()
{
if (m_name.isEmpty())
emit(error("Name is empty"));
@@ -54,14 +54,14 @@ void Sound::validate()
emit(error("Data is empty"));
}
-void Sound::load(const QDomElement& xml, int id)
+void Pokemod::Sound::load(const QDomElement& xml, int id)
{
LOAD_ID();
LOAD(QString, name);
LOAD(QByteArray, data);
}
-QDomElement Sound::save() const
+QDomElement Pokemod::Sound::save() const
{
SAVE_CREATE();
SAVE(QString, name);
@@ -69,27 +69,27 @@ QDomElement Sound::save() const
return xml;
}
-void Sound::setName(const QString& name)
+void Pokemod::Sound::setName(const QString& name)
{
CHECK(name);
}
-void Sound::setData(const QByteArray& data)
+void Pokemod::Sound::setData(const QByteArray& data)
{
CHECK(data);
}
-QString Sound::name() const
+QString Pokemod::Sound::name() const
{
return m_name;
}
-QByteArray Sound::data() const
+QByteArray Pokemod::Sound::data() const
{
return m_data;
}
-Sound& Sound::operator=(const Sound& rhs)
+Pokemod::Sound& Pokemod::Sound::operator=(const Sound& rhs)
{
if (this == &rhs)
return *this;