Merge branch 'master' into cache
[mdictionary] / doc / html / backbone_8h_source.html
index c6a151c..c7f9974 100644 (file)
@@ -61,98 +61,199 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
 <a name="l00019"></a>00019 <span class="comment"></span>
 <a name="l00020"></a>00020 <span class="comment">*******************************************************************************/</span>
 <a name="l00021"></a>00021 
-<a name="l00022"></a>00022 <span class="comment">// Created by Bartosz Szatkowski</span>
-<a name="l00023"></a>00023 
-<a name="l00024"></a>00024 <span class="preprocessor">#ifndef BACKBONE_H</span>
-<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define BACKBONE_H</span>
-<a name="l00026"></a>00026 <span class="preprocessor"></span>
-<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;QObject&gt;</span>
-<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;QList&gt;</span>
-<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;QHash&gt;</span>
-<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;QPluginLoader&gt;</span>
-<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;QFuture&gt;</span>
-<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;QtConcurrentRun&gt;</span>
-<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;QTimer&gt;</span>
-<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;QTime&gt;</span>
-<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;QDir&gt;</span>
-<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;../../includes/CommonDictInterface.h&quot;</span>
-<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;../../includes/settings.h&quot;</span>
-<a name="l00038"></a>00038 <span class="preprocessor">#include &quot;../../includes/translation.h&quot;</span>
-<a name="l00039"></a>00039 
-<a name="l00040"></a>00040 
-<a name="l00042"></a><a class="code" href="classBackbone.html">00042</a> <span class="keyword">class </span><a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a> : <span class="keyword">public</span> QObject
-<a name="l00043"></a>00043 {
-<a name="l00044"></a>00044     Q_OBJECT
-<a name="l00045"></a>00045 
-<a name="l00046"></a>00046 <span class="keyword">public</span>:
-<a name="l00047"></a>00047     <a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>(QObject *parent = 0);
-<a name="l00048"></a>00048     ~<a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>();
-<a name="l00049"></a>00049     <a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>(<span class="keyword">const</span> <a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>&amp; b);
-<a name="l00050"></a>00050 
-<a name="l00052"></a>00052     QHash&lt;CommonDictInterface*, bool&gt; <a class="code" href="classBackbone.html#a4b027f51bb4cc3803f6be85bc25d6a4b">getDictionaries</a>();
-<a name="l00053"></a>00053 
-<a name="l00055"></a>00055     QList&lt;CommonDictInterface*&gt; <a class="code" href="classBackbone.html#a2fdfa0cf73fda5304635b61455b48db9">getPlugins</a>();
-<a name="l00056"></a>00056 
-<a name="l00058"></a>00058     QList&lt;QString&gt; <a class="code" href="classBackbone.html#aad6c6a42de0c933f056354a5c6528f85">getHistory</a>(); <span class="comment">//TODO implementation needed (in future)</span>
-<a name="l00059"></a>00059 
-<a name="l00061"></a>00061     QMultiHash&lt;QString, Translation*&gt; <a class="code" href="classBackbone.html#adeaabfee86975f65b8e728b8582caa35">result</a>();
-<a name="l00062"></a>00062 
-<a name="l00064"></a>00064     <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#addad48903943006b6a4661169f80ee5a">searchLimit</a>() <span class="keyword">const</span>;
-<a name="l00065"></a>00065 
-<a name="l00067"></a>00067     <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#ad0ddecf22c51867e984cb4e6a745d67c">activeSearches</a>() <span class="keyword">const</span>;
-<a name="l00068"></a>00068 
-<a name="l00069"></a>00069 <span class="keyword">public</span> Q_SLOTS:
-<a name="l00071"></a>00071     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a1ede318bd5d226a8fa566f13452fb07d" title="stops all current searches">stopSearching</a>();
-<a name="l00072"></a>00072 
-<a name="l00074"></a>00074     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a3b1f2cf8de594cbd18bef4ca854337e2" title="search for a word translation">search</a>(QString word);
-<a name="l00075"></a>00075 
-<a name="l00077"></a>00077     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#ac23b486119652095d956413a6e68afec" title="sets active dictionaries">selectedDictionaries</a>(QList&lt;CommonDictInterface* &gt;);
-<a name="l00078"></a>00078 
-<a name="l00080"></a>00080     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#af1f9ed9ee7f8b9e869092f2f9cd8cd3f" title="adds new dictionary">addDictionary</a>(<a class="code" href="classCommonDictInterface.html" title="Interface for dict engines plugins.">CommonDictInterface</a>* dict);
-<a name="l00081"></a>00081 
+<a name="l00029"></a>00029 <span class="preprocessor">#ifndef BACKBONE_H</span>
+<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define BACKBONE_H</span>
+<a name="l00031"></a>00031 <span class="preprocessor"></span>
+<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;QObject&gt;</span>
+<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;QList&gt;</span>
+<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;QHash&gt;</span>
+<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;QPluginLoader&gt;</span>
+<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;QFuture&gt;</span>
+<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;QtConcurrentRun&gt;</span>
+<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;QtConcurrentMap&gt;</span>
+<a name="l00039"></a>00039 <span class="preprocessor">#include &lt;QFutureIterator&gt;</span>
+<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;QTimer&gt;</span>
+<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;QTime&gt;</span>
+<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;QDir&gt;</span>
+<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;QThread&gt;</span>
+<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;QSettings&gt;</span>
+<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;QFutureWatcher&gt;</span>
+<a name="l00046"></a>00046 <span class="preprocessor">#include &quot;../../includes/CommonDictInterface.h&quot;</span>
+<a name="l00047"></a>00047 <span class="preprocessor">#include &quot;../../includes/settings.h&quot;</span>
+<a name="l00048"></a>00048 <span class="preprocessor">#include &quot;../../includes/translation.h&quot;</span>
+<a name="l00049"></a>00049 <span class="preprocessor">#include &quot;../../includes/History.h&quot;</span>
+<a name="l00050"></a>00050 <span class="preprocessor">#include &quot;Bookmarks.h&quot;</span>
+<a name="l00051"></a>00051 
+<a name="l00052"></a>00052 
+<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
+<a name="l00080"></a>00080 {
+<a name="l00081"></a>00081     Q_OBJECT
 <a name="l00082"></a>00082 
-<a name="l00084"></a>00084     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#aa61afbf8ef2e05c0c2a9634fbdccad19" title="stops all current activity and kill plugins - be ready to exit">quit</a>();
-<a name="l00085"></a>00085 
-<a name="l00086"></a>00086 
-<a name="l00088"></a>00088     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a1e78cb315afc4aefb1accae4fd2c865b" title="Fired when dictionary call finalTranslation(..) with translation ready.">translation</a>();
-<a name="l00089"></a>00089 
-<a name="l00091"></a>00091     <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);
-<a name="l00092"></a>00092 
-<a name="l00093"></a>00093     <span class="comment">// TODO addToBookmark(Translation*);</span>
-<a name="l00094"></a>00094     <span class="comment">// TODO removeFromBookmark(Translation*);</span>
-<a name="l00095"></a>00095 
-<a name="l00096"></a>00096 Q_SIGNALS:
-<a name="l00099"></a>00099     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#afef04921ba89c424eb882cc14153de39">closeOk</a>();
-<a name="l00100"></a>00100 
-<a name="l00102"></a>00102     <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#ae50cec4f0c49149a46e913b31bcef92c" title="emitted when there are search result ready to fetch">ready</a>();
-<a name="l00103"></a>00103 
-<a name="l00104"></a>00104 
+<a name="l00083"></a>00083 <span class="keyword">public</span>:
+<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>,
+<a name="l00087"></a>00087              <span class="keywordtype">bool</span> dry = 0, QObject *parent = 0);
+<a name="l00088"></a>00088     ~<a class="code" href="classBackbone.html" title="/file backbone.cpp">Backbone</a>();
+<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);
+<a name="l00090"></a>00090 
+<a name="l00092"></a>00092     QHash&lt;CommonDictInterface*, bool&gt; <a class="code" href="classBackbone.html#a4b027f51bb4cc3803f6be85bc25d6a4b">getDictionaries</a>();
+<a name="l00093"></a>00093 
+<a name="l00095"></a>00095     QList&lt;CommonDictInterface*&gt; <a class="code" href="classBackbone.html#a2fdfa0cf73fda5304635b61455b48db9">getPlugins</a>();
+<a name="l00096"></a>00096 
+<a name="l00098"></a>00098     <a class="code" href="classHistory.html">History</a>* <a class="code" href="classBackbone.html#ac91e19871d56331ce0d744b8ea936e00">history</a>();
+<a name="l00099"></a>00099 
+<a name="l00101"></a>00101     QMultiHash&lt;QString, Translation*&gt; <a class="code" href="classBackbone.html#adeaabfee86975f65b8e728b8582caa35">result</a>();
+<a name="l00102"></a>00102 
+<a name="l00104"></a>00104     <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#addad48903943006b6a4661169f80ee5a">searchLimit</a>() <span class="keyword">const</span>;
 <a name="l00105"></a>00105 
