summaryrefslogtreecommitdiffstats
path: root/pokemod/Sound.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-06-09 00:50:59 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-06-09 00:50:59 +0000
commit60a2ed8ee8aa994c83d382af2ec477e171beb950 (patch)
tree6fea6867adee00f22b9d775a6dce15ed875d75e6 /pokemod/Sound.cpp
parent0737b455ca94351c574aa1a8c83ea30c5b7bc443 (diff)
downloadsigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.gz
sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.tar.xz
sigen-60a2ed8ee8aa994c83d382af2ec477e171beb950.zip
[FIX] All modules now use their own namespace
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22
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;