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
16 class QString;
17 //--------------------
18 
19 //=====================================
22 //=====================================
23 class Setting
24 {
25 public:
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 
38  Setting* getNext();
39 
41  void setNext( Setting* next );
42 
44  void resetSetting();
45 
46 private:
48  QString key;
49 
51  QString value;
52  QString defaultValue;
53 
56 };
57 //----------------------------------------------
58 
59 #endif //CONFIGURATION_SETTING_H
Setting * getNext()
gets a pointer to the next setting in the list
Definition: setting.cpp:41
Setting class, allows the setting and retrieval of setting values.
Definition: setting.h:23
QString getValue()
Definition: setting.cpp:31
Setting * next
pointer to next setting in list
Definition: setting.h:55
QString value
vaue
Definition: setting.h:51
void setNext(Setting *next)
sets a pointer to the next setting in the list
Definition: setting.cpp:46
QString defaultValue
Definition: setting.h:52
Setting(QString key, QString value)
Definition: setting.cpp:18
QString getKey()
Definition: setting.cpp:26
QString key
setting key/identifier
Definition: setting.h:48
void setValue(QString value)
Definition: setting.cpp:36
void resetSetting()
resets value to default
Definition: setting.cpp:51