diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-09 00:50:59 +0000 |
| commit | 60a2ed8ee8aa994c83d382af2ec477e171beb950 (patch) | |
| tree | 6fea6867adee00f22b9d775a6dce15ed875d75e6 /pokemod/Time.cpp | |
| parent | 0737b455ca94351c574aa1a8c83ea30c5b7bc443 (diff) | |
| download | sigen-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/Time.cpp')
| -rw-r--r-- | pokemod/Time.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pokemod/Time.cpp b/pokemod/Time.cpp index 091a22f9..0c2f3fab 100644 --- a/pokemod/Time.cpp +++ b/pokemod/Time.cpp @@ -21,13 +21,13 @@ // Pokemod includes #include "Pokemod.h" -Time::Time(const Time& time) : +Pokemod::Time::Time(const Time& time) : Object("Time", time.parent(), time.id()) { *this = time; } -Time::Time(const Pokemod* parent, const int id) : +Pokemod::Time::Time(const Pokemod* parent, const int id) : Object("Time", parent, id), m_name(""), m_hour(0), @@ -35,19 +35,19 @@ Time::Time(const Pokemod* parent, const int id) : { } -Time::Time(const Time& time, const Pokemod* parent, const int id) : +Pokemod::Time::Time(const Time& time, const Pokemod* parent, const int id) : Object("Time", parent, id) { *this = time; } -Time::Time(const QDomElement& xml, const Pokemod* parent, const int id) : +Pokemod::Time::Time(const QDomElement& xml, const Pokemod* parent, const int id) : Object("Time", parent, id) { load(xml, id); } -void Time::validate() +void Pokemod::Time::validate() { if (m_name.isEmpty()) emit(error("Name is empty")); @@ -55,7 +55,7 @@ void Time::validate() TEST(setMinute, minute); } -void Time::load(const QDomElement& xml, int id) +void Pokemod::Time::load(const QDomElement& xml, int id) { LOAD_ID(); LOAD(QString, name); @@ -63,7 +63,7 @@ void Time::load(const QDomElement& xml, int id) LOAD(int, minute); } -QDomElement Time::save() const +QDomElement Pokemod::Time::save() const { SAVE_CREATE(); SAVE(QString, name); @@ -72,12 +72,12 @@ QDomElement Time::save() const return xml; } -void Time::setName(const QString& name) +void Pokemod::Time::setName(const QString& name) { CHECK(name); } -void Time::setHour(const int hour) +void Pokemod::Time::setHour(const int hour) { if (24 <= hour) { @@ -87,7 +87,7 @@ void Time::setHour(const int hour) CHECK(hour); } -void Time::setMinute(const int minute) +void Pokemod::Time::setMinute(const int minute) { if (60 <= minute) { @@ -97,22 +97,22 @@ void Time::setMinute(const int minute) CHECK(minute); } -QString Time::name() const +QString Pokemod::Time::name() const { return m_name; } -int Time::hour() const +int Pokemod::Time::hour() const { return m_hour; } -int Time::minute() const +int Pokemod::Time::minute() const { return m_minute; } -Time& Time::operator=(const Time& rhs) +Pokemod::Time& Pokemod::Time::operator=(const Time& rhs) { if (this == &rhs) return *this; |
