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 #include "category.hpp" 00016 00017 Category::Category() 00018 : QObject() 00019 { 00020 // NOOP 00021 } 00022 00023 Category::~Category() 00024 { 00025 // NOOP 00026 } 00027 00028 void Category::setId(QString newid) 00029 { 00030 p_id = newid; 00031 } 00032 00033 void Category::setPosId(int newid) 00034 { 00035 p_posId = newid; 00036 } 00037 00038 void Category::setName(QString newName) 00039 { 00040 p_name = newName; 00041 } 00042 00043 void Category::setDescription(QString newDescription) 00044 { 00045 p_description = newDescription; 00046 } 00047 00048 void Category::setColor(QColor newColor) 00049 { 00050 p_color = newColor; 00051 }