diff options
Diffstat (limited to 'sigmod/EggGroup.h')
-rw-r--r-- | sigmod/EggGroup.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sigmod/EggGroup.h b/sigmod/EggGroup.h new file mode 100644 index 00000000..5d2927f7 --- /dev/null +++ b/sigmod/EggGroup.h @@ -0,0 +1,54 @@ +/* + * Copyright 2007-2008 Ben Boeckel <MathStuf@gmail.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __POKEMOD_EGGGROUP__ +#define __POKEMOD_EGGGROUP__ + +// Pokemod includes +#include "Object.h" + +namespace Pokemod +{ +// Forward declarations +class Pokemod; + +class POKEMOD_EXPORT EggGroup : public Object +{ + Q_OBJECT + + public: + EggGroup(const EggGroup& eggGroup); + EggGroup(const Pokemod* parent, const int id); + EggGroup(const EggGroup& eggGroup, const Pokemod* parent, const int id); + EggGroup(const QDomElement& xml, const Pokemod* parent, const int id = -1); + + void validate(); + + void load(const QDomElement& xml); + QDomElement save() const; + + void setName(const QString& name); + + QString name() const; + + EggGroup& operator=(const EggGroup& rhs); + private: + QString m_name; +}; +} + +#endif |