AlbumShaper 1.0a3
setting.cpp
Go to the documentation of this file.
1//==============================================
2// copyright : (C) 2003-2005 by Will Stokes
3//==============================================
4// This program is free software; you can redistribute it
5// and/or modify it under the terms of the GNU General
6// Public License as published by the Free Software
7// Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//==============================================
10
11//Systemwide includes
12#include <qstring.h>
13
14//Projectwide includes
15#include "setting.h"
16
17//==============================================
18Setting::Setting(QString key, QString value)
19{
20 this->key = key;
21 this->value = value;
22 this->defaultValue = value;
23 next = NULL;
24}
25//==============================================
27{
28 return key;
29}
30//==============================================
32{
33 return value;
34}
35//==============================================
36void Setting::setValue(QString value)
37{
38 this->value = value;
39}
40//==============================================
42{
43 return next;
44}
45//==============================================
47{
48 this->next = next;
49}
50//==============================================
52{
53 this->value = this->defaultValue;
54}
55//==============================================
56
Setting class, allows the setting and retrieval of setting values.
Definition setting.h:24
QString getKey()
Definition setting.cpp:26
QString value
vaue
Definition setting.h:51
Setting * next
pointer to next setting in list
Definition setting.h:55
Setting * getNext()
gets a pointer to the next setting in the list
Definition setting.cpp:41
void setValue(QString value)
Definition setting.cpp:36
void resetSetting()
resets value to default
Definition setting.cpp:51
void setNext(Setting *next)
sets a pointer to the next setting in the list
Definition setting.cpp:46
QString getValue()
Definition setting.cpp:31
QString defaultValue
Definition setting.h:52
QString key
setting key/identifier
Definition setting.h:48
Setting(QString key, QString value)
Definition setting.cpp:18