Fixed translation widget refreshing
[mdictionary] / doc / html / settings_8h_source.html
index 55ebc02..fbf8f32 100644 (file)
@@ -67,20 +67,30 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
 <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define SETTINGS_H</span>
 <a name="l00026"></a>00026 <span class="preprocessor"></span>
 <a name="l00027"></a>00027 <span class="preprocessor">#include &lt;QString&gt;</span>
-<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;CommonDictInterface.h&quot;</span>
-<a name="l00029"></a>00029 
-<a name="l00031"></a><a class="code" href="classSettings.html">00031</a> <span class="keyword">class </span><a class="code" href="classSettings.html" title="Plugin specific configuration.">Settings</a> {
-<a name="l00032"></a>00032   <span class="keyword">public</span>:
-<a name="l00035"></a>00035     <span class="keyword">virtual</span> QString <a class="code" href="classSettings.html#a1e05f3990fa55e2ed6548387f21a3baf">value</a>(<span class="keyword">const</span> QString key) <span class="keyword">const</span> = 0;
-<a name="l00036"></a>00036 
-<a name="l00038"></a>00038     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSettings.html#ad2314c4151b4db1dcf7e4d346a2b3992" title="sets key to value">setValue</a>(<span class="keyword">const</span> QString key, <span class="keyword">const</span> QString <a class="code" href="classSettings.html#a1e05f3990fa55e2ed6548387f21a3baf">value</a>) = 0;
-<a name="l00039"></a>00039 
-<a name="l00041"></a>00041     <span class="keyword">virtual</span> <a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>* <a class="code" href="classSettings.html#a8bbfa865b88d43881964328a7e0405dd">type</a>() <span class="keyword">const</span> = 0;
-<a name="l00042"></a>00042 
-<a name="l00044"></a>00044     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSettings.html#ab55ccc5c8e772682c8ab488c625abc21" title="sets settings type to given dictionary">setType</a>(<span class="keyword">const</span> <a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>*) = 0;
-<a name="l00045"></a>00045 };
-<a name="l00046"></a>00046 
-<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
+<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;QHash&gt;</span>
+<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;CommonDictInterface.h&quot;</span>
+<a name="l00030"></a>00030 
+<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>;
+<a name="l00032"></a>00032 
+<a name="l00034"></a><a class="code" href="classSettings.html">00034</a> <span class="keyword">class </span><a class="code" href="classSettings.html" title="Plugin specific configuration.">Settings</a> {
+<a name="l00035"></a>00035   <span class="keyword">public</span>:
+<a name="l00036"></a>00036     <a class="code" href="classSettings.html" title="Plugin specific configuration.">Settings</a>(){}
+<a name="l00039"></a><a class="code" href="classSettings.html#ad20672a43255a3bec46b1bc085f2f6eb">00039</a>     QString <a class="code" href="classSettings.html#ad20672a43255a3bec46b1bc085f2f6eb">value</a>(<span class="keyword">const</span> QString key)<span class="keyword"> const </span>{
+<a name="l00040"></a>00040         <span class="keywordflow">if</span>(!settings.contains(key)) {
+<a name="l00041"></a>00041             <span class="keywordflow">return</span> QString();
+<a name="l00042"></a>00042         }
+<a name="l00043"></a>00043         <span class="keywordflow">return</span> settings[key];
+<a name="l00044"></a>00044     }
+<a name="l00045"></a>00045 
+<a name="l00047"></a><a class="code" href="classSettings.html#ab7388c1a9a18e3afd79de5393ca9803a">00047</a>     <span class="keywordtype">void</span> <a class="code" href="classSettings.html#ab7388c1a9a18e3afd79de5393ca9803a" title="sets key to value">setValue</a>(<span class="keyword">const</span> QString key, <span class="keyword">const</span> QString <a class="code" href="classSettings.html#ad20672a43255a3bec46b1bc085f2f6eb">value</a>) {
+<a name="l00048"></a>00048         settings.insert(key, value);
+<a name="l00049"></a>00049     }
+<a name="l00050"></a>00050 
+<a name="l00051"></a>00051 <span class="keyword">private</span>:
+<a name="l00052"></a>00052     QHash&lt;QString, QString&gt; settings;
+<a name="l00053"></a>00053 };
+<a name="l00054"></a>00054 
+<a name="l00055"></a>00055 <span class="preprocessor">#endif // SETTINGS_H</span>
 </pre></div></div>
 <!--- window showing the filter options -->
 <div id="MSearchSelectWindow"
@@ -96,7 +106,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
 </iframe>
 </div>
 
-<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Aug 4 12:02:54 2010 for mDictionary by&nbsp;
+<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Aug 6 11:51:04 2010 for mDictionary by&nbsp;
 <a href="http://www.doxygen.org/index.html">
 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
 </body>