summaryrefslogtreecommitdiffstats
path: root/pokemod/Time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Time.cpp')
-rw-r--r--pokemod/Time.cpp28
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;