Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 4272c97b1af3db3f39a3b697bcba7e48 > files > 1569

albumshaper-2.1-7mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>AlbumShaper: setting.cpp 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.6.2 -->
<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.cpp</h1><a href="setting_8cpp.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="comment">//Systemwide includes</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;qstring.h&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="comment">//Projectwide includes</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="setting_8h.html">setting.h</a>&quot;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="comment">//==============================================</span>
<a name="l00018"></a><a class="code" href="classSetting.html#ae989e0021dd231259aff9ea4f76bb358">00018</a> <a class="code" href="classSetting.html#ae989e0021dd231259aff9ea4f76bb358">Setting::Setting</a>(QString key, QString value)
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020     this-&gt;key = key;
<a name="l00021"></a>00021     this-&gt;value = value;
<a name="l00022"></a>00022     this-&gt;<a class="code" href="classSetting.html#a8ef1099b152ff3e91a5737d09b9efce9">defaultValue</a> = value;
<a name="l00023"></a>00023     <a class="code" href="classSetting.html#a2492ba2417efd87476be79a9a12b0090" title="pointer to next setting in list">next</a> = NULL;
<a name="l00024"></a>00024 }
<a name="l00025"></a>00025 <span class="comment">//==============================================</span>
<a name="l00026"></a><a class="code" href="classSetting.html#a18aa160dfdff785d10d0e0352cbd1860">00026</a> QString <a class="code" href="classSetting.html#a18aa160dfdff785d10d0e0352cbd1860">Setting::getKey</a>()
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028   <span class="keywordflow">return</span> <a class="code" href="classSetting.html#ad4e920a8535ba70053ad99abca91f7cd" title="setting key/identifier">key</a>;
<a name="l00029"></a>00029 }
<a name="l00030"></a>00030 <span class="comment">//==============================================</span>
<a name="l00031"></a><a class="code" href="classSetting.html#a88484910529421d1a925e71189b84f45">00031</a> QString <a class="code" href="classSetting.html#a88484910529421d1a925e71189b84f45">Setting::getValue</a>()
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033   <span class="keywordflow">return</span> <a class="code" href="classSetting.html#a1e503919b3b12b02ea18b45d7bd5e168" title="vaue">value</a>;
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035 <span class="comment">//==============================================</span>
<a name="l00036"></a><a class="code" href="classSetting.html#a79261ad03b18839e900561f23e499d49">00036</a> <span class="keywordtype">void</span> <a class="code" href="classSetting.html#a79261ad03b18839e900561f23e499d49">Setting::setValue</a>(QString value)
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038   this-&gt;value = value;
<a name="l00039"></a>00039 }
<a name="l00040"></a>00040 <span class="comment">//==============================================</span>
<a name="l00041"></a><a class="code" href="classSetting.html#a368ad2c551ec7651704b50d933c091e4">00041</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#a368ad2c551ec7651704b50d933c091e4" title="gets a pointer to the next setting in the list">Setting::getNext</a>()
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043   <span class="keywordflow">return</span> <a class="code" href="classSetting.html#a2492ba2417efd87476be79a9a12b0090" title="pointer to next setting in list">next</a>;
<a name="l00044"></a>00044 }
<a name="l00045"></a>00045 <span class="comment">//==============================================</span>
<a name="l00046"></a><a class="code" href="classSetting.html#a8325c0b55e697bd220bdeffce7092a82">00046</a> <span class="keywordtype">void</span> <a class="code" href="classSetting.html#a8325c0b55e697bd220bdeffce7092a82" title="sets a pointer to the next setting in the list">Setting::setNext</a>( <a class="code" href="classSetting.html" title="Setting class, allows the setting and retrieval of setting values.">Setting</a>* next )
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048   this-&gt;next = next;
<a name="l00049"></a>00049 }
<a name="l00050"></a>00050 <span class="comment">//==============================================</span>
<a name="l00051"></a><a class="code" href="classSetting.html#a7a36eb5be1dd827812d4c3b32d257408">00051</a> <span class="keywordtype">void</span> <a class="code" href="classSetting.html#a7a36eb5be1dd827812d4c3b32d257408" title="resets value to default">Setting::resetSetting</a>()
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053   this-&gt;<a class="code" href="classSetting.html#a1e503919b3b12b02ea18b45d7bd5e168" title="vaue">value</a> = this-&gt;<a class="code" href="classSetting.html#a8ef1099b152ff3e91a5737d09b9efce9">defaultValue</a>;
<a name="l00054"></a>00054 }
<a name="l00055"></a>00055 <span class="comment">//==============================================</span>
<a name="l00056"></a>00056 
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>