-<a name="l00106"></a>00106 <span class="keyword">private</span>:
-<a name="l00107"></a>00107     <span class="keywordtype">void</span> loadPlugins(); <span class="comment">//&lt; locate and load plugins</span>
-<a name="l00108"></a>00108     QHash&lt;CommonDictInterface*, bool&gt; _dicts;
-<a name="l00109"></a>00109     QList&lt;CommonDictInterface*&gt; _plugins;
-<a name="l00110"></a>00110     QList&lt;QFuture&lt;QList&lt;Translation*&gt; &gt; &gt; _innerResult;
-<a name="l00111"></a>00111     QMultiHash&lt;QString, Translation*&gt; _result;
-<a name="l00112"></a>00112     QTimer _timer;
-<a name="l00113"></a>00113     <span class="keywordtype">int</span> _searchLimit;
-<a name="l00114"></a>00114     <span class="keywordtype">int</span> _activeSearchNum;
-<a name="l00115"></a>00115     QTime _time;
-<a name="l00116"></a>00116     <span class="keywordtype">int</span> _interval; <span class="comment">//Search fetching timer.timeout interval in msec</span>
-<a name="l00117"></a>00117     QString _pluginPath;
+<a name="l00107"></a>00107     QStringList <a class="code" href="classBackbone.html#a56df9bdfbe82998011f95ecb3c5bd7db">htmls</a>();
+<a name="l00108"></a>00108 
+<a name="l00109"></a>00109 
+<a name="l00110"></a>00110 <span class="keyword">public</span> Q_SLOTS:
+<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>();
+<a name="l00113"></a>00113 
+<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);
 <a name="l00118"></a>00118 
