Sophie

Sophie

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

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: settinggroup.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>settinggroup.h</h1><a href="settinggroup_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_SETTINGGROUP_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define CONFIGURATION_SETTINGGROUP_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="keyword">class </span>QTextStream;
<a name="l00018"></a>00018 <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="l00019"></a>00019 <span class="comment">//--------------------</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="comment">//=====================================</span>
<a name="l00024"></a>00024 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00025"></a><a class="code" href="classSettingGroup.html">00025</a> <span class="keyword">class </span><a class="code" href="classSettingGroup.html" title="SettingGroup contains settings which are releated.">SettingGroup</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a>00027 <span class="comment">//------------------------------------------------------</span>
<a name="l00028"></a>00028 <span class="keyword">public</span>:
<a name="l00030"></a>00030   <a class="code" href="classSettingGroup.html#b8fe7029585bf4b416b8537c49a2b676" title="Creates configuration variables using default avlues.">SettingGroup</a>(QString <a class="code" href="classSettingGroup.html#20a8aa42c634b0447bd22c36b016f5d4" title="groups identifying name">name</a>);
<a name="l00031"></a>00031   
<a name="l00033"></a>00033   <a class="code" href="classSettingGroup.html#2e3e87fca1465744d24a356f1a66473c" title="Destructor.">~SettingGroup</a>();
<a name="l00034"></a>00034 
<a name="l00036"></a>00036   QString <a class="code" href="classSettingGroup.html#49ada5ca78c07434fe8f099550aea8a4" title="Returns group&amp;#39;s name.">getName</a>();
<a name="l00037"></a>00037   
<a name="l00039"></a>00039   QString <a class="code" href="classSettingGroup.html#04d821f68b469eb67c255a261593dc54" title="Returns a setting value.">getValue</a>(QString key);
<a name="l00040"></a>00040   
<a name="l00042"></a>00042   <span class="keywordtype">void</span> <a class="code" href="classSettingGroup.html#4884ce9828c936de787ccaf5024acd94" title="Sets a setting value, create new setting if setting not found.">setValue</a>(QString key, QString value);
<a name="l00043"></a>00043   
<a name="l00045"></a>00045   <a class="code" href="classSettingGroup.html" title="SettingGroup contains settings which are releated.">SettingGroup</a>* <a class="code" href="classSettingGroup.html#8e4f4cb1e014fe366c31a25b180a57db" title="returns the next groupsetting">getNext</a>();
<a name="l00046"></a>00046   
<a name="l00048"></a>00048   <span class="keywordtype">void</span> <a class="code" href="classSettingGroup.html#3944d4fc6f3ed30a0916395590dd0e2d" title="sets the next group setting">setNext</a>(<a class="code" href="classSettingGroup.html" title="SettingGroup contains settings which are releated.">SettingGroup</a>* <a class="code" href="classSettingGroup.html#433a5e987ef682359dc794e349204448" title="pointer to next settingroup">next</a>);
<a name="l00049"></a>00049 
<a name="l00050"></a>00050   <span class="comment">//loads this group from file</span>
<a name="l00051"></a>00051   <span class="keywordtype">void</span> <a class="code" href="classSettingGroup.html#ed28a422e74301266cff9561c2833691">loadSettings</a>(QDomNode&amp; node);
<a name="l00052"></a>00052   
<a name="l00054"></a>00054   <span class="keywordtype">void</span> <a class="code" href="classSettingGroup.html#284af55757783b4cfaf752384e742afc" title="writes out this group to file">saveSettings</a>(QTextStream&amp; stream);
<a name="l00055"></a>00055 
<a name="l00057"></a>00057   <span class="keywordtype">void</span> <a class="code" href="classSettingGroup.html#071f894d5629180bac1cc2429c55f94b" title="resets a setting to its default value">resetSetting</a>(QString key);
<a name="l00058"></a>00058 <span class="comment">//------------------------------------------------------</span>
<a name="l00059"></a>00059 <span class="keyword">private</span>:
<a name="l00061"></a><a class="code" href="classSettingGroup.html#20a8aa42c634b0447bd22c36b016f5d4">00061</a>   QString name;
<a name="l00062"></a>00062   
<a name="l00064"></a><a class="code" href="classSettingGroup.html#fa3863356f975642e0d12b857a260683">00064</a>   <a class="code" href="classSetting.html" title="Setting class, allows the setting and retrieval of setting values.">Setting</a>* <a class="code" href="classSettingGroup.html#fa3863356f975642e0d12b857a260683" title="pointer to first setting in group">firstSetting</a>;
<a name="l00065"></a>00065   
<a name="l00067"></a><a class="code" href="classSettingGroup.html#321c99478e10cf6789e66ede6b5126ec">00067</a>   <a class="code" href="classSetting.html" title="Setting class, allows the setting and retrieval of setting values.">Setting</a>* <a class="code" href="classSettingGroup.html#321c99478e10cf6789e66ede6b5126ec" title="pointer to last setting in group">lastSetting</a>;
<a name="l00068"></a>00068   
<a name="l00070"></a><a class="code" href="classSettingGroup.html#433a5e987ef682359dc794e349204448">00070</a>   <a class="code" href="classSettingGroup.html" title="SettingGroup contains settings which are releated.">SettingGroup</a>* next;
<a name="l00071"></a>00071 };
<a name="l00072"></a>00072 <span class="comment">//------------------------------------------------------</span>
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <span class="preprocessor">#endif //CONFIGURATION_SETTINGGROUP_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>