diff options
Diffstat (limited to 'pokemod/Time.cpp')
| -rw-r--r-- | pokemod/Time.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemod/Time.cpp b/pokemod/Time.cpp index c33d0381..b8e3215d 100644 --- a/pokemod/Time.cpp +++ b/pokemod/Time.cpp @@ -23,7 +23,7 @@ #include "Pokemod.h" #include "Time.h" -PokeMod::Time::Time(const Pokemod& par, const unsigned _id) : +Time::Time(const Pokemod& par, const unsigned _id) : Object(par, _id), name(""), startHour(0), @@ -31,19 +31,19 @@ PokeMod::Time::Time(const Pokemod& par, const unsigned _id) : { } -PokeMod::Time::Time(const Pokemod& par, const Time& t, const unsigned _id) : +Time::Time(const Pokemod& par, const Time& t, const unsigned _id) : Object(par, _id) { *this = t; } -PokeMod::Time::Time(const Pokemod& par, const QString& fname, const unsigned _id) : +Time::Time(const Pokemod& par, const QString& fname, const unsigned _id) : Object(par, _id) { load(fname, _id); } -bool PokeMod::Time::validate() const +bool Time::validate() const { bool valid = true; pokemod.validationMsg(QString("---Time \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg); @@ -65,7 +65,7 @@ bool PokeMod::Time::validate() const return valid; } -void PokeMod::Time::load(const QString& fname, const unsigned _id) throw(Exception) +void Time::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); if (_id == UINT_MAX) @@ -77,7 +77,7 @@ void PokeMod::Time::load(const QString& fname, const unsigned _id) throw(Excepti ini.getValue("startMinute", startMinute, 0); } -void PokeMod::Time::save() const throw(Exception) +void Time::save() const throw(Exception) { Ini ini; ini.addField("id", id); @@ -87,41 +87,41 @@ void PokeMod::Time::save() const throw(Exception) ini.save(QString("%1/time/%2.pini").arg(pokemod.getPath()).arg(name)); } -void PokeMod::Time::setName(const QString& n) +void Time::setName(const QString& n) { name = n; } -void PokeMod::Time::setStartHour(const unsigned h) throw(BoundsException) +void Time::setStartHour(const unsigned h) throw(BoundsException) { if (24 <= h) throw(BoundsException("Time", "startHour")); startHour = h; } -void PokeMod::Time::setStartMinute(const unsigned m) throw(BoundsException) +void Time::setStartMinute(const unsigned m) throw(BoundsException) { if (60 <= m) throw(BoundsException("Time", "startMinute")); startMinute = m; } -QString PokeMod::Time::getName() const +QString Time::getName() const { return name; } -unsigned PokeMod::Time::getStartHour() const +unsigned Time::getStartHour() const { return startHour; } -unsigned PokeMod::Time::getStartMinute() const +unsigned Time::getStartMinute() const { return startMinute; } -PokeMod::Time& PokeMod::Time::operator=(const Time& rhs) +Time& Time::operator=(const Time& rhs) { if (this == &rhs) return *this; |
