<a name="l00028"></a>00028 <span class="preprocessor">#include <QList></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include <QHash></span>
<a name="l00030"></a>00030 <span class="preprocessor">#include <QPluginLoader></span>
-<a name="l00031"></a>00031 <span class="preprocessor">#include "../../includes/CommonDictInterface.h"</span>
-<a name="l00032"></a>00032 <span class="preprocessor">#include "../../includes/settings.h"</span>
-<a name="l00033"></a>00033 <span class="preprocessor">#include "../../includes/translation.h"</span>
-<a name="l00034"></a>00034
-<a name="l00035"></a>00035
-<a name="l00037"></a><a class="code" href="classBackbone.html">00037</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="l00038"></a>00038 {
-<a name="l00039"></a>00039 Q_OBJECT
+<a name="l00031"></a>00031 <span class="preprocessor">#include <QFuture></span>
+<a name="l00032"></a>00032 <span class="preprocessor">#include <QtConcurrentRun></span>
+<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="l00041"></a>00041 <span class="keyword">public</span>:
-<a name="l00042"></a>00042 <a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>(QObject *parent = 0);
-<a name="l00043"></a>00043 ~<a class="code" href="classBackbone.html" title="Inner part of dictionary - glues together GUI and plugins.">Backbone</a>();
-<a name="l00044"></a>00044 <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="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="l00047"></a>00047 QHash<CommonDictInterface*, bool> <a class="code" href="classBackbone.html#a4b027f51bb4cc3803f6be85bc25d6a4b">getDictionaries</a>();
-<a name="l00048"></a>00048
-<a name="l00050"></a>00050 QList<CommonDictInterface*> <a class="code" href="classBackbone.html#a2fdfa0cf73fda5304635b61455b48db9">getPlugins</a>();
-<a name="l00051"></a>00051
-<a name="l00053"></a>00053 QList<QString> <a class="code" href="classBackbone.html#aad6c6a42de0c933f056354a5c6528f85">getHistory</a>(); <span class="comment">//TODO implementation needed (in future)</span>
-<a name="l00054"></a>00054
-<a name="l00056"></a>00056 QMultiHash<QString, Translation*> <a class="code" href="classBackbone.html#adeaabfee86975f65b8e728b8582caa35">result</a>();
-<a name="l00057"></a>00057
-<a name="l00059"></a>00059 <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#addad48903943006b6a4661169f80ee5a">searchLimit</a>() <span class="keyword">const</span>;
-<a name="l00060"></a>00060
-<a name="l00062"></a>00062 <span class="keywordtype">int</span> <a class="code" href="classBackbone.html#ad0ddecf22c51867e984cb4e6a745d67c">activeSearches</a>() <span class="keyword">const</span>;
-<a name="l00063"></a>00063
-<a name="l00064"></a>00064 <span class="keyword">public</span> Q_SLOTS:
-<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a1ede318bd5d226a8fa566f13452fb07d" title="stops all current searches">stopSearching</a>();
-<a name="l00067"></a>00067
-<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a3b1f2cf8de594cbd18bef4ca854337e2" title="search for a word translation">search</a>(QString word);
-<a name="l00070"></a>00070
-<a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#ac23b486119652095d956413a6e68afec" title="sets active dictionaries">selectedDictionaries</a>(QList<CommonDictInterface* >);
-<a name="l00073"></a>00073
-<a name="l00075"></a>00075 <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="l00076"></a>00076
-<a name="l00077"></a>00077
-<a name="l00079"></a>00079 <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="l00080"></a>00080
+<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="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="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#a99fb5d8cdf33e7fdca74e9415d615150" title="Fired when dictionary call finalTranslation(..) with translation ready.">translation</a>(QList<Translation*>);
-<a name="l00084"></a>00084
-<a name="l00085"></a>00085 <span class="comment">// TODO void removeDictionary(CommonDictInterface* dict);</span>
-<a name="l00086"></a>00086 <span class="comment">// TODO addToBookmark(Translation*);</span>
-<a name="l00087"></a>00087 <span class="comment">// TODO removeFromBookmark(Translation*);</span>
-<a name="l00088"></a>00088
-<a name="l00089"></a>00089 Q_SIGNALS:
-<a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="classBackbone.html#afef04921ba89c424eb882cc14153de39">closeOk</a>();
-<a name="l00093"></a>00093
-<a name="l00095"></a>00095 <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="l00096"></a>00096
-<a name="l00097"></a>00097
-<a name="l00098"></a>00098
-<a name="l00099"></a>00099 <span class="keyword">private</span>:
-<a name="l00100"></a>00100 <span class="keywordtype">void</span> loadPlugins(); <span class="comment">//< locate and load plugins</span>
-<a name="l00101"></a>00101 QHash<CommonDictInterface*, bool> dicts;
-<a name="l00102"></a>00102 QList<CommonDictInterface*> plugins;
-<a name="l00103"></a>00103 QMultiHash<QString, Translation*> _result;
-<a name="l00104"></a>00104 <span class="keywordtype">int</span> searchLimitv;
-<a name="l00105"></a>00105 <span class="keywordtype">int</span> activeSearchNum;
-<a name="l00106"></a>00106
-<a name="l00107"></a>00107 };
-<a name="l00108"></a>00108
-<a name="l00109"></a>00109 <span class="preprocessor">#endif // BACKBONE_H</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="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="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>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
</iframe>
</div>
-<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Aug 4 12:02:54 2010 for mDictionary by
+<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Aug 6 11:51:04 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>