Deleting notifies after user close it
[mdictionary] / doc / html / backbone_8h_source.html
1 <!-- This comment will put IE 6, 7 and 8 in quirks mode -->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <title>mDictionary: backbone.h Source File</title>
7 <link href="tabs.css" rel="stylesheet" type="text/css"/>
8 <link href="search/search.css" rel="stylesheet" type="text/css"/>
9 <script type="text/javaScript" src="search/search.js"></script>
10 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
11 </head>
12 <body onload='searchBox.OnSelectItem(0);'>
13 <!-- Generated by Doxygen 1.6.3 -->
14 <script type="text/javascript"><!--
15 var searchBox = new SearchBox("searchBox", "search",false,'Search');
16 --></script>
17 <div class="navigation" id="top">
18   <div class="tabs">
19     <ul>
20       <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
21       <li><a href="annotated.html"><span>Classes</span></a></li>
22       <li class="current"><a href="files.html"><span>Files</span></a></li>
23       <li>
24         <div id="MSearchBox" class="MSearchBoxInactive">
25         <img id="MSearchSelect" src="search/search.png"
26              onmouseover="return searchBox.OnSearchSelectShow()"
27              onmouseout="return searchBox.OnSearchSelectHide()"
28              alt=""/>
29         <input type="text" id="MSearchField" value="Search" accesskey="S"
30              onfocus="searchBox.OnSearchFieldFocus(true)" 
31              onblur="searchBox.OnSearchFieldFocus(false)" 
32              onkeyup="searchBox.OnSearchFieldChange(event)"/>
33         <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
34         </div>
35       </li>
36     </ul>
37   </div>
38   <div class="tabs">
39     <ul>
40       <li><a href="files.html"><span>File&nbsp;List</span></a></li>
41     </ul>
42   </div>
43 <h1>backbone.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*******************************************************************************</span>
44 <a name="l00002"></a>00002 <span class="comment"></span>
45 <a name="l00003"></a>00003 <span class="comment">    This file is part of mDictionary.</span>
46 <a name="l00004"></a>00004 <span class="comment"></span>
47 <a name="l00005"></a>00005 <span class="comment">    mDictionary is free software: you can redistribute it and/or modify</span>
48 <a name="l00006"></a>00006 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
49 <a name="l00007"></a>00007 <span class="comment">    the Free Software Foundation, either version 3 of the License, or</span>
50 <a name="l00008"></a>00008 <span class="comment">    (at your option) any later version.</span>
51 <a name="l00009"></a>00009 <span class="comment"></span>
52 <a name="l00010"></a>00010 <span class="comment">    mDictionary is distributed in the hope that it will be useful,</span>
53 <a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
54 <a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
55 <a name="l00013"></a>00013 <span class="comment">    GNU General Public License for more details.</span>
56 <a name="l00014"></a>00014 <span class="comment"></span>
57 <a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU General Public License</span>
58 <a name="l00016"></a>00016 <span class="comment">    along with mDictionary.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
59 <a name="l00017"></a>00017 <span class="comment"></span>
60 <a name="l00018"></a>00018 <span class="comment">    Copyright 2010 Comarch S.A.</span>
61 <a name="l00019"></a>00019 <span class="comment"></span>
62 <a name="l00020"></a>00020 <span class="comment">*******************************************************************************/</span>
63 <a name="l00021"></a>00021 
64 <a name="l00029"></a>00029 <span class="preprocessor">#ifndef BACKBONE_H</span>
65 <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define BACKBONE_H</span>
66 <a name="l00031"></a>00031 <span class="preprocessor"></span>
67 <a name="l00032"></a>00032 <span class="preprocessor">#include &lt;QObject&gt;</span>
68 <a name="l00033"></a>00033 <span class="preprocessor">#include &lt;QList&gt;</span>
69 <a name="l00034"></a>00034 <span class="preprocessor">#include &lt;QHash&gt;</span>
70 <a name="l00035"></a>00035 <span class="preprocessor">#include &lt;QPluginLoader&gt;</span>
71 <a name="l00036"></a>00036 <span class="preprocessor">#include &lt;QFuture&gt;</span>
72 <a name="l00037"></a>00037 <span class="preprocessor">#include &lt;QtConcurrentRun&gt;</span>
73 <a name="l00038"></a>00038 <span class="preprocessor">#include &lt;QtConcurrentMap&gt;</span>
74 <a name="l00039"></a>00039 <span class="preprocessor">#include &lt;QFutureIterator&gt;</span>
75 <a name="l00040"></a>00040 <span class="preprocessor">#include &lt;QTimer&gt;</span>
76 <a name="l00041"></a>00041 <span class="preprocessor">#include &lt;QTime&gt;</span>
77 <a name="l00042"></a>00042 <span class="preprocessor">#include &lt;QDir&gt;</span>
78 <a name="l00043"></a>00043 <span class="preprocessor">#include &lt;QThread&gt;</span>
79 <a name="l00044"></a>00044 <span class="preprocessor">#include &lt;QSettings&gt;</span>
80 <a name="l00045"></a>00045 <span class="preprocessor">#include &lt;QFutureWatcher&gt;</span>
81 <a name="l00046"></a>00046 <span class="preprocessor">#include &quot;../../includes/CommonDictInterface.h&quot;</span>
82 <a name="l00047"></a>00047 <span class="preprocessor">#include &quot;../../includes/settings.h&quot;</span>
83 <a name="l00048"></a>00048 <span class="preprocessor">#include &quot;../../includes/translation.h&quot;</span>
84 <a name="l00049"></a>00049 <span class="preprocessor">#include &quot;../../includes/History.h&quot;</span>
85 <a name="l00050"></a>00050 <span class="preprocessor">#include &quot;Bookmarks.h&quot;</span>
86 <a name="l00051"></a>00051 
87 <a name="l00052"></a>00052 
88 <a name="l00079"></a><a class="code" href="classBackbone.html">00079</a> <span class="keyword">class </span><a class="code" href="classBackbone.html" title="/file backbone.cpp">Backbone</a> : <span class="keyword">public</span> QObject
89 <a name="l00080"></a>00080 {
90 <a name="l00081"></a>00081     Q_OBJECT
91 <a name="l00082"></a>00082 
92 <a name="l00083"></a>00083 <span class="keyword">public</span>:
93 <a name="l00086"></a>00086     <a class="code" href="classBackbone.html#a68059c8a2598fbbba42c29a332b2472f">Backbone</a>(QString pluginPath=<span class="stringliteral">&quot;&quot;</span>, QString configPath=<span class="stringliteral">&quot;&quot;</span>,
94 <a name="l00087"></a>00087              <span class="keywordtype">bool</span> dry = 0, QObject *parent = 0);
95 <a name="l00088"></a>00088     ~<a class="code" href="classBackbone.html" title="/file backbone.cpp">Backbone</a>();
96 <a name="l00089"></a>00089     <a class="code" href="classBackbone.html#a68059c8a2598fbbba42c29a332b2472f">Backbone</a>(<span class="keyword">const</span> <a class="code" href="classBackbone.html" title="/file backbone.cpp">Backbone</a>&amp; b);
97 <a name="l00090"></a>00090 
98 <a name="l00092"></a>00092     QHash&lt;CommonDictInterface*, bool&gt; <a class="code" href="classBackbone.html#a4b027f51bb4cc3803f6be85bc25d6a4b">getDictionaries</a>();
99 <a name="l00093"></a>00093 
100 <a name="l00095"></a>00095     QList&lt;CommonDictInterface*&gt; <a class="code" href="classBackbone.html#a2fdfa0cf73fda5304635b61455b48db9">getPlugins</a>();
101 <a name="l00096"></a>00096 
102 <a name="l00098"></a>00098     <a class="code" href="classHistory.html">History</a>* <a class="code" href="classBackbone.html#ac91e19871d56331ce0d744b8ea936e00">history</a>();
103 <a name="l00099"></a>00099 
104 <a name="l00101"></a>00101     QMultiHash&lt;QString, Translation*&gt; <a class="code" href="classBackbone.html#adeaabfee86975f65b8e728b8582caa35">result</a>();
105 <a name="l00102"></a>00102 
106 <a name="l00104"></a>00104     <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#addad48903943006b6a4661169f80ee5a">searchLimit</a>() <span class="keyword">const</span>;
107 <a name="l00105"></a>00105 
108 <a name="l00107"></a>00107     QStringList <a class="code" href="classBackbone.html#a56df9bdfbe82998011f95ecb3c5bd7db">htmls</a>();
109 <a name="l00108"></a>00108 
110 <a name="l00109"></a>00109 
111 <a name="l00110"></a>00110 <span class="keyword">public</span> Q_SLOTS:
112 <a name="l00112"></a>00112     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a1ede318bd5d226a8fa566f13452fb07d" title="stops all current searches and emiting searchCanceled signal">stopSearching</a>();
113 <a name="l00113"></a>00113 
114 <a name="l00117"></a>00117     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a3b1f2cf8de594cbd18bef4ca854337e2" title="search for a word translation">search</a>(QString word);
115 <a name="l00118"></a>00118 
116 <a name="l00122"></a>00122     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#ac23b486119652095d956413a6e68afec" title="sets active dictionaries (searches are performed only in active dicts">selectedDictionaries</a>(QList&lt;CommonDictInterface* &gt;);
117 <a name="l00123"></a>00123 
118 <a name="l00128"></a>00128     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#aaf91c7fe4e12d7007ca761dc89c14c8a" title="adds new dictionary and activate it">addDictionary</a>(<a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>* dict, <span class="keywordtype">bool</span> active = 1);
119 <a name="l00129"></a>00129 
120 <a name="l00130"></a>00130 
121 <a name="l00132"></a>00132     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#aa61afbf8ef2e05c0c2a9634fbdccad19" title="stops all current activity - emiting signal">quit</a>();
122 <a name="l00133"></a>00133 
123 <a name="l00134"></a>00134 
124 <a name="l00138"></a>00138     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a61b78f5ee989400a2b2d7630b8145bb8" title="Fired with given interval during searches - checking if translation is ready.">translationReady</a>();
125 <a name="l00139"></a>00139 
126 <a name="l00143"></a>00143     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a0be266198b2ae39efcce38aabb984d61" title="Fired with given interval during html searches - checking if html is ready.">htmlTranslationReady</a>();
127 <a name="l00144"></a>00144 
128 <a name="l00148"></a>00148     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a056fc494ed689f253d83fc2366c07931" title="Removes given dictionary.">removeDictionary</a>(<a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>* dict);
129 <a name="l00149"></a>00149 
130 <a name="l00151"></a>00151     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a3ed4ea8df862807b83dfdec36e4c7ea8" title="saves plugins new state/configuration after each change">dictUpdated</a>();
131 <a name="l00152"></a>00152 
132 <a name="l00156"></a>00156     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a67dbca9402d40e4678f879ff8da3866e" title="Performs search for final translation (html/xml) form.">searchHtml</a>(QList&lt;Translation*&gt;);
133 <a name="l00157"></a>00157 
134 <a name="l00158"></a>00158 
135 <a name="l00163"></a><a class="code" href="classBackbone.html#a3519db3c2884e8d47fdaf4938edc18c3">00163</a>     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a3519db3c2884e8d47fdaf4938edc18c3" title="add bookmarks to given translations (translation object is fetched and added to bookmarks...">addBookmark</a>(QList&lt;Translation*&gt; translations) {
136 <a name="l00164"></a>00164         <span class="keywordflow">foreach</span>(<a class="code" href="classTranslation.html" title="/file translation.h">Translation</a>* translation, translations)
137 <a name="l00165"></a>00165             <span class="comment">//_bookmarks.add(translation);</span>
138 <a name="l00166"></a>00166             QtConcurrent::run(_bookmarks, &amp;<a class="code" href="classBookmarks.html#a9683f8d17fe512b8db231c65e50a0849" title="Adds new word and translation to bookmarks.">Bookmarks::add</a>, translation);
139 <a name="l00167"></a>00167     }
140 <a name="l00168"></a>00168 
141 <a name="l00169"></a>00169 
142 <a name="l00173"></a><a class="code" href="classBackbone.html#a2333e15516ba1276fa334703bfe53bdd">00173</a>     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a2333e15516ba1276fa334703bfe53bdd" title="Remove bookmarks to given translatios.">removeBookmark</a>(QList&lt;Translation*&gt; translations) {
143 <a name="l00174"></a>00174         <span class="keywordflow">foreach</span>(<a class="code" href="classTranslation.html" title="/file translation.h">Translation</a>* translation, translations)
144 <a name="l00175"></a>00175             _bookmarks.<a class="code" href="classBookmarks.html#a39e88874e5f250386e82340c954d71f8" title="Removes word and coresponding translation cache from bookmark list.">remove</a>(translation);
145 <a name="l00176"></a>00176     }
146 <a name="l00177"></a>00177 
147 <a name="l00178"></a>00178 
148 <a name="l00179"></a>00179 
149 <a name="l00182"></a><a class="code" href="classBackbone.html#a48818731460db4cdac3a197a7819d0d2">00182</a>     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a48818731460db4cdac3a197a7819d0d2" title="Remove all bookmarks.">removeAllBookmark</a>(){
150 <a name="l00183"></a>00183         _bookmarks.<a class="code" href="classBookmarks.html#ae92c866a7711e2e10c6ad42ae2ced0ad" title="clars bookmarks database">clear</a>();
151 <a name="l00184"></a>00184     }
152 <a name="l00185"></a>00185 
153 <a name="l00186"></a>00186 
154 <a name="l00191"></a><a class="code" href="classBackbone.html#a2307b5520b76d5751edef237ef6bbe85">00191</a>    <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a2307b5520b76d5751edef237ef6bbe85" title="Searching for list of bookmarks may take some time, so i moved it to new thread (to...">fetchBookmarks</a>() {
155 <a name="l00192"></a>00192         _result.clear();
156 <a name="l00193"></a>00193 
157 <a name="l00194"></a>00194         stopped = <span class="keyword">false</span>;
158 <a name="l00195"></a>00195         dictFin = 1;
159 <a name="l00196"></a>00196         bookmarkFin = 0;
160 <a name="l00197"></a>00197 
161 <a name="l00198"></a>00198         <span class="keywordflow">if</span>(_searchBookmarks) {
162 <a name="l00199"></a>00199            _innerBookmarks = QtConcurrent::run(_bookmarks,
163 <a name="l00200"></a>00200                    &amp;<a class="code" href="classBookmarks.html#ae77e1a6e54a1a100f31b91cf419875be" title="search in bookmarks for given word (wildcards may apply &amp;#39;*&amp;#39; and &amp;#39;?&amp;#39;)...">Bookmarks::searchWordList</a>, QString(<span class="stringliteral">&quot;*&quot;</span>));
164 <a name="l00201"></a>00201            _bookmarkSearchWatcher.setFuture(_innerBookmarks);
165 <a name="l00202"></a>00202         }
166 <a name="l00203"></a>00203    }
167 <a name="l00204"></a>00204 
168 <a name="l00205"></a>00205 
169 <a name="l00206"></a>00206 
170 <a name="l00211"></a>00211     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#aa7147125301d2d2da004cb6d30b8630d" title="Sets settings for backbone: history_size, search_limit, searching backends (search_bookmarks...">setSettings</a>(<a class="code" href="classSettings.html" title="Plugins or dictionaries may need to keep some of configuration between sessions,...">Settings</a>* <a class="code" href="classBackbone.html#a2e2bd187c830e7fd5ad330dc0409f7f0">settings</a>);
171 <a name="l00212"></a>00212 
172 <a name="l00213"></a>00213 
173 <a name="l00217"></a>00217     <a class="code" href="classSettings.html" title="Plugins or dictionaries may need to keep some of configuration between sessions,...">Settings</a>* <a class="code" href="classBackbone.html#a2e2bd187c830e7fd5ad330dc0409f7f0">settings</a>();
174 <a name="l00218"></a>00218 
175 <a name="l00219"></a>00219 
176 <a name="l00220"></a>00220 
177 <a name="l00221"></a>00221 
178 <a name="l00222"></a>00222 Q_SIGNALS:
179 <a name="l00225"></a>00225     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#afef04921ba89c424eb882cc14153de39" title="emmited when backbone is ready to close - after getting stop signal it should kill...">closeOk</a>();
180 <a name="l00226"></a>00226 
181 <a name="l00228"></a>00228     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#ae50cec4f0c49149a46e913b31bcef92c" title="emitted when there are search result ready to fetch">ready</a>();
182 <a name="l00229"></a>00229 
183 <a name="l00231"></a>00231     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a7e218d1df6d69ddf3ddbc5c3d2ba9453" title="emitted when html result is ready to fetch">htmlReady</a>();
184 <a name="l00232"></a>00232 
185 <a name="l00234"></a>00234     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#af3e0f4046a2eada57e5b2bcb82d70dcd" title="throwed when searches are stopped">searchCanceled</a>();
186 <a name="l00235"></a>00235 
187 <a name="l00237"></a>00237     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#adbd6443bc5fff4ecc415b8735c46a95d" title="emmited when bookmark list is ready to fetch">bookmarksReady</a>();
188 <a name="l00238"></a>00238 
189 <a name="l00239"></a>00239 <span class="keyword">private</span> Q_SLOTS:
190 <a name="l00240"></a>00240     <span class="keywordtype">void</span> bookmarksListReady();
191 <a name="l00241"></a>00241 
192 <a name="l00242"></a>00242 
193 <a name="l00243"></a>00243 <span class="keyword">private</span>:
194 <a name="l00244"></a>00244     QHash&lt;CommonDictInterface*, bool&gt; _dicts; <span class="comment">// List of dictionaries</span>
195 <a name="l00245"></a>00245     QList&lt;CommonDictInterface*&gt; _plugins;  <span class="comment">// List of plugins</span>
196 <a name="l00246"></a>00246 
197 <a name="l00247"></a>00247 
198 <a name="l00248"></a>00248     QFuture&lt;QList&lt;Translation*&gt; &gt; _innerResult; <span class="comment">//Res of concurent word search</span>
199 <a name="l00249"></a>00249     QFuture&lt;QString&gt; _innerHtmlResult;  <span class="comment">// Result of html search</span>
200 <a name="l00250"></a>00250     QFuture&lt;QList&lt;Translation*&gt; &gt; _innerBookmarks; <span class="comment">//Res of search in bookmarks</span>
201 <a name="l00251"></a>00251     QFuture&lt;QList&lt;Translation*&gt; &gt; _innerListBookmarks; <span class="comment">//Res of search in bookmarks</span>
202 <a name="l00252"></a>00252     QFuture&lt;QStringList&gt; _innerHtmlBookmarks; <span class="comment">//Html result of bookmarks search</span>
203 <a name="l00253"></a>00253 
204 <a name="l00254"></a>00254     QMultiHash&lt;QString, Translation*&gt; _result; <span class="comment">//Final result of word search</span>
205 <a name="l00255"></a>00255     QStringList _htmlResult; <span class="comment">// Final result of html search</span>
206 <a name="l00256"></a>00256     QList&lt;Translation*&gt; _bookmarksResult; <span class="comment">// Final result of search in bookmarks</span>
207 <a name="l00257"></a>00257 
208 <a name="l00258"></a>00258 
209 <a name="l00259"></a>00259     <span class="comment">// Keeps track of concurent computations</span>
210 <a name="l00260"></a>00260     QFutureWatcher&lt;QList&lt;Translation*&gt; &gt; _resultWatcher;
211 <a name="l00261"></a>00261     QFutureWatcher&lt;QList&lt;Translation*&gt; &gt; _bookmarkWatcher;
212 <a name="l00262"></a>00262     QFutureWatcher&lt;QList&lt;Translation*&gt; &gt; _bookmarkSearchWatcher;
213 <a name="l00263"></a>00263     QFutureWatcher&lt;QString&gt; _htmlResultWatcher;
214 <a name="l00264"></a>00264 
215 <a name="l00265"></a>00265 
216 <a name="l00266"></a>00266     QString _pluginPath, _defaultPluginPath;
217 <a name="l00267"></a>00267     QString _configPath;
218 <a name="l00268"></a>00268     QString _defaultConfigPath;
219 <a name="l00269"></a>00269     <span class="keywordtype">int</span> _searchLimit, _defaultSearchLimit;
220 <a name="l00270"></a>00270     <span class="keywordtype">int</span> _historyLen, _defaultHistoryLen;
221 <a name="l00271"></a>00271 
222 <a name="l00272"></a>00272     <span class="keywordtype">bool</span> dryRun; <span class="comment">// mainly for testing - when true then dosent bother configs etc</span>
223 <a name="l00273"></a>00273     <span class="keywordtype">bool</span> stopped; <span class="comment">// true when user stops searching/fetching</span>
224 <a name="l00274"></a>00274     <span class="keywordtype">bool</span> bookmarkFin, dictFin; <span class="comment">// inform whether givent search type is ready</span>
225 <a name="l00275"></a>00275     <span class="keywordtype">bool</span> _searchDicts, _searchBookmarks; <span class="comment">// whether perform search in given source</span>
226 <a name="l00276"></a>00276 
227 <a name="l00277"></a>00277     <a class="code" href="classBookmarks.html" title="Bookmarks are way to store words that You think You will need to search for often...">Bookmarks</a> _bookmarks;
228 <a name="l00278"></a>00278 
229 <a name="l00279"></a>00279 
230 <a name="l00280"></a>00280     <span class="keywordtype">void</span> init();
231 <a name="l00281"></a>00281 
232 <a name="l00282"></a>00282     QStringList getFilesFromDir(QString dir, QStringList nameFilter);
233 <a name="l00283"></a>00283     <span class="keywordtype">void</span> loadPlugins(); <span class="comment">//&lt; locate and load plugins</span>
234 <a name="l00284"></a>00284     <span class="keywordtype">void</span> loadPrefs(QString fileName);
235 <a name="l00285"></a>00285     <span class="keywordtype">void</span> loadDicts(QString fileName, <span class="keywordtype">bool</span> _default=<span class="keyword">false</span>);
236 <a name="l00286"></a>00286 
237 <a name="l00287"></a>00287     <span class="keywordtype">void</span> saveState(QSettings*, <a class="code" href="classSettings.html" title="Plugins or dictionaries may need to keep some of configuration between sessions,...">Settings</a>*, <span class="keywordtype">bool</span>, uint);
238 <a name="l00288"></a>00288     <span class="keywordtype">void</span> addInternalDictionary(<a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>*, <span class="keywordtype">bool</span>);
239 <a name="l00289"></a>00289     <span class="keywordtype">void</span> savePrefs(QSettings*);
240 <a name="l00290"></a>00290     <span class="keywordtype">void</span> saveDefaultPrefs(QSettings*);
241 <a name="l00291"></a>00291 
242 <a name="l00292"></a>00292     <a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>* plugin(QString type); <span class="comment">// search for given type plugin</span>
243 <a name="l00293"></a>00293     QList&lt;CommonDictInterface*&gt; activeDicts();
244 <a name="l00294"></a>00294 
245 <a name="l00295"></a>00295     <a class="code" href="classHistory.html">History</a>* _history;
246 <a name="l00296"></a>00296 
247 <a name="l00297"></a>00297 };
248 <a name="l00298"></a>00298 
249 <a name="l00299"></a>00299 <span class="preprocessor">#endif // BACKBONE_H</span>
250 </pre></div></div>
251 <!--- window showing the filter options -->
252 <div id="MSearchSelectWindow"
253      onmouseover="return searchBox.OnSearchSelectShow()"
254      onmouseout="return searchBox.OnSearchSelectHide()"
255      onkeydown="return searchBox.OnSearchSelectKey(event)">
256 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a></div>
257
258 <!-- iframe showing the search results (closed by default) -->
259 <div id="MSearchResultsWindow">
260 <iframe src="" frameborder="0" 
261         name="MSearchResults" id="MSearchResults">
262 </iframe>
263 </div>
264
265 <hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Aug 18 16:45:34 2010 for mDictionary by&nbsp;
266 <a href="http://www.doxygen.org/index.html">
267 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
268 </body>
269 </html>