<a name="l00033"></a>00033 <span class="preprocessor">#include <QTimer></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include <QTime></span>
<a name="l00035"></a>00035 <span class="preprocessor">#include <QDir></span>
-<a name="l00036"></a>00036 <span class="preprocessor">#include "../../includes/CommonDictInterface.h"</span>
-<a name="l00037"></a>00037 <span class="preprocessor">#include "../../includes/settings.h"</span>
-<a name="l00038"></a>00038 <span class="preprocessor">#include "../../includes/translation.h"</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>& b);
-<a name="l00050"></a>00050
-<a name="l00052"></a>00052 QHash<CommonDictInterface*, bool> <a class="code" href="classBackbone.html#a4b027f51bb4cc3803f6be85bc25d6a4b">getDictionaries</a>();
-<a name="l00053"></a>00053
-<a name="l00055"></a>00055 QList<CommonDictInterface*> <a class="code" href="classBackbone.html#a2fdfa0cf73fda5304635b61455b48db9">getPlugins</a>();
+<a name="l00036"></a>00036 <span class="preprocessor">#include <QSettings></span>
+<a name="l00037"></a>00037 <span class="preprocessor">#include "../../includes/CommonDictInterface.h"</span>
+<a name="l00038"></a>00038 <span class="preprocessor">#include "../../includes/settings.h"</span>
+<a name="l00039"></a>00039 <span class="preprocessor">#include "../../includes/translation.h"</span>
+<a name="l00040"></a>00040 <span class="preprocessor">#include "../../includes/History.h"</span>
+<a name="l00041"></a>00041
+<a name="l00042"></a>00042
+<a name="l00053"></a><a class="code" href="classBackbone.html">00053</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="l00054"></a>00054 {
+<a name="l00055"></a>00055 Q_OBJECT
<a name="l00056"></a>00056
-<a name="l00058"></a>00058 QList<QString> <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<QString, Translation*> <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<CommonDictInterface* >);
-<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="l00057"></a>00057 <span class="keyword">public</span>:
+<a name="l00060"></a>00060 <a class="code" href="classBackbone.html#a68059c8a2598fbbba42c29a332b2472f">Backbone</a>(QString pluginPath=<span class="stringliteral">""</span>, QString configPath=<span class="stringliteral">""</span>,
+<a name="l00061"></a>00061 <span class="keywordtype">bool</span> dry = 0, QObject *parent = 0);
+<a name="l00062"></a>00062 ~<a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>();
+<a name="l00063"></a>00063 <a class="code" href="classBackbone.html#a68059c8a2598fbbba42c29a332b2472f">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>& b);
+<a name="l00064"></a>00064
+<a name="l00066"></a>00066 QHash<CommonDictInterface*, bool> <a class="code" href="classBackbone.html#a4b027f51bb4cc3803f6be85bc25d6a4b">getDictionaries</a>();
+<a name="l00067"></a>00067
+<a name="l00069"></a>00069 QList<CommonDictInterface*> <a class="code" href="classBackbone.html#a2fdfa0cf73fda5304635b61455b48db9">getPlugins</a>();
+<a name="l00070"></a>00070
+<a name="l00072"></a>00072 <a class="code" href="classHistory.html">History</a>* <a class="code" href="classBackbone.html#ac91e19871d56331ce0d744b8ea936e00">history</a>();
+<a name="l00073"></a>00073
+<a name="l00075"></a>00075 QMultiHash<QString, Translation*> <a class="code" href="classBackbone.html#adeaabfee86975f65b8e728b8582caa35">result</a>();
+<a name="l00076"></a>00076
+<a name="l00078"></a>00078 <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#addad48903943006b6a4661169f80ee5a">searchLimit</a>() <span class="keyword">const</span>;
+<a name="l00079"></a>00079
+<a name="l00081"></a>00081 <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#ad0ddecf22c51867e984cb4e6a745d67c">activeSearches</a>() <span class="keyword">const</span>;
<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="l00083"></a>00083
+<a name="l00084"></a>00084
+<a name="l00086"></a>00086 QStringList <a class="code" href="classBackbone.html#a56df9bdfbe82998011f95ecb3c5bd7db">htmls</a>();
+<a name="l00087"></a>00087
+<a name="l00088"></a>00088
+<a name="l00089"></a>00089 <span class="keyword">public</span> Q_SLOTS:
+<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a1ede318bd5d226a8fa566f13452fb07d" title="stops all current searches">stopSearching</a>();
<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="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">//< locate and load plugins</span>
-<a name="l00108"></a>00108 QHash<CommonDictInterface*, bool> _dicts;
-<a name="l00109"></a>00109 QList<CommonDictInterface*> _plugins;
-<a name="l00110"></a>00110 QList<QFuture<QList<Translation*> > > _innerResult;
-<a name="l00111"></a>00111 QMultiHash<QString, Translation*> _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="l00096"></a>00096 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a3b1f2cf8de594cbd18bef4ca854337e2" title="search for a word translation">search</a>(QString word);
+<a name="l00097"></a>00097
+<a name="l00101"></a>00101 <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<CommonDictInterface* >);
+<a name="l00102"></a>00102
+<a name="l00107"></a>00107 <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="l00108"></a>00108
+<a name="l00109"></a>00109
+<a name="l00111"></a>00111 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#aa61afbf8ef2e05c0c2a9634fbdccad19" title="stops all current activity - emiting signal">quit</a>();
+<a name="l00112"></a>00112
+<a name="l00113"></a>00113
+<a name="l00117"></a>00117 <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="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#a0be266198b2ae39efcce38aabb984d61" title="Fired with given interval during html searches - checking if html is ready.">htmlTranslationReady</a>();
+<a name="l00123"></a>00123
+<a name="l00127"></a>00127 <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="l00128"></a>00128
+<a name="l00130"></a>00130 <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="l00131"></a>00131
+<a name="l00135"></a>00135 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a67dbca9402d40e4678f879ff8da3866e" title="Performs search for final translation (html/xml) form.">searchHtml</a>(QList<Translation*>);
+<a name="l00136"></a>00136
+<a name="l00137"></a>00137 <span class="comment">// TODO addToBookmark(Translation*);</span>
+<a name="l00138"></a>00138 <span class="comment">// TODO removeFromBookmark(Translation*);</span>
+<a name="l00139"></a>00139
+<a name="l00140"></a>00140 Q_SIGNALS:
+<a name="l00143"></a>00143 <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="l00144"></a>00144
+<a name="l00146"></a>00146 <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="l00147"></a>00147
+<a name="l00149"></a>00149 <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="l00150"></a>00150
+<a name="l00151"></a>00151
+<a name="l00152"></a>00152
+<a name="l00153"></a>00153 <span class="keyword">private</span>:
+<a name="l00154"></a>00154 QHash<CommonDictInterface*, bool> _dicts;
+<a name="l00155"></a>00155 QList<CommonDictInterface*> _plugins;
+<a name="l00156"></a>00156 QList<QFuture<QList<Translation*> > > _innerResult;
+<a name="l00157"></a>00157 QList<QFuture<QString> > _innerHtmlResult;
+<a name="l00158"></a>00158 QMultiHash<QString, Translation*> _result;
+<a name="l00159"></a>00159 QStringList _htmlResult;
+<a name="l00160"></a>00160 QTimer _timerSearch, _timerHtmlSearch;
+<a name="l00161"></a>00161 QTime _time;
+<a name="l00162"></a>00162 QString _pluginPath, _defaultPluginPath;
+<a name="l00163"></a>00163 QString _configPath;
+<a name="l00164"></a>00164 QString _defaultConfigPath;
+<a name="l00165"></a>00165 <span class="keywordtype">int</span> _searchLimit, _defaultSearchLimit;
+<a name="l00166"></a>00166 <span class="keywordtype">int</span> _activeSearchNum;
+<a name="l00167"></a>00167 <span class="keywordtype">int</span> _interval; <span class="comment">//Search fetching timer.timeout interval in msec</span>
+<a name="l00168"></a>00168 <span class="keywordtype">int</span> _historyLen, _defaultHistoryLen;
+<a name="l00169"></a>00169 <span class="keywordtype">bool</span> dryRun;
+<a name="l00170"></a>00170
+<a name="l00171"></a>00171 <span class="keywordtype">void</span> init();
+<a name="l00172"></a>00172 QStringList getFilesFromDir(QString dir, QStringList nameFilter);
+<a name="l00173"></a>00173 <span class="keywordtype">void</span> loadPlugins(); <span class="comment">//< locate and load plugins</span>
+<a name="l00174"></a>00174 <span class="keywordtype">void</span> loadPrefs(QString fileName);
+<a name="l00175"></a>00175 <span class="keywordtype">void</span> loadDicts(QString fileName, <span class="keywordtype">bool</span> _default=<span class="keyword">false</span>);
+<a name="l00176"></a>00176 <span class="keywordtype">void</span> saveState(QSettings*, <a class="code" href="classSettings.html" title="Plugin specific configuration.">Settings</a>*, <span class="keywordtype">bool</span>, uint);
+<a name="l00177"></a>00177 <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="l00178"></a>00178 <span class="keywordtype">void</span> savePrefs(QSettings*);
+<a name="l00179"></a>00179 <span class="keywordtype">void</span> saveDefaultPrefs(QSettings*);
+<a name="l00180"></a>00180 <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="l00181"></a>00181
+<a name="l00182"></a>00182 <a class="code" href="classHistory.html">History</a>* _history;
+<a name="l00183"></a>00183
+<a name="l00184"></a>00184 };
+<a name="l00185"></a>00185
+<a name="l00186"></a>00186 <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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a></div>
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
</iframe>
</div>
-<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Aug 6 11:51:04 2010 for mDictionary by
+<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Aug 12 14:34:59 2010 for mDictionary by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>