diff -r 59458b006d76 -r 1273cd92a8f4 Documentation/Source/eric6.WebBrowser.History.HistoryManager.html --- a/Documentation/Source/eric6.WebBrowser.History.HistoryManager.html Mon Apr 17 18:38:58 2017 +0200 +++ b/Documentation/Source/eric6.WebBrowser.History.HistoryManager.html Tue Apr 18 19:22:54 2017 +0200 @@ -25,7 +25,7 @@ </p> <h3>Global Attributes</h3> <table> -<tr><td>HISTORY_VERSION</td></tr> +<tr><td>HISTORY_VERSIONS</td></tr><tr><td>HISTORY_VERSION_42</td></tr><tr><td>HISTORY_VERSION_60</td></tr> </table> <h3>Classes</h3> <table> @@ -69,6 +69,9 @@ <td><a href="#HistoryEntry.__lt__">__lt__</a></td> <td>Special method determining less relation.</td> </tr><tr> +<td><a href="#HistoryEntry.isValid">isValid</a></td> +<td>Public method to determine validity.</td> +</tr><tr> <td><a href="#HistoryEntry.userTitle">userTitle</a></td> <td>Public method to get the title of the history entry.</td> </tr> @@ -79,7 +82,7 @@ </table> <a NAME="HistoryEntry.__init__" ID="HistoryEntry.__init__"></a> <h4>HistoryEntry (Constructor)</h4> -<b>HistoryEntry</b>(<i>url=None, dateTime=None, title=None</i>) +<b>HistoryEntry</b>(<i>url=None, dateTime=None, title=None, visitCount=None</i>) <p> Constructor </p><dl> @@ -92,6 +95,9 @@ </dd><dt><i>title</i></dt> <dd> title string for the history entry (string) +</dd><dt><i>visitCount</i></dt> +<dd> +number of visits of this URL (int) </dd> </dl><a NAME="HistoryEntry.__eq__" ID="HistoryEntry.__eq__"></a> <h4>HistoryEntry.__eq__</h4> @@ -127,6 +133,21 @@ <dd> flag indicating less (boolean) </dd> +</dl><a NAME="HistoryEntry.isValid" ID="HistoryEntry.isValid"></a> +<h4>HistoryEntry.isValid</h4> +<b>isValid</b>(<i></i>) +<p> + Public method to determine validity. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating validity +</dd> +</dl><dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> </dl><a NAME="HistoryEntry.userTitle" ID="HistoryEntry.userTitle"></a> <h4>HistoryEntry.userTitle</h4> <b>userTitle</b>(<i></i>) @@ -187,6 +208,15 @@ <td><a href="#HistoryManager.__checkForExpired">__checkForExpired</a></td> <td>Private slot to check entries for expiration.</td> </tr><tr> +<td><a href="#HistoryManager.__cleanUrl">__cleanUrl</a></td> +<td>Private method to generate a clean URL usable for the history entry.</td> +</tr><tr> +<td><a href="#HistoryManager.__cleanUrlStr">__cleanUrlStr</a></td> +<td>Private method to generate a clean URL usable for the history entry.</td> +</tr><tr> +<td><a href="#HistoryManager.__findFirstHistoryEntry">__findFirstHistoryEntry</a></td> +<td>Private method to find the first entry for the given URL.</td> +</tr><tr> <td><a href="#HistoryManager.__load">__load</a></td> <td>Private method to load the saved history entries from disk.</td> </tr><tr> @@ -196,6 +226,9 @@ <td><a href="#HistoryManager.__startFrequencyTimer">__startFrequencyTimer</a></td> <td>Private method to start the timer to recalculate the frequencies.</td> </tr><tr> +<td><a href="#HistoryManager.__updateVisitCount">__updateVisitCount</a></td> +<td>Private method to update the visit count for all entries of the given URL.</td> +</tr><tr> <td><a href="#HistoryManager.addHistoryEntry">addHistoryEntry</a></td> <td>Public method to add a history entry.</td> </tr><tr> @@ -264,7 +297,67 @@ <b>__checkForExpired</b>(<i></i>) <p> Private slot to check entries for expiration. -</p><a NAME="HistoryManager.__load" ID="HistoryManager.__load"></a> +</p><a NAME="HistoryManager.__cleanUrl" ID="HistoryManager.__cleanUrl"></a> +<h4>HistoryManager.__cleanUrl</h4> +<b>__cleanUrl</b>(<i>url</i>) +<p> + Private method to generate a clean URL usable for the history entry. +</p><dl> +<dt><i>url</i> (QUrl)</dt> +<dd> +original URL +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +cleaned URL +</dd> +</dl><dl> +<dt>Return Type:</dt> +<dd> +QUrl +</dd> +</dl><a NAME="HistoryManager.__cleanUrlStr" ID="HistoryManager.__cleanUrlStr"></a> +<h4>HistoryManager.__cleanUrlStr</h4> +<b>__cleanUrlStr</b>(<i>url</i>) +<p> + Private method to generate a clean URL usable for the history entry. +</p><dl> +<dt><i>url</i> (QUrl)</dt> +<dd> +original URL +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +cleaned URL +</dd> +</dl><dl> +<dt>Return Type:</dt> +<dd> +str +</dd> +</dl><a NAME="HistoryManager.__findFirstHistoryEntry" ID="HistoryManager.__findFirstHistoryEntry"></a> +<h4>HistoryManager.__findFirstHistoryEntry</h4> +<b>__findFirstHistoryEntry</b>(<i>url</i>) +<p> + Private method to find the first entry for the given URL. +</p><dl> +<dt><i>url</i> (str)</dt> +<dd> +URL to search for +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +first entry for the given URL +</dd> +</dl><dl> +<dt>Return Type:</dt> +<dd> +HistoryEntry +</dd> +</dl><a NAME="HistoryManager.__load" ID="HistoryManager.__load"></a> <h4>HistoryManager.__load</h4> <b>__load</b>(<i></i>) <p> @@ -279,7 +372,21 @@ <b>__startFrequencyTimer</b>(<i></i>) <p> Private method to start the timer to recalculate the frequencies. -</p><a NAME="HistoryManager.addHistoryEntry" ID="HistoryManager.addHistoryEntry"></a> +</p><a NAME="HistoryManager.__updateVisitCount" ID="HistoryManager.__updateVisitCount"></a> +<h4>HistoryManager.__updateVisitCount</h4> +<b>__updateVisitCount</b>(<i>url, count</i>) +<p> + Private method to update the visit count for all entries of the + given URL. +</p><dl> +<dt><i>url</i> (str)</dt> +<dd> +URL to be updated +</dd><dt><i>count</i> (int)</dt> +<dd> +new visit count +</dd> +</dl><a NAME="HistoryManager.addHistoryEntry" ID="HistoryManager.addHistoryEntry"></a> <h4>HistoryManager.addHistoryEntry</h4> <b>addHistoryEntry</b>(<i>view</i>) <p>