-<a name="l00119"></a>00119     <span class="keywordtype">void</span> init();
-<a name="l00120"></a>00120 
-<a name="l00121"></a>00121 };
-<a name="l00122"></a>00122 
-<a name="l00123"></a>00123 <span class="preprocessor">#endif // BACKBONE_H</span>
+<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;);
+<a name="l00123"></a>00123 
+<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);
+<a name="l00129"></a>00129 
+<a name="l00130"></a>00130 
+<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>();
+<a name="l00133"></a>00133 
+<a name="l00134"></a>00134 
+<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>();
+<a name="l00139"></a>00139 
+<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>();
+<a name="l00144"></a>00144 
+<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);
+<a name="l00149"></a>00149 
+<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>();
+<a name="l00152"></a>00152 
+<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;);
+<a name="l00157"></a>00157 
+<a name="l00158"></a>00158 
+<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) {
+<a name="l00164"></a>00164         <span class="keywordflow">foreach</span>(<a class="code" href="classTranslation.html" title="/file translation.h">Translation</a>* translation, translations)
+<a name="l00165"></a>00165             <span class="comment">//_bookmarks.add(translation);</span>
+<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);
+<a name="l00167"></a>00167     }
+<a name="l00168"></a>00168 
+<a name="l00169"></a>00169 
+<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) {
+<a name="l00174"></a>00174         <span class="keywordflow">foreach</span>(<a class="code" href="classTranslation.html" title="/file translation.h">Translation</a>* translation, translations)
+<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);
+<a name="l00176"></a>00176     }
+<a name="l00177"></a>00177 
+<a name="l00178"></a>00178 
+<a name="l00179"></a>00179 
+<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>(){
+<a name="l00183"></a>00183         _bookmarks.<a class="code" href="classBookmarks.html#ae92c866a7711e2e10c6ad42ae2ced0ad" title="clars bookmarks database">clear</a>();
+<a name="l00184"></a>00184     }
+<a name="l00185"></a>00185 
+<a name="l00186"></a>00186 
+<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>() {
+<a name="l00192"></a>00192         _result.clear();
+<a name="l00193"></a>00193 
+<a name="l00194"></a>00194         stopped = <span class="keyword">false</span>;
+<a name="l00195"></a>00195         dictFin = 1;
+<a name="l00196"></a>00196         bookmarkFin = 0;
+<a name="l00197"></a>00197 
+<a name="l00198"></a>00198         <span class="keywordflow">if</span>(_searchBookmarks) {
+<a name="l00199"></a>00199            _innerBookmarks = QtConcurrent::run(_bookmarks,
+<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>));
+<a name="l00201"></a>00201            _bookmarkSearchWatcher.setFuture(_innerBookmarks);
+<a name="l00202"></a>00202         }
+<a name="l00203"></a>00203    }
+<a name="l00204"></a>00204 
+<a name="l00205"></a>00205 
+<a name="l00206"></a>00206 
+<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>);
+<a name="l00212"></a>00212 
+<a name="l00213"></a>00213 
+<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>();
+<a name="l00218"></a>00218 
+<a name="l00219"></a>00219 
+<a name="l00220"></a>00220 
+<a name="l00221"></a>00221 
+<a name="l00222"></a>00222 Q_SIGNALS:
+<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>();
+<a name="l00226"></a>00226 
+<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>();
+<a name="l00229"></a>00229 
+<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>();
+<a name="l00232"></a>00232 
+<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>();
+<a name="l00235"></a>00235 
+<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>();
+<a name="l00238"></a>00238 
+<a name="l00239"></a>00239 <span class="keyword">private</span> Q_SLOTS:
+<a name="l00240"></a>00240     <span class="keywordtype">void</span> bookmarksListReady();
+<a name="l00241"></a>00241 
+<a name="l00242"></a>00242 
+<a name="l00243"></a>00243 <span class="keyword">private</span>:
+<a name="l00244"></a>00244     QHash&lt;CommonDictInterface*, bool&gt; _dicts; <span class="comment">// List of dictionaries</span>
+<a name="l00245"></a>00245     QList&lt;CommonDictInterface*&gt; _plugins;  <span class="comment">// List of plugins</span>
+<a name="l00246"></a>00246 
+<a name="l00247"></a>00247 
+<a name="l00248"></a>00248     QFuture&lt;QList&lt;Translation*&gt; &gt; _innerResult; <span class="comment">//Res of concurent word search</span>
+<a name="l00249"></a>00249     QFuture&lt;QString&gt; _innerHtmlResult;  <span class="comment">// Result of html search</span>
+<a name="l00250"></a>00250     QFuture&lt;QList&lt;Translation*&gt; &gt; _innerBookmarks; <span class="comment">//Res of search in bookmarks</span>
+<a name="l00251"></a>00251     QFuture&lt;QList&lt;Translation*&gt; &gt; _innerListBookmarks; <span class="comment">//Res of search in bookmarks</span>
+<a name="l00252"></a>00252     QFuture&lt;QStringList&gt; _innerHtmlBookmarks; <span class="comment">//Html result of bookmarks search</span>
+<a name="l00253"></a>00253 
+<a name="l00254"></a>00254     QMultiHash&lt;QString, Translation*&gt; _result; <span class="comment">//Final result of word search</span>
+<a name="l00255"></a>00255     QStringList _htmlResult; <span class="comment">// Final result of html search</span>
+<a name="l00256"></a>00256     QList&lt;Translation*&gt; _bookmarksResult; <span class="comment">// Final result of search in bookmarks</span>
+<a name="l00257"></a>00257 
+<a name="l00258"></a>00258 
+<a name="l00259"></a>00259     <span class="comment">// Keeps track of concurent computations</span>
+<a name="l00260"></a>00260     QFutureWatcher&lt;QList&lt;Translation*&gt; &gt; _resultWatcher;
+<a name="l00261"></a>00261     QFutureWatcher&lt;QList&lt;Translation*&gt; &gt; _bookmarkWatcher;
+<a name="l00262"></a>00262     QFutureWatcher&lt;QList&lt;Translation*&gt; &gt; _bookmarkSearchWatcher;
+<a name="l00263"></a>00263     QFutureWatcher&lt;QString&gt; _htmlResultWatcher;
+<a name="l00264"></a>00264 
+<a name="l00265"></a>00265 
+<a name="l00266"></a>00266     QString _pluginPath, _defaultPluginPath;
+<a name="l00267"></a>00267     QString _configPath;
+<a name="l00268"></a>00268     QString _defaultConfigPath;
+<a name="l00269"></a>00269     <span class="keywordtype">int</span> _searchLimit, _defaultSearchLimit;
+<a name="l00270"></a>00270     <span class="keywordtype">int</span> _historyLen, _defaultHistoryLen;
+<a name="l00271"></a>00271 
+<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>
+<a name="l00273"></a>00273     <span class="keywordtype">bool</span> stopped; <span class="comment">// true when user stops searching/fetching</span>
+<a name="l00274"></a>00274     <span class="keywordtype">bool</span> bookmarkFin, dictFin; <span class="comment">// inform whether givent search type is ready</span>
+<a name="l00275"></a>00275     <span class="keywordtype">bool</span> _searchDicts, _searchBookmarks; <span class="comment">// whether perform search in given source</span>
+<a name="l00276"></a>00276 
+<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;
+<a name="l00278"></a>00278 
+<a name="l00279"></a>00279 
+<a name="l00280"></a>00280     <span class="keywordtype">void</span> init();
+<a name="l00281"></a>00281 
+<a name="l00282"></a>00282     QStringList getFilesFromDir(QString dir, QStringList nameFilter);
+<a name="l00283"></a>00283     <span class="keywordtype">void</span> loadPlugins(); <span class="comment">//&lt; locate and load plugins</span>
+<a name="l00284"></a>00284     <span class="keywordtype">void</span> loadPrefs(QString fileName);
+<a name="l00285"></a>00285     <span class="keywordtype">void</span> loadDicts(QString fileName, <span class="keywordtype">bool</span> _default=<span class="keyword">false</span>);
+<a name="l00286"></a>00286 
+<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);
+<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>);
+<a name="l00289"></a>00289     <span class="keywordtype">void</span> savePrefs(QSettings*);
+<a name="l00290"></a>00290     <span class="keywordtype">void</span> saveDefaultPrefs(QSettings*);
+<a name="l00291"></a>00291 
+<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>
+<a name="l00293"></a>00293     QList&lt;CommonDictInterface*&gt; activeDicts();
+<a name="l00294"></a>00294 
+<a name="l00295"></a>00295     <a class="code" href="classHistory.html">History</a>* _history;
+<a name="l00296"></a>00296 
+<a name="l00297"></a>00297 };
+<a name="l00298"></a>00298 
+<a name="l00299"></a>00299 <span class="preprocessor">#endif // BACKBONE_H</span>
 </pre></div></div>
 <!--- window showing the filter options -->
 <div id="MSearchSelectWindow"
      onmouseover="return searchBox.OnSearchSelectShow()"
      onmouseout="return searchBox.OnSearchSelectHide()"
      onkeydown="return searchBox.OnSearchSelectKey(event)">
-<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>Functions</a></div>
+<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>
 
 <!-- iframe showing the search results (closed by default) -->
 <div id="MSearchResultsWindow">
@@ -161,7 +262,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
 </iframe>
 </div>
 
-<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Aug 6 11:51:04 2010 for mDictionary by&nbsp;
+<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Aug 18 16:45:34 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>