diff options
Diffstat (limited to 'pokemod/Store.cpp')
-rw-r--r-- | pokemod/Store.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp index c4ec13fd..626b249d 100644 --- a/pokemod/Store.cpp +++ b/pokemod/Store.cpp @@ -22,25 +22,25 @@ #include "Store.h" -PokeGen::PokeMod::Store::Store(const Pokemod& par, const unsigned _id) : +PokeMod::Store::Store(const Pokemod& par, const unsigned _id) : Object(par, _id), name("") { } -PokeGen::PokeMod::Store::Store(const Pokemod& par, const Store& s, const unsigned _id) : +PokeMod::Store::Store(const Pokemod& par, const Store& s, const unsigned _id) : Object(par, _id) { *this = s; } -PokeGen::PokeMod::Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) : +PokeMod::Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) : Object(par, _id) { load(fname, _id); } -bool PokeGen::PokeMod::Store::validate() const +bool PokeMod::Store::validate() const { bool valid = true; pokemod.validationMsg(QString("---Store \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg); @@ -75,7 +75,7 @@ bool PokeGen::PokeMod::Store::validate() const return valid; } -void PokeGen::PokeMod::Store::load(const QString& fname, const unsigned _id) throw(Exception) +void PokeMod::Store::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); if (_id == UINT_MAX) @@ -95,7 +95,7 @@ void PokeGen::PokeMod::Store::load(const QString& fname, const unsigned _id) thr } } -void PokeGen::PokeMod::Store::save() const throw(Exception) +void PokeMod::Store::save() const throw(Exception) { Ini ini; ini.addField("id", id); @@ -106,12 +106,12 @@ void PokeGen::PokeMod::Store::save() const throw(Exception) ini.save(QString("%1/store/%2.pini").arg(pokemod.getPath()).arg(name)); } -void PokeGen::PokeMod::Store::setName(const QString& n) +void PokeMod::Store::setName(const QString& n) { name = n; } -void PokeGen::PokeMod::Store::setItem(const unsigned itm, const bool it) throw(Exception) +void PokeMod::Store::setItem(const unsigned itm, const bool it) throw(Exception) { for (QMutableListIterator<unsigned> i(items); i.hasNext(); ) { @@ -128,12 +128,12 @@ void PokeGen::PokeMod::Store::setItem(const unsigned itm, const bool it) throw(E items.append(itm); } -QString PokeGen::PokeMod::Store::getName() const +QString PokeMod::Store::getName() const { return name; } -bool PokeGen::PokeMod::Store::getItem(const unsigned it) const +bool PokeMod::Store::getItem(const unsigned it) const { for (QListIterator<unsigned> i(items); i.hasNext(); ) { @@ -143,7 +143,7 @@ bool PokeGen::PokeMod::Store::getItem(const unsigned it) const return false; } -PokeGen::PokeMod::Store& PokeGen::PokeMod::Store::operator=(const Store& rhs) +PokeMod::Store& PokeMod::Store::operator=(const Store& rhs) { if (this == &rhs) return *this; |