Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 4f45e7bdfd4a5ff17f5f8eaab90d017f > files > 1573

albumshaper-2.1-6mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>AlbumShaper: setting.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>setting.h</h1><a href="setting_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==============================================</span>
<a name="l00002"></a>00002 <span class="comment">//  copyright            : (C) 2003-2005 by Will Stokes</span>
<a name="l00003"></a>00003 <span class="comment">//==============================================</span>
<a name="l00004"></a>00004 <span class="comment">//  This program is free software; you can redistribute it </span>
<a name="l00005"></a>00005 <span class="comment">//  and/or modify it under the terms of the GNU General </span>
<a name="l00006"></a>00006 <span class="comment">//  Public License as published by the Free Software </span>
<a name="l00007"></a>00007 <span class="comment">//  Foundation; either version 2 of the License, or  </span>
<a name="l00008"></a>00008 <span class="comment">//  (at your option) any later version.         </span>
<a name="l00009"></a>00009 <span class="comment">//==============================================</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef CONFIGURATION_SETTING_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define CONFIGURATION_SETTING_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="comment">//--------------------</span>
<a name="l00015"></a>00015 <span class="comment">//forward declarations</span>
<a name="l00016"></a>00016 <span class="keyword">class </span>QString;
<a name="l00017"></a>00017 <span class="comment">//--------------------</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">//=====================================</span>
<a name="l00022"></a>00022 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00023"></a><a class="code" href="classSetting.html">00023</a> <span class="keyword">class </span><a class="code" href="classSetting.html" title="Setting class, allows the setting and retrieval of setting values.">Setting</a>
<a name="l00024"></a>00024 {
<a name="l00025"></a>00025 <span class="keyword">public</span>:
<a name="l00026"></a>00026   <a class="code" href="classSetting.html#e989e0021dd231259aff9ea4f76bb358">Setting</a>(QString <a class="code" href="classSetting.html#d4e920a8535ba70053ad99abca91f7cd" title="setting key/identifier">key</a>, QString <a class="code" href="classSetting.html#1e503919b3b12b02ea18b45d7bd5e168" title="vaue">value</a>);
<a name="l00027"></a>00027   
<a name="l00028"></a>00028   <span class="comment">//returns the setting key</span>
<a name="l00029"></a>00029   QString <a class="code" href="classSetting.html#18aa160dfdff785d10d0e0352cbd1860">getKey</a>();
<a name="l00030"></a>00030   
<a name="l00031"></a>00031   <span class="comment">//returns the value</span>
<a name="l00032"></a>00032   QString <a class="code" href="classSetting.html#88484910529421d1a925e71189b84f45">getValue</a>();
<a name="l00033"></a>00033   
<a name="l00034"></a>00034   <span class="comment">//sets the value</span>
<a name="l00035"></a>00035   <span class="keywordtype">void</span> <a class="code" href="classSetting.html#79261ad03b18839e900561f23e499d49">setValue</a>(QString value);
<a name="l00036"></a>00036   
<a name="l00038"></a>00038   <a class="code" href="classSetting.html" title="Setting class, allows the setting and retrieval of setting values.">Setting</a>* <a class="code" href="classSetting.html#368ad2c551ec7651704b50d933c091e4" title="gets a pointer to the next setting in the list">getNext</a>();
<a name="l00039"></a>00039   
<a name="l00041"></a>00041   <span class="keywordtype">void</span> <a class="code" href="classSetting.html#8325c0b55e697bd220bdeffce7092a82" title="sets a pointer to the next setting in the list">setNext</a>( <a class="code" href="classSetting.html" title="Setting class, allows the setting and retrieval of setting values.">Setting</a>* <a class="code" href="classSetting.html#2492ba2417efd87476be79a9a12b0090" title="pointer to next setting in list">next</a> );
<a name="l00042"></a>00042 
<a name="l00044"></a>00044   <span class="keywordtype">void</span> <a class="code" href="classSetting.html#7a36eb5be1dd827812d4c3b32d257408" title="resets value to default">resetSetting</a>();
<a name="l00045"></a>00045   
<a name="l00046"></a>00046 <span class="keyword">private</span>:
<a name="l00048"></a><a class="code" href="classSetting.html#d4e920a8535ba70053ad99abca91f7cd">00048</a>   QString key;
<a name="l00049"></a>00049   
<a name="l00051"></a><a class="code" href="classSetting.html#1e503919b3b12b02ea18b45d7bd5e168">00051</a>   QString value;
<a name="l00052"></a><a class="code" href="classSetting.html#8ef1099b152ff3e91a5737d09b9efce9">00052</a>   QString <a class="code" href="classSetting.html#8ef1099b152ff3e91a5737d09b9efce9">defaultValue</a>;
<a name="l00053"></a>00053   
<a name="l00055"></a><a class="code" href="classSetting.html#2492ba2417efd87476be79a9a12b0090">00055</a>   <a class="code" href="classSetting.html" title="Setting class, allows the setting and retrieval of setting values.">Setting</a>* next;;
<a name="l00056"></a>00056 };
<a name="l00057"></a>00057 <span class="comment">//----------------------------------------------</span>
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="preprocessor">#endif //CONFIGURATION_SETTING_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:27 2009 for AlbumShaper by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>