summaryrefslogtreecommitdiffstats
path: root/sigmod/Time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Time.cpp')
-rw-r--r--sigmod/Time.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/sigmod/Time.cpp b/sigmod/Time.cpp
index e1ced90a..32939e92 100644
--- a/sigmod/Time.cpp
+++ b/sigmod/Time.cpp
@@ -18,17 +18,17 @@
// Header include
#include "Time.h"
-// Pokemod includes
+// Sigmod includes
#include "Macros.h"
-#include "Pokemod.h"
+#include "Sigmod.h"
-Pokemod::Time::Time(const Time& time) :
+Sigmod::Time::Time(const Time& time) :
Object(time.parent(), time.id())
{
*this = time;
}
-Pokemod::Time::Time(const Pokemod* parent, const int id) :
+Sigmod::Time::Time(const Sigmod* parent, const int id) :
Object(parent, id),
m_name(""),
m_hour(0),
@@ -36,20 +36,20 @@ Pokemod::Time::Time(const Pokemod* parent, const int id) :
{
}
-Pokemod::Time::Time(const Time& time, const Pokemod* parent, const int id) :
+Sigmod::Time::Time(const Time& time, const Sigmod* parent, const int id) :
Object(parent, id)
{
*this = time;
}
-Pokemod::Time::Time(const QDomElement& xml, const Pokemod* parent, const int id) :
+Sigmod::Time::Time(const QDomElement& xml, const Sigmod* parent, const int id) :
Object(parent, id)
{
LOAD_ID();
load(xml);
}
-void Pokemod::Time::validate()
+void Sigmod::Time::validate()
{
TEST_BEGIN();
if (m_name.isEmpty())
@@ -59,7 +59,7 @@ void Pokemod::Time::validate()
TEST_END();
}
-void Pokemod::Time::load(const QDomElement& xml)
+void Sigmod::Time::load(const QDomElement& xml)
{
LOAD_BEGIN();
LOAD(name);
@@ -67,7 +67,7 @@ void Pokemod::Time::load(const QDomElement& xml)
LOAD(minute);
}
-QDomElement Pokemod::Time::save() const
+QDomElement Sigmod::Time::save() const
{
SAVE_CREATE();
SAVE(name);
@@ -76,12 +76,12 @@ QDomElement Pokemod::Time::save() const
return xml;
}
-void Pokemod::Time::setName(const QString& name)
+void Sigmod::Time::setName(const QString& name)
{
CHECK(name);
}
-void Pokemod::Time::setHour(const int hour)
+void Sigmod::Time::setHour(const int hour)
{
if (24 <= hour)
emit(error(bounds("hour")));
@@ -89,7 +89,7 @@ void Pokemod::Time::setHour(const int hour)
CHECK(hour);
}
-void Pokemod::Time::setMinute(const int minute)
+void Sigmod::Time::setMinute(const int minute)
{
if (60 <= minute)
emit(error(bounds("minute")));
@@ -97,22 +97,22 @@ void Pokemod::Time::setMinute(const int minute)
CHECK(minute);
}
-QString Pokemod::Time::name() const
+QString Sigmod::Time::name() const
{
return m_name;
}
-int Pokemod::Time::hour() const
+int Sigmod::Time::hour() const
{
return m_hour;
}
-int Pokemod::Time::minute() const
+int Sigmod::Time::minute() const
{
return m_minute;
}
-Pokemod::Time& Pokemod::Time::operator=(const Time& rhs)
+Sigmod::Time& Sigmod::Time::operator=(const Time& rhs)
{
if (this == &rhs)
return *this;