AlbumShaper
1.0a3
|
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 #ifndef CONFIGURATION_SETTING_H 00012 #define CONFIGURATION_SETTING_H 00013 00014 //-------------------- 00015 //forward declarations 00016 class QString; 00017 //-------------------- 00018 00019 //===================================== 00022 //===================================== 00023 class Setting 00024 { 00025 public: 00026 Setting(QString key, QString value); 00027 00028 //returns the setting key 00029 QString getKey(); 00030 00031 //returns the value 00032 QString getValue(); 00033 00034 //sets the value 00035 void setValue(QString value); 00036 00038 Setting* getNext(); 00039 00041 void setNext( Setting* next ); 00042 00044 void resetSetting(); 00045 00046 private: 00048 QString key; 00049 00051 QString value; 00052 QString defaultValue; 00053 00055 Setting* next;; 00056 }; 00057 //---------------------------------------------- 00058 00059 #endif //CONFIGURATION_SETTING_H