AlbumShaper  1.0a3
setting.cpp
Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003-2005 by Will Stokes
00003 //==============================================
00004 //  This program is free software; you can redistribute it
00005 //  and/or modify it under the terms of the GNU General
00006 //  Public License as published by the Free Software
00007 //  Foundation; either version 2 of the License, or
00008 //  (at your option) any later version.
00009 //==============================================
00010 
00011 //Systemwide includes
00012 #include <qstring.h>
00013 
00014 //Projectwide includes
00015 #include "setting.h"
00016 
00017 //==============================================
00018 Setting::Setting(QString key, QString value)
00019 {
00020     this->key = key;
00021     this->value = value;
00022     this->defaultValue = value;
00023     next = NULL;
00024 }
00025 //==============================================
00026 QString Setting::getKey()
00027 {
00028   return key;
00029 }
00030 //==============================================
00031 QString Setting::getValue()
00032 {
00033   return value;
00034 }
00035 //==============================================
00036 void Setting::setValue(QString value)
00037 {
00038   this->value = value;
00039 }
00040 //==============================================
00041 Setting* Setting::getNext()
00042 {
00043   return next;
00044 }
00045 //==============================================
00046 void Setting::setNext( Setting* next )
00047 {
00048   this->next = next;
00049 }
00050 //==============================================
00051 void Setting::resetSetting()
00052 {
00053   this->value = this->defaultValue;
00054 }
00055 //==============================================
00056