/usr/share/qt5/doc/qthelp/qhelpsearchengine.html is in qttools5-doc-html 5.5.1-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qhelpsearchengine.cpp -->
<title>QHelpSearchEngine Class | Qt Help 5.5</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.5</li>
<li><a href="qthelp-index.html">Qt Help</a></li>
<li><a href="qthelp-module.html">C++ Classes</a></li>
<li>QHelpSearchEngine</li>
<li id="buildversion">Qt 5.5.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QHelpSearchEngine Class</h1>
<!-- $$$QHelpSearchEngine-brief -->
<p>The <a href="qhelpsearchengine.html">QHelpSearchEngine</a> class provides access to widgets reusable to integrate fulltext search as well as to index and search documentation. <a href="#details">More...</a></p>
<!-- @@@QHelpSearchEngine -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QHelpSearchEngine></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += help</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.4</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="../qtcore/qobject.html">QObject</a></td></tr></table></div><ul>
<li><a href="qhelpsearchengine-members.html">List of all members, including inherited members</a></li>
<li><a href="qhelpsearchengine-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#SearchHit-typedef">SearchHit</a></b></td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#QHelpSearchEngine">QHelpSearchEngine</a></b>(QHelpEngineCore *<i> helpEngine</i>, QObject *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#dtor.QHelpSearchEngine">~QHelpSearchEngine</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#hitCount">hitCount</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<SearchHit> </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#hits">hits</a></b>(int<i> start</i>, int<i> end</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<QHelpSearchQuery> </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#query">query</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QHelpSearchQueryWidget * </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#queryWidget">queryWidget</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QHelpSearchResultWidget * </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#resultWidget">resultWidget</a></b>()</td></tr>
</table></div>
<ul>
<li class="fn">31 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#cancelIndexing">cancelIndexing</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#cancelSearching">cancelSearching</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#reindexDocumentation">reindexDocumentation</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#search">search</a></b>(const QList<QHelpSearchQuery> &<i> queryList</i>)</td></tr>
</table></div>
<ul>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#indexingFinished">indexingFinished</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#indexingStarted">indexingStarted</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#searchingFinished">searchingFinished</a></b>(int<i> hits</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhelpsearchengine.html#searchingStarted">searchingStarted</a></b>()</td></tr>
</table></div>
<ul>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QHelpSearchEngine-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qhelpsearchengine.html">QHelpSearchEngine</a> class provides access to widgets reusable to integrate fulltext search as well as to index and search documentation.</p>
<p>Before the search engine can be used, one has to instantiate at least a <a href="qhelpenginecore.html">QHelpEngineCore</a> object that needs to be passed to the search engines constructor. This is required as the search engine needs to be connected to the help engines setupFinished() signal to know when it can start to index documentation.</p>
<p>After starting the indexing process the signal <a href="qhelpsearchengine.html#indexingStarted">indexingStarted</a>() is emitted and on the end of the indexing process the <a href="qhelpsearchengine.html#indexingFinished">indexingFinished</a>() is emitted. To stop the indexing one can call <a href="qhelpsearchengine.html#cancelIndexing">cancelIndexing</a>().</p>
<p>While the indexing process has finished, the search engine can now be used to search thru its index for a given term. To do this one may use the possibility of creating the <a href="qhelpsearchquery.html">QHelpSearchQuery</a> list by self or reuse the <a href="qhelpsearchquerywidget.html">QHelpSearchQueryWidget</a> which has the inbuild functionality to set up a proper search queries list that get's passed to the search engines <a href="qhelpsearchengine.html#search">search</a>() function.</p>
<p>After the list of querys has been passed to the search engine, the signal <a href="qhelpsearchengine.html#searchingStarted">searchingStarted</a>() is emitted and after the search has finished the <a href="qhelpsearchengine.html#searchingFinished">searchingFinished</a>() signal is emitted. The search process can be stopped by calling <a href="qhelpsearchengine.html#cancelSearching">cancelSearching</a>().</p>
<p>If the search succeeds, the <a href="qhelpsearchengine.html#searchingFinished">searchingFinished</a>() will be called with the search hits count, which can be reused to fetch the search hits from the search engine. Calling the <a href="qhelpsearchengine.html#hits">hits</a>() function with the range of hits you would like to get will return a list of the requested SearchHits. They basically constist at the moment of a pair of strings where the values of that pair are the documentation file path and the page title.</p>
<p>To display the given hits use the <a href="qhelpsearchresultwidget.html">QHelpSearchResultWidget</a> or build up your own one if you need more advanced functionality. Note that the <a href="qhelpsearchresultwidget.html">QHelpSearchResultWidget</a> can not be instantiated directly, you must retrieve the widget from the search engine in use as all connections will be established for you by the widget itself.</p>
</div>
<!-- @@@QHelpSearchEngine -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$SearchHit -->
<h3 class="fn" id="SearchHit-typedef"><a name="SearchHit-typedef"></a>typedef QHelpSearchEngine::<span class="name">SearchHit</span></h3>
<p>Typedef for <a href="../qtcore/qpair.html">QPair</a><<a href="../qtcore/qstring.html">QString</a>, <a href="../qtcore/qstring.html">QString</a>>. The values of that pair are the documentation file path and the page title.</p>
<p><b>See also </b><a href="qhelpsearchengine.html#hits">hits</a>().</p>
<!-- @@@SearchHit -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QHelpSearchEngine[overload1]$$$QHelpSearchEngineQHelpEngineCore*QObject* -->
<h3 class="fn" id="QHelpSearchEngine"><a name="QHelpSearchEngine"></a>QHelpSearchEngine::<span class="name">QHelpSearchEngine</span>(<span class="type"><a href="qhelpenginecore.html">QHelpEngineCore</a></span> *<i> helpEngine</i>, <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i> parent</i> = 0)</h3>
<p>Constructs a new search engine with the given <i>parent</i>. The search engine uses the given <i>helpEngine</i> to access the documentation that needs to be indexed. The <a href="qhelpengine.html">QHelpEngine</a>'s setupFinished() signal is automatically connected to the <a href="qhelpsearchengine.html">QHelpSearchEngine</a>'s indexing function, so that new documentation will be indexed after the signal is emitted.</p>
<!-- @@@QHelpSearchEngine -->
<!-- $$$~QHelpSearchEngine[overload1]$$$~QHelpSearchEngine -->
<h3 class="fn" id="dtor.QHelpSearchEngine"><a name="dtor.QHelpSearchEngine"></a>QHelpSearchEngine::<span class="name">~QHelpSearchEngine</span>()</h3>
<p>Destructs the search engine.</p>
<!-- @@@~QHelpSearchEngine -->
<!-- $$$cancelIndexing[overload1]$$$cancelIndexing -->
<h3 class="fn" id="cancelIndexing"><a name="cancelIndexing"></a><code>[slot] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">cancelIndexing</span>()</h3>
<p>Stops the indexing process.</p>
<!-- @@@cancelIndexing -->
<!-- $$$cancelSearching[overload1]$$$cancelSearching -->
<h3 class="fn" id="cancelSearching"><a name="cancelSearching"></a><code>[slot] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">cancelSearching</span>()</h3>
<p>Stops the search process.</p>
<!-- @@@cancelSearching -->
<!-- $$$hitCount[overload1]$$$hitCount -->
<h3 class="fn" id="hitCount"><a name="hitCount"></a><span class="type">int</span> QHelpSearchEngine::<span class="name">hitCount</span>() const</h3>
<p>Returns the amount of hits the search engine found.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@hitCount -->
<!-- $$$hits[overload1]$$$hitsintint -->
<h3 class="fn" id="hits"><a name="hits"></a><span class="type"><a href="../qtcore/qlist.html">QList</a></span><<span class="type"><a href="qhelpsearchengine.html#SearchHit-typedef">SearchHit</a></span>> QHelpSearchEngine::<span class="name">hits</span>(<span class="type">int</span><i> start</i>, <span class="type">int</span><i> end</i>) const</h3>
<p>Returns a list of search hits within the range of <i>start</i> <i>end</i>.</p>
<!-- @@@hits -->
<!-- $$$indexingFinished[overload1]$$$indexingFinished -->
<h3 class="fn" id="indexingFinished"><a name="indexingFinished"></a><code>[signal] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">indexingFinished</span>()</h3>
<p>This signal is emitted when the indexing process is complete.</p>
<!-- @@@indexingFinished -->
<!-- $$$indexingStarted[overload1]$$$indexingStarted -->
<h3 class="fn" id="indexingStarted"><a name="indexingStarted"></a><code>[signal] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">indexingStarted</span>()</h3>
<p>This signal is emitted when indexing process is started.</p>
<!-- @@@indexingStarted -->
<!-- $$$query[overload1]$$$query -->
<h3 class="fn" id="query"><a name="query"></a><span class="type"><a href="../qtcore/qlist.html">QList</a></span><<span class="type"><a href="qhelpsearchquery.html">QHelpSearchQuery</a></span>> QHelpSearchEngine::<span class="name">query</span>() const</h3>
<p>Returns the list of queries last searched for.</p>
<p>This function was introduced in Qt 4.5.</p>
<!-- @@@query -->
<!-- $$$queryWidget[overload1]$$$queryWidget -->
<h3 class="fn" id="queryWidget"><a name="queryWidget"></a><span class="type"><a href="qhelpsearchquerywidget.html">QHelpSearchQueryWidget</a></span> * QHelpSearchEngine::<span class="name">queryWidget</span>()</h3>
<p>Returns a widget to use as input widget. Depending on your search engine configuration you will get a different widget with more or less subwidgets.</p>
<!-- @@@queryWidget -->
<!-- $$$reindexDocumentation[overload1]$$$reindexDocumentation -->
<h3 class="fn" id="reindexDocumentation"><a name="reindexDocumentation"></a><code>[slot] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">reindexDocumentation</span>()</h3>
<p>Forces the search engine to reindex all documentation files.</p>
<!-- @@@reindexDocumentation -->
<!-- $$$resultWidget[overload1]$$$resultWidget -->
<h3 class="fn" id="resultWidget"><a name="resultWidget"></a><span class="type"><a href="qhelpsearchresultwidget.html">QHelpSearchResultWidget</a></span> * QHelpSearchEngine::<span class="name">resultWidget</span>()</h3>
<p>Returns a widget that can hold and display the search results.</p>
<!-- @@@resultWidget -->
<!-- $$$search[overload1]$$$searchconstQList<QHelpSearchQuery>& -->
<h3 class="fn" id="search"><a name="search"></a><code>[slot] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">search</span>(const <span class="type"><a href="../qtcore/qlist.html">QList</a></span><<span class="type"><a href="qhelpsearchquery.html">QHelpSearchQuery</a></span>> &<i> queryList</i>)</h3>
<p>Starts the search process using the given list of queries <i>queryList</i> build by the search field name and the values to search for.</p>
<!-- @@@search -->
<!-- $$$searchingFinished[overload1]$$$searchingFinishedint -->
<h3 class="fn" id="searchingFinished"><a name="searchingFinished"></a><code>[signal] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">searchingFinished</span>(<span class="type">int</span><i> hits</i>)</h3>
<p>This signal is emitted when the search process is complete. The hit count is stored in <i>hits</i>.</p>
<!-- @@@searchingFinished -->
<!-- $$$searchingStarted[overload1]$$$searchingStarted -->
<h3 class="fn" id="searchingStarted"><a name="searchingStarted"></a><code>[signal] </code><span class="type">void</span> QHelpSearchEngine::<span class="name">searchingStarted</span>()</h3>
<p>This signal is emitted when the search process is started.</p>
<!-- @@@searchingStarted -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2015 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|