src/eric7/Documentation/Source/eric7.WebBrowser.History.HistoryManager.html

branch
eric7
changeset 10479
856476537696
parent 10436
f6881d10e995
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.WebBrowser.History.HistoryManager</h1> 9 <h1>eric7.WebBrowser.History.HistoryManager</h1>
10
11 <p> 10 <p>
12 Module implementing the history manager. 11 Module implementing the history manager.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>HISTORY_VERSIONS</td></tr>
17 <tr><td>HISTORY_VERSIONS</td></tr><tr><td>HISTORY_VERSION_42</td></tr><tr><td>HISTORY_VERSION_60</td></tr> 17 <tr><td>HISTORY_VERSION_42</td></tr>
18 </table> 18 <tr><td>HISTORY_VERSION_60</td></tr>
19 </table>
20
19 <h3>Classes</h3> 21 <h3>Classes</h3>
20 22 <table>
21 <table>
22
23 <tr> 23 <tr>
24 <td><a href="#HistoryEntry">HistoryEntry</a></td> 24 <td><a href="#HistoryEntry">HistoryEntry</a></td>
25 <td>Class implementing a history entry.</td> 25 <td>Class implementing a history entry.</td>
26 </tr> 26 </tr>
27 <tr> 27 <tr>
28 <td><a href="#HistoryManager">HistoryManager</a></td> 28 <td><a href="#HistoryManager">HistoryManager</a></td>
29 <td>Class implementing the history manager.</td> 29 <td>Class implementing the history manager.</td>
30 </tr> 30 </tr>
31 </table> 31 </table>
32
32 <h3>Functions</h3> 33 <h3>Functions</h3>
33
34 <table> 34 <table>
35 <tr><td>None</td></tr> 35 <tr><td>None</td></tr>
36 </table> 36 </table>
37
37 <hr /> 38 <hr />
38 <hr /> 39 <hr />
39 <a NAME="HistoryEntry" ID="HistoryEntry"></a> 40 <a NAME="HistoryEntry" ID="HistoryEntry"></a>
40 <h2>HistoryEntry</h2> 41 <h2>HistoryEntry</h2>
41
42 <p> 42 <p>
43 Class implementing a history entry. 43 Class implementing a history entry.
44 </p> 44 </p>
45
45 <h3>Derived from</h3> 46 <h3>Derived from</h3>
46 None 47 None
47 <h3>Class Attributes</h3> 48 <h3>Class Attributes</h3>
48
49 <table> 49 <table>
50 <tr><td>None</td></tr> 50 <tr><td>None</td></tr>
51 </table> 51 </table>
52
52 <h3>Class Methods</h3> 53 <h3>Class Methods</h3>
53
54 <table> 54 <table>
55 <tr><td>None</td></tr> 55 <tr><td>None</td></tr>
56 </table> 56 </table>
57
57 <h3>Methods</h3> 58 <h3>Methods</h3>
58 59 <table>
59 <table>
60
61 <tr> 60 <tr>
62 <td><a href="#HistoryEntry.__init__">HistoryEntry</a></td> 61 <td><a href="#HistoryEntry.__init__">HistoryEntry</a></td>
63 <td>Constructor</td> 62 <td>Constructor</td>
64 </tr> 63 </tr>
65 <tr> 64 <tr>
77 <tr> 76 <tr>
78 <td><a href="#HistoryEntry.userTitle">userTitle</a></td> 77 <td><a href="#HistoryEntry.userTitle">userTitle</a></td>
79 <td>Public method to get the title of the history entry.</td> 78 <td>Public method to get the title of the history entry.</td>
80 </tr> 79 </tr>
81 </table> 80 </table>
81
82 <h3>Static Methods</h3> 82 <h3>Static Methods</h3>
83
84 <table> 83 <table>
85 <tr><td>None</td></tr> 84 <tr><td>None</td></tr>
86 </table> 85 </table>
86
87 87
88 <a NAME="HistoryEntry.__init__" ID="HistoryEntry.__init__"></a> 88 <a NAME="HistoryEntry.__init__" ID="HistoryEntry.__init__"></a>
89 <h4>HistoryEntry (Constructor)</h4> 89 <h4>HistoryEntry (Constructor)</h4>
90 <b>HistoryEntry</b>(<i>url=None, dateTime=None, title=None, visitCount=None</i>) 90 <b>HistoryEntry</b>(<i>url=None, dateTime=None, title=None, visitCount=None</i>)
91
92 <p> 91 <p>
93 Constructor 92 Constructor
94 </p> 93 </p>
94
95 <dl> 95 <dl>
96 96
97 <dt><i>url</i> (str)</dt> 97 <dt><i>url</i> (str)</dt>
98 <dd> 98 <dd>
99 URL of the history entry 99 URL of the history entry
112 </dd> 112 </dd>
113 </dl> 113 </dl>
114 <a NAME="HistoryEntry.__eq__" ID="HistoryEntry.__eq__"></a> 114 <a NAME="HistoryEntry.__eq__" ID="HistoryEntry.__eq__"></a>
115 <h4>HistoryEntry.__eq__</h4> 115 <h4>HistoryEntry.__eq__</h4>
116 <b>__eq__</b>(<i>other</i>) 116 <b>__eq__</b>(<i>other</i>)
117
118 <p> 117 <p>
119 Special method determining equality. 118 Special method determining equality.
120 </p> 119 </p>
120
121 <dl> 121 <dl>
122 122
123 <dt><i>other</i> (HistoryEntry)</dt> 123 <dt><i>other</i> (HistoryEntry)</dt>
124 <dd> 124 <dd>
125 reference to the history entry to compare against 125 reference to the history entry to compare against
138 </dd> 138 </dd>
139 </dl> 139 </dl>
140 <a NAME="HistoryEntry.__lt__" ID="HistoryEntry.__lt__"></a> 140 <a NAME="HistoryEntry.__lt__" ID="HistoryEntry.__lt__"></a>
141 <h4>HistoryEntry.__lt__</h4> 141 <h4>HistoryEntry.__lt__</h4>
142 <b>__lt__</b>(<i>other</i>) 142 <b>__lt__</b>(<i>other</i>)
143
144 <p> 143 <p>
145 Special method determining less relation. 144 Special method determining less relation.
146 </p> 145 </p>
147 <p> 146 <p>
148 Note: History is sorted in reverse order by date and time 147 Note: History is sorted in reverse order by date and time
149 </p> 148 </p>
149
150 <dl> 150 <dl>
151 151
152 <dt><i>other</i> (HistoryEntry)</dt> 152 <dt><i>other</i> (HistoryEntry)</dt>
153 <dd> 153 <dd>
154 reference to the history entry to compare against 154 reference to the history entry to compare against
167 </dd> 167 </dd>
168 </dl> 168 </dl>
169 <a NAME="HistoryEntry.isValid" ID="HistoryEntry.isValid"></a> 169 <a NAME="HistoryEntry.isValid" ID="HistoryEntry.isValid"></a>
170 <h4>HistoryEntry.isValid</h4> 170 <h4>HistoryEntry.isValid</h4>
171 <b>isValid</b>(<i></i>) 171 <b>isValid</b>(<i></i>)
172
173 <p> 172 <p>
174 Public method to determine validity. 173 Public method to determine validity.
175 </p> 174 </p>
175
176 <dl> 176 <dl>
177 <dt>Return:</dt> 177 <dt>Return:</dt>
178 <dd> 178 <dd>
179 flag indicating validity 179 flag indicating validity
180 </dd> 180 </dd>
186 </dd> 186 </dd>
187 </dl> 187 </dl>
188 <a NAME="HistoryEntry.userTitle" ID="HistoryEntry.userTitle"></a> 188 <a NAME="HistoryEntry.userTitle" ID="HistoryEntry.userTitle"></a>
189 <h4>HistoryEntry.userTitle</h4> 189 <h4>HistoryEntry.userTitle</h4>
190 <b>userTitle</b>(<i></i>) 190 <b>userTitle</b>(<i></i>)
191
192 <p> 191 <p>
193 Public method to get the title of the history entry. 192 Public method to get the title of the history entry.
194 </p> 193 </p>
194
195 <dl> 195 <dl>
196 <dt>Return:</dt> 196 <dt>Return:</dt>
197 <dd> 197 <dd>
198 title of the entry 198 title of the entry
199 </dd> 199 </dd>
207 <div align="right"><a href="#top">Up</a></div> 207 <div align="right"><a href="#top">Up</a></div>
208 <hr /> 208 <hr />
209 <hr /> 209 <hr />
210 <a NAME="HistoryManager" ID="HistoryManager"></a> 210 <a NAME="HistoryManager" ID="HistoryManager"></a>
211 <h2>HistoryManager</h2> 211 <h2>HistoryManager</h2>
212
213 <p> 212 <p>
214 Class implementing the history manager. 213 Class implementing the history manager.
215 </p> 214 </p>
215
216 <h3>Signals</h3> 216 <h3>Signals</h3>
217 <dl> 217 <dl>
218 218
219 <dt>entryAdded(HistoryEntry)</dt> 219 <dt>entryAdded(HistoryEntry)</dt>
220 <dd> 220 <dd>
244 </dd> 244 </dd>
245 </dl> 245 </dl>
246 <h3>Derived from</h3> 246 <h3>Derived from</h3>
247 QObject 247 QObject
248 <h3>Class Attributes</h3> 248 <h3>Class Attributes</h3>
249
250 <table> 249 <table>
251 <tr><td>None</td></tr> 250 <tr><td>None</td></tr>
252 </table> 251 </table>
252
253 <h3>Class Methods</h3> 253 <h3>Class Methods</h3>
254
255 <table> 254 <table>
256 <tr><td>None</td></tr> 255 <tr><td>None</td></tr>
257 </table> 256 </table>
257
258 <h3>Methods</h3> 258 <h3>Methods</h3>
259 259 <table>
260 <table>
261
262 <tr> 260 <tr>
263 <td><a href="#HistoryManager.__init__">HistoryManager</a></td> 261 <td><a href="#HistoryManager.__init__">HistoryManager</a></td>
264 <td>Constructor</td> 262 <td>Constructor</td>
265 </tr> 263 </tr>
266 <tr> 264 <tr>
362 <tr> 360 <tr>
363 <td><a href="#HistoryManager.updateHistoryEntry">updateHistoryEntry</a></td> 361 <td><a href="#HistoryManager.updateHistoryEntry">updateHistoryEntry</a></td>
364 <td>Public method to update a history entry.</td> 362 <td>Public method to update a history entry.</td>
365 </tr> 363 </tr>
366 </table> 364 </table>
365
367 <h3>Static Methods</h3> 366 <h3>Static Methods</h3>
368
369 <table> 367 <table>
370 <tr><td>None</td></tr> 368 <tr><td>None</td></tr>
371 </table> 369 </table>
370
372 371
373 <a NAME="HistoryManager.__init__" ID="HistoryManager.__init__"></a> 372 <a NAME="HistoryManager.__init__" ID="HistoryManager.__init__"></a>
374 <h4>HistoryManager (Constructor)</h4> 373 <h4>HistoryManager (Constructor)</h4>
375 <b>HistoryManager</b>(<i>parent=None</i>) 374 <b>HistoryManager</b>(<i>parent=None</i>)
376
377 <p> 375 <p>
378 Constructor 376 Constructor
379 </p> 377 </p>
378
380 <dl> 379 <dl>
381 380
382 <dt><i>parent</i> (QObject)</dt> 381 <dt><i>parent</i> (QObject)</dt>
383 <dd> 382 <dd>
384 reference to the parent object 383 reference to the parent object
385 </dd> 384 </dd>
386 </dl> 385 </dl>
387 <a NAME="HistoryManager.__checkForExpired" ID="HistoryManager.__checkForExpired"></a> 386 <a NAME="HistoryManager.__checkForExpired" ID="HistoryManager.__checkForExpired"></a>
388 <h4>HistoryManager.__checkForExpired</h4> 387 <h4>HistoryManager.__checkForExpired</h4>
389 <b>__checkForExpired</b>(<i></i>) 388 <b>__checkForExpired</b>(<i></i>)
390
391 <p> 389 <p>
392 Private slot to check entries for expiration. 390 Private slot to check entries for expiration.
393 </p> 391 </p>
392
394 <a NAME="HistoryManager.__cleanUrl" ID="HistoryManager.__cleanUrl"></a> 393 <a NAME="HistoryManager.__cleanUrl" ID="HistoryManager.__cleanUrl"></a>
395 <h4>HistoryManager.__cleanUrl</h4> 394 <h4>HistoryManager.__cleanUrl</h4>
396 <b>__cleanUrl</b>(<i>url</i>) 395 <b>__cleanUrl</b>(<i>url</i>)
397
398 <p> 396 <p>
399 Private method to generate a clean URL usable for the history entry. 397 Private method to generate a clean URL usable for the history entry.
400 </p> 398 </p>
399
401 <dl> 400 <dl>
402 401
403 <dt><i>url</i> (QUrl)</dt> 402 <dt><i>url</i> (QUrl)</dt>
404 <dd> 403 <dd>
405 original URL 404 original URL
418 </dd> 417 </dd>
419 </dl> 418 </dl>
420 <a NAME="HistoryManager.__cleanUrlStr" ID="HistoryManager.__cleanUrlStr"></a> 419 <a NAME="HistoryManager.__cleanUrlStr" ID="HistoryManager.__cleanUrlStr"></a>
421 <h4>HistoryManager.__cleanUrlStr</h4> 420 <h4>HistoryManager.__cleanUrlStr</h4>
422 <b>__cleanUrlStr</b>(<i>url</i>) 421 <b>__cleanUrlStr</b>(<i>url</i>)
423
424 <p> 422 <p>
425 Private method to generate a clean URL usable for the history entry. 423 Private method to generate a clean URL usable for the history entry.
426 </p> 424 </p>
425
427 <dl> 426 <dl>
428 427
429 <dt><i>url</i> (QUrl)</dt> 428 <dt><i>url</i> (QUrl)</dt>
430 <dd> 429 <dd>
431 original URL 430 original URL
444 </dd> 443 </dd>
445 </dl> 444 </dl>
446 <a NAME="HistoryManager.__findFirstHistoryEntry" ID="HistoryManager.__findFirstHistoryEntry"></a> 445 <a NAME="HistoryManager.__findFirstHistoryEntry" ID="HistoryManager.__findFirstHistoryEntry"></a>
447 <h4>HistoryManager.__findFirstHistoryEntry</h4> 446 <h4>HistoryManager.__findFirstHistoryEntry</h4>
448 <b>__findFirstHistoryEntry</b>(<i>url</i>) 447 <b>__findFirstHistoryEntry</b>(<i>url</i>)
449
450 <p> 448 <p>
451 Private method to find the first entry for the given URL. 449 Private method to find the first entry for the given URL.
452 </p> 450 </p>
451
453 <dl> 452 <dl>
454 453
455 <dt><i>url</i> (str)</dt> 454 <dt><i>url</i> (str)</dt>
456 <dd> 455 <dd>
457 URL to search for 456 URL to search for
470 </dd> 469 </dd>
471 </dl> 470 </dl>
472 <a NAME="HistoryManager.__load" ID="HistoryManager.__load"></a> 471 <a NAME="HistoryManager.__load" ID="HistoryManager.__load"></a>
473 <h4>HistoryManager.__load</h4> 472 <h4>HistoryManager.__load</h4>
474 <b>__load</b>(<i></i>) 473 <b>__load</b>(<i></i>)
475
476 <p> 474 <p>
477 Private method to load the saved history entries from disk. 475 Private method to load the saved history entries from disk.
478 </p> 476 </p>
477
479 <a NAME="HistoryManager.__refreshFrequencies" ID="HistoryManager.__refreshFrequencies"></a> 478 <a NAME="HistoryManager.__refreshFrequencies" ID="HistoryManager.__refreshFrequencies"></a>
480 <h4>HistoryManager.__refreshFrequencies</h4> 479 <h4>HistoryManager.__refreshFrequencies</h4>
481 <b>__refreshFrequencies</b>(<i></i>) 480 <b>__refreshFrequencies</b>(<i></i>)
482
483 <p> 481 <p>
484 Private slot to recalculate the refresh frequencies. 482 Private slot to recalculate the refresh frequencies.
485 </p> 483 </p>
484
486 <a NAME="HistoryManager.__startFrequencyTimer" ID="HistoryManager.__startFrequencyTimer"></a> 485 <a NAME="HistoryManager.__startFrequencyTimer" ID="HistoryManager.__startFrequencyTimer"></a>
487 <h4>HistoryManager.__startFrequencyTimer</h4> 486 <h4>HistoryManager.__startFrequencyTimer</h4>
488 <b>__startFrequencyTimer</b>(<i></i>) 487 <b>__startFrequencyTimer</b>(<i></i>)
489
490 <p> 488 <p>
491 Private method to start the timer to recalculate the frequencies. 489 Private method to start the timer to recalculate the frequencies.
492 </p> 490 </p>
491
493 <a NAME="HistoryManager.__updateVisitCount" ID="HistoryManager.__updateVisitCount"></a> 492 <a NAME="HistoryManager.__updateVisitCount" ID="HistoryManager.__updateVisitCount"></a>
494 <h4>HistoryManager.__updateVisitCount</h4> 493 <h4>HistoryManager.__updateVisitCount</h4>
495 <b>__updateVisitCount</b>(<i>url, count</i>) 494 <b>__updateVisitCount</b>(<i>url, count</i>)
496
497 <p> 495 <p>
498 Private method to update the visit count for all entries of the 496 Private method to update the visit count for all entries of the
499 given URL. 497 given URL.
500 </p> 498 </p>
499
501 <dl> 500 <dl>
502 501
503 <dt><i>url</i> (str)</dt> 502 <dt><i>url</i> (str)</dt>
504 <dd> 503 <dd>
505 URL to be updated 504 URL to be updated
510 </dd> 509 </dd>
511 </dl> 510 </dl>
512 <a NAME="HistoryManager.addHistoryEntry" ID="HistoryManager.addHistoryEntry"></a> 511 <a NAME="HistoryManager.addHistoryEntry" ID="HistoryManager.addHistoryEntry"></a>
513 <h4>HistoryManager.addHistoryEntry</h4> 512 <h4>HistoryManager.addHistoryEntry</h4>
514 <b>addHistoryEntry</b>(<i>view</i>) 513 <b>addHistoryEntry</b>(<i>view</i>)
515
516 <p> 514 <p>
517 Public method to add a history entry. 515 Public method to add a history entry.
518 </p> 516 </p>
517
519 <dl> 518 <dl>
520 519
521 <dt><i>view</i> (WebBrowserView)</dt> 520 <dt><i>view</i> (WebBrowserView)</dt>
522 <dd> 521 <dd>
523 reference to the view to add an entry for 522 reference to the view to add an entry for
524 </dd> 523 </dd>
525 </dl> 524 </dl>
526 <a NAME="HistoryManager.clear" ID="HistoryManager.clear"></a> 525 <a NAME="HistoryManager.clear" ID="HistoryManager.clear"></a>
527 <h4>HistoryManager.clear</h4> 526 <h4>HistoryManager.clear</h4>
528 <b>clear</b>(<i>period=0</i>) 527 <b>clear</b>(<i>period=0</i>)
529
530 <p> 528 <p>
531 Public slot to clear the complete history. 529 Public slot to clear the complete history.
532 </p> 530 </p>
531
533 <dl> 532 <dl>
534 533
535 <dt><i>period</i> (int)</dt> 534 <dt><i>period</i> (int)</dt>
536 <dd> 535 <dd>
537 history period in milliseconds to be cleared 536 history period in milliseconds to be cleared
538 </dd> 537 </dd>
539 </dl> 538 </dl>
540 <a NAME="HistoryManager.close" ID="HistoryManager.close"></a> 539 <a NAME="HistoryManager.close" ID="HistoryManager.close"></a>
541 <h4>HistoryManager.close</h4> 540 <h4>HistoryManager.close</h4>
542 <b>close</b>(<i></i>) 541 <b>close</b>(<i></i>)
543
544 <p> 542 <p>
545 Public method to close the history manager. 543 Public method to close the history manager.
546 </p> 544 </p>
545
547 <a NAME="HistoryManager.daysToExpire" ID="HistoryManager.daysToExpire"></a> 546 <a NAME="HistoryManager.daysToExpire" ID="HistoryManager.daysToExpire"></a>
548 <h4>HistoryManager.daysToExpire</h4> 547 <h4>HistoryManager.daysToExpire</h4>
549 <b>daysToExpire</b>(<i></i>) 548 <b>daysToExpire</b>(<i></i>)
550
551 <p> 549 <p>
552 Public method to get the days for entry expiration. 550 Public method to get the days for entry expiration.
553 </p> 551 </p>
552
554 <dl> 553 <dl>
555 <dt>Return:</dt> 554 <dt>Return:</dt>
556 <dd> 555 <dd>
557 days for entry expiration 556 days for entry expiration
558 </dd> 557 </dd>
564 </dd> 563 </dd>
565 </dl> 564 </dl>
566 <a NAME="HistoryManager.getFileName" ID="HistoryManager.getFileName"></a> 565 <a NAME="HistoryManager.getFileName" ID="HistoryManager.getFileName"></a>
567 <h4>HistoryManager.getFileName</h4> 566 <h4>HistoryManager.getFileName</h4>
568 <b>getFileName</b>(<i></i>) 567 <b>getFileName</b>(<i></i>)
569
570 <p> 568 <p>
571 Public method to get the file name of the history file. 569 Public method to get the file name of the history file.
572 </p> 570 </p>
571
573 <dl> 572 <dl>
574 <dt>Return:</dt> 573 <dt>Return:</dt>
575 <dd> 574 <dd>
576 name of the history file 575 name of the history file
577 </dd> 576 </dd>
583 </dd> 582 </dd>
584 </dl> 583 </dl>
585 <a NAME="HistoryManager.history" ID="HistoryManager.history"></a> 584 <a NAME="HistoryManager.history" ID="HistoryManager.history"></a>
586 <h4>HistoryManager.history</h4> 585 <h4>HistoryManager.history</h4>
587 <b>history</b>(<i></i>) 586 <b>history</b>(<i></i>)
588
589 <p> 587 <p>
590 Public method to return the history. 588 Public method to return the history.
591 </p> 589 </p>
590
592 <dl> 591 <dl>
593 <dt>Return:</dt> 592 <dt>Return:</dt>
594 <dd> 593 <dd>
595 reference to the list of history entries 594 reference to the list of history entries
596 </dd> 595 </dd>
602 </dd> 601 </dd>
603 </dl> 602 </dl>
604 <a NAME="HistoryManager.historyFilterModel" ID="HistoryManager.historyFilterModel"></a> 603 <a NAME="HistoryManager.historyFilterModel" ID="HistoryManager.historyFilterModel"></a>
605 <h4>HistoryManager.historyFilterModel</h4> 604 <h4>HistoryManager.historyFilterModel</h4>
606 <b>historyFilterModel</b>(<i></i>) 605 <b>historyFilterModel</b>(<i></i>)
607
608 <p> 606 <p>
609 Public method to get a reference to the history filter model. 607 Public method to get a reference to the history filter model.
610 </p> 608 </p>
609
611 <dl> 610 <dl>
612 <dt>Return:</dt> 611 <dt>Return:</dt>
613 <dd> 612 <dd>
614 reference to the history filter model 613 reference to the history filter model
615 </dd> 614 </dd>
621 </dd> 620 </dd>
622 </dl> 621 </dl>
623 <a NAME="HistoryManager.historyModel" ID="HistoryManager.historyModel"></a> 622 <a NAME="HistoryManager.historyModel" ID="HistoryManager.historyModel"></a>
624 <h4>HistoryManager.historyModel</h4> 623 <h4>HistoryManager.historyModel</h4>
625 <b>historyModel</b>(<i></i>) 624 <b>historyModel</b>(<i></i>)
626
627 <p> 625 <p>
628 Public method to get a reference to the history model. 626 Public method to get a reference to the history model.
629 </p> 627 </p>
628
630 <dl> 629 <dl>
631 <dt>Return:</dt> 630 <dt>Return:</dt>
632 <dd> 631 <dd>
633 reference to the history model 632 reference to the history model
634 </dd> 633 </dd>
640 </dd> 639 </dd>
641 </dl> 640 </dl>
642 <a NAME="HistoryManager.historyTreeModel" ID="HistoryManager.historyTreeModel"></a> 641 <a NAME="HistoryManager.historyTreeModel" ID="HistoryManager.historyTreeModel"></a>
643 <h4>HistoryManager.historyTreeModel</h4> 642 <h4>HistoryManager.historyTreeModel</h4>
644 <b>historyTreeModel</b>(<i></i>) 643 <b>historyTreeModel</b>(<i></i>)
645
646 <p> 644 <p>
647 Public method to get a reference to the history tree model. 645 Public method to get a reference to the history tree model.
648 </p> 646 </p>
647
649 <dl> 648 <dl>
650 <dt>Return:</dt> 649 <dt>Return:</dt>
651 <dd> 650 <dd>
652 reference to the history tree model 651 reference to the history tree model
653 </dd> 652 </dd>
659 </dd> 658 </dd>
660 </dl> 659 </dl>
661 <a NAME="HistoryManager.preferencesChanged" ID="HistoryManager.preferencesChanged"></a> 660 <a NAME="HistoryManager.preferencesChanged" ID="HistoryManager.preferencesChanged"></a>
662 <h4>HistoryManager.preferencesChanged</h4> 661 <h4>HistoryManager.preferencesChanged</h4>
663 <b>preferencesChanged</b>(<i></i>) 662 <b>preferencesChanged</b>(<i></i>)
664
665 <p> 663 <p>
666 Public method to indicate a change of preferences. 664 Public method to indicate a change of preferences.
667 </p> 665 </p>
666
668 <a NAME="HistoryManager.reload" ID="HistoryManager.reload"></a> 667 <a NAME="HistoryManager.reload" ID="HistoryManager.reload"></a>
669 <h4>HistoryManager.reload</h4> 668 <h4>HistoryManager.reload</h4>
670 <b>reload</b>(<i></i>) 669 <b>reload</b>(<i></i>)
671
672 <p> 670 <p>
673 Public method to reload the history. 671 Public method to reload the history.
674 </p> 672 </p>
673
675 <a NAME="HistoryManager.removeHistoryEntry" ID="HistoryManager.removeHistoryEntry"></a> 674 <a NAME="HistoryManager.removeHistoryEntry" ID="HistoryManager.removeHistoryEntry"></a>
676 <h4>HistoryManager.removeHistoryEntry</h4> 675 <h4>HistoryManager.removeHistoryEntry</h4>
677 <b>removeHistoryEntry</b>(<i>url, title=""</i>) 676 <b>removeHistoryEntry</b>(<i>url, title=""</i>)
678
679 <p> 677 <p>
680 Public method to remove a history entry. 678 Public method to remove a history entry.
681 </p> 679 </p>
680
682 <dl> 681 <dl>
683 682
684 <dt><i>url</i> (QUrl)</dt> 683 <dt><i>url</i> (QUrl)</dt>
685 <dd> 684 <dd>
686 URL of the entry to remove 685 URL of the entry to remove
691 </dd> 690 </dd>
692 </dl> 691 </dl>
693 <a NAME="HistoryManager.save" ID="HistoryManager.save"></a> 692 <a NAME="HistoryManager.save" ID="HistoryManager.save"></a>
694 <h4>HistoryManager.save</h4> 693 <h4>HistoryManager.save</h4>
695 <b>save</b>(<i></i>) 694 <b>save</b>(<i></i>)
696
697 <p> 695 <p>
698 Public slot to save the history entries to disk. 696 Public slot to save the history entries to disk.
699 </p> 697 </p>
698
700 <a NAME="HistoryManager.setDaysToExpire" ID="HistoryManager.setDaysToExpire"></a> 699 <a NAME="HistoryManager.setDaysToExpire" ID="HistoryManager.setDaysToExpire"></a>
701 <h4>HistoryManager.setDaysToExpire</h4> 700 <h4>HistoryManager.setDaysToExpire</h4>
702 <b>setDaysToExpire</b>(<i>limit</i>) 701 <b>setDaysToExpire</b>(<i>limit</i>)
703
704 <p> 702 <p>
705 Public method to set the days for entry expiration. 703 Public method to set the days for entry expiration.
706 </p> 704 </p>
705
707 <dl> 706 <dl>
708 707
709 <dt><i>limit</i> (int)</dt> 708 <dt><i>limit</i> (int)</dt>
710 <dd> 709 <dd>
711 days for entry expiration 710 days for entry expiration
712 </dd> 711 </dd>
713 </dl> 712 </dl>
714 <a NAME="HistoryManager.setHistory" ID="HistoryManager.setHistory"></a> 713 <a NAME="HistoryManager.setHistory" ID="HistoryManager.setHistory"></a>
715 <h4>HistoryManager.setHistory</h4> 714 <h4>HistoryManager.setHistory</h4>
716 <b>setHistory</b>(<i>history, loadedAndSorted=False</i>) 715 <b>setHistory</b>(<i>history, loadedAndSorted=False</i>)
717
718 <p> 716 <p>
719 Public method to set a new history. 717 Public method to set a new history.
720 </p> 718 </p>
719
721 <dl> 720 <dl>
722 721
723 <dt><i>history</i> (list of HistoryEntry)</dt> 722 <dt><i>history</i> (list of HistoryEntry)</dt>
724 <dd> 723 <dd>
725 reference to the list of history entries to be set 724 reference to the list of history entries to be set
730 </dd> 729 </dd>
731 </dl> 730 </dl>
732 <a NAME="HistoryManager.siteVisitsCount" ID="HistoryManager.siteVisitsCount"></a> 731 <a NAME="HistoryManager.siteVisitsCount" ID="HistoryManager.siteVisitsCount"></a>
733 <h4>HistoryManager.siteVisitsCount</h4> 732 <h4>HistoryManager.siteVisitsCount</h4>
734 <b>siteVisitsCount</b>(<i>scheme, host</i>) 733 <b>siteVisitsCount</b>(<i>scheme, host</i>)
735
736 <p> 734 <p>
737 Public method to get the visit count for a web site using the given 735 Public method to get the visit count for a web site using the given
738 scheme. 736 scheme.
739 </p> 737 </p>
738
740 <dl> 739 <dl>
741 740
742 <dt><i>scheme</i> (str)</dt> 741 <dt><i>scheme</i> (str)</dt>
743 <dd> 742 <dd>
744 scheme to look for 743 scheme to look for
761 </dd> 760 </dd>
762 </dl> 761 </dl>
763 <a NAME="HistoryManager.updateHistoryEntry" ID="HistoryManager.updateHistoryEntry"></a> 762 <a NAME="HistoryManager.updateHistoryEntry" ID="HistoryManager.updateHistoryEntry"></a>
764 <h4>HistoryManager.updateHistoryEntry</h4> 763 <h4>HistoryManager.updateHistoryEntry</h4>
765 <b>updateHistoryEntry</b>(<i>url, title</i>) 764 <b>updateHistoryEntry</b>(<i>url, title</i>)
766
767 <p> 765 <p>
768 Public method to update a history entry. 766 Public method to update a history entry.
769 </p> 767 </p>
768
770 <dl> 769 <dl>
771 770
772 <dt><i>url</i> (str)</dt> 771 <dt><i>url</i> (str)</dt>
773 <dd> 772 <dd>
774 URL of the entry to update 773 URL of the entry to update

eric ide

mercurial