///////////////////////////////////////////////////////////////////////////// // Name: pokemod/Author.h // Purpose: Define an author of a PokéMod // Author: Ben Boeckel // Modified by: Ben Boeckel // Created: Wed Feb 28 20:42:17 2007 // Copyright: ©2007-2008 Ben Boeckel and Nerdy Productions // Licence: // 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 . ///////////////////////////////////////////////////////////////////////////// #ifndef __POKEMOD_AUTHOR__ #define __POKEMOD_AUTHOR__ #include #include "Object.h" class Pokemod; class Author : public Object { public: Author(const Pokemod* par, const int _id); Author(const Pokemod* par, const Author& a, const int _id); Author(const Pokemod* par, const QString& fname, const int _id = -1); void load(const QString& fname, const int _id = -1) throw(Exception); void save() const throw(Exception); void setName(const QString& n); void setEmail(const QString& e); void setRole(const QString& r); QString getName() const; QString getEmail() const; QString getRole() const; Author& operator=(const Author& rhs); private: bool validate() const; QString name; QString email; QString role; }; #endif