AlbumShaper 1.0a3
setting.h
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#ifndef CONFIGURATION_SETTING_H
12#define CONFIGURATION_SETTING_H
13
14//--------------------
15//forward declarations
16class QString;
17//--------------------
18
19//=====================================
22//=====================================
24{
25public:
26 Setting(QString key, QString value);
27
28 //returns the setting key
29 QString getKey();
30
31 //returns the value
32 QString getValue();
33
34 //sets the value
35 void setValue(QString value);
36
39
41 void setNext( Setting* next );
42
44 void resetSetting();
45
46private:
48 QString key;
49
51 QString value;
52 QString defaultValue;
53
56};
57//----------------------------------------------
58
59#endif //CONFIGURATION_SETTING_H
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