00001 /* 00002 Modular Psi - A graph tracker of the Parapsychologcal scientific development 00003 Copyright (C) 2005 Leonardo Stern 00004 00005 This program is free software; you can redistribute it and/or modify it under 00006 the terms of the Common Public License Version 1.0 or (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00009 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00010 See the Common Public License for more details. 00011 00012 You should have received a copy of the Common Public License along with this program; 00013 */ 00014 00015 00016 #ifndef _CATEGORY_HPP_ 00017 #define _CATEGORY_HPP_ 00018 00019 #include <qstring.h> 00020 #include <qcolor.h> 00021 #include <qobject.h> 00022 00026 class Category : public QObject 00027 { 00028 public : 00032 Category( ); 00036 ~Category( ); 00037 00038 //Set 00039 void setId (QString newId); 00040 void setColor (QColor newColor); 00041 void setDescription (QString description); 00042 void setName(QString newName); 00043 void setPosId (int newId); 00044 00045 //Get 00046 int posId() { return p_posId; } 00047 QString id() { return p_id; } 00048 QString name() { return p_name; } 00049 QColor color() { return p_color; } 00050 QString description() { return p_description; } 00051 00052 protected : 00056 int p_posId; 00060 QString p_id; 00064 QString p_name; 00068 QColor p_color; 00072 QString p_description; 00073 }; 00074 00075 #endif //_CATEGORY_HPP_