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.Download.DownloadManager</h1> |
9 <h1>eric7.WebBrowser.Download.DownloadManager</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing the download manager class. |
11 Module implementing the download manager class. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
|
21 <table> |
20 <table> |
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#DownloadManager">DownloadManager</a></td> |
22 <td><a href="#DownloadManager">DownloadManager</a></td> |
25 <td>Class implementing the download manager.</td> |
23 <td>Class implementing the download manager.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
|
30 <table> |
28 <table> |
31 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
32 </table> |
30 </table> |
|
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="DownloadManager" ID="DownloadManager"></a> |
34 <a NAME="DownloadManager" ID="DownloadManager"></a> |
36 <h2>DownloadManager</h2> |
35 <h2>DownloadManager</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing the download manager. |
37 Class implementing the download manager. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Signals</h3> |
40 <h3>Signals</h3> |
42 <dl> |
41 <dl> |
43 |
42 |
44 <dt>downloadsCountChanged()</dt> |
43 <dt>downloadsCountChanged()</dt> |
45 <dd> |
44 <dd> |
206 <tr> |
206 <tr> |
207 <td><a href="#DownloadManager.timerEvent">timerEvent</a></td> |
207 <td><a href="#DownloadManager.timerEvent">timerEvent</a></td> |
208 <td>Protected event handler for timer events.</td> |
208 <td>Protected event handler for timer events.</td> |
209 </tr> |
209 </tr> |
210 </table> |
210 </table> |
|
211 |
211 <h3>Static Methods</h3> |
212 <h3>Static Methods</h3> |
212 |
|
213 <table> |
213 <table> |
214 <tr><td>None</td></tr> |
214 <tr><td>None</td></tr> |
215 </table> |
215 </table> |
216 |
216 |
|
217 |
217 <a NAME="DownloadManager.__init__" ID="DownloadManager.__init__"></a> |
218 <a NAME="DownloadManager.__init__" ID="DownloadManager.__init__"></a> |
218 <h4>DownloadManager (Constructor)</h4> |
219 <h4>DownloadManager (Constructor)</h4> |
219 <b>DownloadManager</b>(<i>parent=None</i>) |
220 <b>DownloadManager</b>(<i>parent=None</i>) |
220 |
|
221 <p> |
221 <p> |
222 Constructor |
222 Constructor |
223 </p> |
223 </p> |
|
224 |
224 <dl> |
225 <dl> |
225 |
226 |
226 <dt><i>parent</i> (QWidget)</dt> |
227 <dt><i>parent</i> (QWidget)</dt> |
227 <dd> |
228 <dd> |
228 reference to the parent widget |
229 reference to the parent widget |
229 </dd> |
230 </dd> |
230 </dl> |
231 </dl> |
231 <a NAME="DownloadManager.__addItem" ID="DownloadManager.__addItem"></a> |
232 <a NAME="DownloadManager.__addItem" ID="DownloadManager.__addItem"></a> |
232 <h4>DownloadManager.__addItem</h4> |
233 <h4>DownloadManager.__addItem</h4> |
233 <b>__addItem</b>(<i>itm, append=False</i>) |
234 <b>__addItem</b>(<i>itm, append=False</i>) |
234 |
|
235 <p> |
235 <p> |
236 Private method to add a download to the list of downloads. |
236 Private method to add a download to the list of downloads. |
237 </p> |
237 </p> |
|
238 |
238 <dl> |
239 <dl> |
239 |
240 |
240 <dt><i>itm</i> (DownloadItem)</dt> |
241 <dt><i>itm</i> (DownloadItem)</dt> |
241 <dd> |
242 <dd> |
242 reference to the download item |
243 reference to the download item |
247 </dd> |
248 </dd> |
248 </dl> |
249 </dl> |
249 <a NAME="DownloadManager.__closeDownloadTab" ID="DownloadManager.__closeDownloadTab"></a> |
250 <a NAME="DownloadManager.__closeDownloadTab" ID="DownloadManager.__closeDownloadTab"></a> |
250 <h4>DownloadManager.__closeDownloadTab</h4> |
251 <h4>DownloadManager.__closeDownloadTab</h4> |
251 <b>__closeDownloadTab</b>(<i>url</i>) |
252 <b>__closeDownloadTab</b>(<i>url</i>) |
252 |
|
253 <p> |
253 <p> |
254 Private method to close an empty tab, that was opened only for loading |
254 Private method to close an empty tab, that was opened only for loading |
255 the download URL. |
255 the download URL. |
256 </p> |
256 </p> |
|
257 |
257 <dl> |
258 <dl> |
258 |
259 |
259 <dt><i>url</i> (QUrl)</dt> |
260 <dt><i>url</i> (QUrl)</dt> |
260 <dd> |
261 <dd> |
261 download URL |
262 download URL |
262 </dd> |
263 </dd> |
263 </dl> |
264 </dl> |
264 <a NAME="DownloadManager.__contextMenuCancel" ID="DownloadManager.__contextMenuCancel"></a> |
265 <a NAME="DownloadManager.__contextMenuCancel" ID="DownloadManager.__contextMenuCancel"></a> |
265 <h4>DownloadManager.__contextMenuCancel</h4> |
266 <h4>DownloadManager.__contextMenuCancel</h4> |
266 <b>__contextMenuCancel</b>(<i></i>) |
267 <b>__contextMenuCancel</b>(<i></i>) |
267 |
|
268 <p> |
268 <p> |
269 Private method to cancel the current download. |
269 Private method to cancel the current download. |
270 </p> |
270 </p> |
|
271 |
271 <a NAME="DownloadManager.__contextMenuCopyLink" ID="DownloadManager.__contextMenuCopyLink"></a> |
272 <a NAME="DownloadManager.__contextMenuCopyLink" ID="DownloadManager.__contextMenuCopyLink"></a> |
272 <h4>DownloadManager.__contextMenuCopyLink</h4> |
273 <h4>DownloadManager.__contextMenuCopyLink</h4> |
273 <b>__contextMenuCopyLink</b>(<i></i>) |
274 <b>__contextMenuCopyLink</b>(<i></i>) |
274 |
|
275 <p> |
275 <p> |
276 Private method to copy the download link to the clipboard. |
276 Private method to copy the download link to the clipboard. |
277 </p> |
277 </p> |
|
278 |
278 <a NAME="DownloadManager.__contextMenuGotoPage" ID="DownloadManager.__contextMenuGotoPage"></a> |
279 <a NAME="DownloadManager.__contextMenuGotoPage" ID="DownloadManager.__contextMenuGotoPage"></a> |
279 <h4>DownloadManager.__contextMenuGotoPage</h4> |
280 <h4>DownloadManager.__contextMenuGotoPage</h4> |
280 <b>__contextMenuGotoPage</b>(<i></i>) |
281 <b>__contextMenuGotoPage</b>(<i></i>) |
281 |
|
282 <p> |
282 <p> |
283 Private method to open the download page. |
283 Private method to open the download page. |
284 </p> |
284 </p> |
|
285 |
285 <a NAME="DownloadManager.__contextMenuOpen" ID="DownloadManager.__contextMenuOpen"></a> |
286 <a NAME="DownloadManager.__contextMenuOpen" ID="DownloadManager.__contextMenuOpen"></a> |
286 <h4>DownloadManager.__contextMenuOpen</h4> |
287 <h4>DownloadManager.__contextMenuOpen</h4> |
287 <b>__contextMenuOpen</b>(<i></i>) |
288 <b>__contextMenuOpen</b>(<i></i>) |
288 |
|
289 <p> |
289 <p> |
290 Private method to open the downloaded file. |
290 Private method to open the downloaded file. |
291 </p> |
291 </p> |
|
292 |
292 <a NAME="DownloadManager.__contextMenuOpenFolder" ID="DownloadManager.__contextMenuOpenFolder"></a> |
293 <a NAME="DownloadManager.__contextMenuOpenFolder" ID="DownloadManager.__contextMenuOpenFolder"></a> |
293 <h4>DownloadManager.__contextMenuOpenFolder</h4> |
294 <h4>DownloadManager.__contextMenuOpenFolder</h4> |
294 <b>__contextMenuOpenFolder</b>(<i></i>) |
295 <b>__contextMenuOpenFolder</b>(<i></i>) |
295 |
|
296 <p> |
296 <p> |
297 Private method to open the folder containing the downloaded file. |
297 Private method to open the folder containing the downloaded file. |
298 </p> |
298 </p> |
|
299 |
299 <a NAME="DownloadManager.__contextMenuRemoveSelected" ID="DownloadManager.__contextMenuRemoveSelected"></a> |
300 <a NAME="DownloadManager.__contextMenuRemoveSelected" ID="DownloadManager.__contextMenuRemoveSelected"></a> |
300 <h4>DownloadManager.__contextMenuRemoveSelected</h4> |
301 <h4>DownloadManager.__contextMenuRemoveSelected</h4> |
301 <b>__contextMenuRemoveSelected</b>(<i></i>) |
302 <b>__contextMenuRemoveSelected</b>(<i></i>) |
302 |
|
303 <p> |
303 <p> |
304 Private method to remove the selected downloads from the list. |
304 Private method to remove the selected downloads from the list. |
305 </p> |
305 </p> |
|
306 |
306 <a NAME="DownloadManager.__contextMenuSelectAll" ID="DownloadManager.__contextMenuSelectAll"></a> |
307 <a NAME="DownloadManager.__contextMenuSelectAll" ID="DownloadManager.__contextMenuSelectAll"></a> |
307 <h4>DownloadManager.__contextMenuSelectAll</h4> |
308 <h4>DownloadManager.__contextMenuSelectAll</h4> |
308 <b>__contextMenuSelectAll</b>(<i></i>) |
309 <b>__contextMenuSelectAll</b>(<i></i>) |
309 |
|
310 <p> |
310 <p> |
311 Private method to select all downloads. |
311 Private method to select all downloads. |
312 </p> |
312 </p> |
|
313 |
313 <a NAME="DownloadManager.__currentItem" ID="DownloadManager.__currentItem"></a> |
314 <a NAME="DownloadManager.__currentItem" ID="DownloadManager.__currentItem"></a> |
314 <h4>DownloadManager.__currentItem</h4> |
315 <h4>DownloadManager.__currentItem</h4> |
315 <b>__currentItem</b>(<i></i>) |
316 <b>__currentItem</b>(<i></i>) |
316 |
|
317 <p> |
317 <p> |
318 Private method to get a reference to the current item. |
318 Private method to get a reference to the current item. |
319 </p> |
319 </p> |
|
320 |
320 <dl> |
321 <dl> |
321 <dt>Return:</dt> |
322 <dt>Return:</dt> |
322 <dd> |
323 <dd> |
323 reference to the current item |
324 reference to the current item |
324 </dd> |
325 </dd> |
330 </dd> |
331 </dd> |
331 </dl> |
332 </dl> |
332 <a NAME="DownloadManager.__customContextMenuRequested" ID="DownloadManager.__customContextMenuRequested"></a> |
333 <a NAME="DownloadManager.__customContextMenuRequested" ID="DownloadManager.__customContextMenuRequested"></a> |
333 <h4>DownloadManager.__customContextMenuRequested</h4> |
334 <h4>DownloadManager.__customContextMenuRequested</h4> |
334 <b>__customContextMenuRequested</b>(<i>pos</i>) |
335 <b>__customContextMenuRequested</b>(<i>pos</i>) |
335 |
|
336 <p> |
336 <p> |
337 Private slot to handle the context menu request for the bookmarks tree. |
337 Private slot to handle the context menu request for the bookmarks tree. |
338 </p> |
338 </p> |
|
339 |
339 <dl> |
340 <dl> |
340 |
341 |
341 <dt><i>pos</i> (QPoint)</dt> |
342 <dt><i>pos</i> (QPoint)</dt> |
342 <dd> |
343 <dd> |
343 position the context menu was requested |
344 position the context menu was requested |
344 </dd> |
345 </dd> |
345 </dl> |
346 </dl> |
346 <a NAME="DownloadManager.__finished" ID="DownloadManager.__finished"></a> |
347 <a NAME="DownloadManager.__finished" ID="DownloadManager.__finished"></a> |
347 <h4>DownloadManager.__finished</h4> |
348 <h4>DownloadManager.__finished</h4> |
348 <b>__finished</b>(<i>success</i>) |
349 <b>__finished</b>(<i>success</i>) |
349 |
|
350 <p> |
350 <p> |
351 Private slot to handle a finished download. |
351 Private slot to handle a finished download. |
352 </p> |
352 </p> |
|
353 |
353 <dl> |
354 <dl> |
354 |
355 |
355 <dt><i>success</i> (bool)</dt> |
356 <dt><i>success</i> (bool)</dt> |
356 <dd> |
357 <dd> |
357 flag indicating a successful download |
358 flag indicating a successful download |
358 </dd> |
359 </dd> |
359 </dl> |
360 </dl> |
360 <a NAME="DownloadManager.__load" ID="DownloadManager.__load"></a> |
361 <a NAME="DownloadManager.__load" ID="DownloadManager.__load"></a> |
361 <h4>DownloadManager.__load</h4> |
362 <h4>DownloadManager.__load</h4> |
362 <b>__load</b>(<i></i>) |
363 <b>__load</b>(<i></i>) |
363 |
|
364 <p> |
364 <p> |
365 Private method to load the download settings. |
365 Private method to load the download settings. |
366 </p> |
366 </p> |
|
367 |
367 <a NAME="DownloadManager.__startUpdateTimer" ID="DownloadManager.__startUpdateTimer"></a> |
368 <a NAME="DownloadManager.__startUpdateTimer" ID="DownloadManager.__startUpdateTimer"></a> |
368 <h4>DownloadManager.__startUpdateTimer</h4> |
369 <h4>DownloadManager.__startUpdateTimer</h4> |
369 <b>__startUpdateTimer</b>(<i></i>) |
370 <b>__startUpdateTimer</b>(<i></i>) |
370 |
|
371 <p> |
371 <p> |
372 Private slot to start the update timer. |
372 Private slot to start the update timer. |
373 </p> |
373 </p> |
|
374 |
374 <a NAME="DownloadManager.__stopUpdateTimer" ID="DownloadManager.__stopUpdateTimer"></a> |
375 <a NAME="DownloadManager.__stopUpdateTimer" ID="DownloadManager.__stopUpdateTimer"></a> |
375 <h4>DownloadManager.__stopUpdateTimer</h4> |
376 <h4>DownloadManager.__stopUpdateTimer</h4> |
376 <b>__stopUpdateTimer</b>(<i></i>) |
377 <b>__stopUpdateTimer</b>(<i></i>) |
377 |
|
378 <p> |
378 <p> |
379 Private slot to stop the update timer. |
379 Private slot to stop the update timer. |
380 </p> |
380 </p> |
|
381 |
381 <a NAME="DownloadManager.__taskbarButton" ID="DownloadManager.__taskbarButton"></a> |
382 <a NAME="DownloadManager.__taskbarButton" ID="DownloadManager.__taskbarButton"></a> |
382 <h4>DownloadManager.__taskbarButton</h4> |
383 <h4>DownloadManager.__taskbarButton</h4> |
383 <b>__taskbarButton</b>(<i></i>) |
384 <b>__taskbarButton</b>(<i></i>) |
384 |
|
385 <p> |
385 <p> |
386 Private method to get a reference to the task bar button (Windows |
386 Private method to get a reference to the task bar button (Windows |
387 only). |
387 only). |
388 </p> |
388 </p> |
|
389 |
389 <dl> |
390 <dl> |
390 <dt>Return:</dt> |
391 <dt>Return:</dt> |
391 <dd> |
392 <dd> |
392 reference to the task bar button |
393 reference to the task bar button |
393 </dd> |
394 </dd> |
429 </dd> |
430 </dd> |
430 </dl> |
431 </dl> |
431 <a NAME="DownloadManager.__updateRow" ID="DownloadManager.__updateRow"></a> |
432 <a NAME="DownloadManager.__updateRow" ID="DownloadManager.__updateRow"></a> |
432 <h4>DownloadManager.__updateRow</h4> |
433 <h4>DownloadManager.__updateRow</h4> |
433 <b>__updateRow</b>(<i>itm</i>) |
434 <b>__updateRow</b>(<i>itm</i>) |
434 |
|
435 <p> |
435 <p> |
436 Private slot to update a download item. |
436 Private slot to update a download item. |
437 </p> |
437 </p> |
|
438 |
438 <dl> |
439 <dl> |
439 |
440 |
440 <dt><i>itm</i> (DownloadItem)</dt> |
441 <dt><i>itm</i> (DownloadItem)</dt> |
441 <dd> |
442 <dd> |
442 reference to the download item |
443 reference to the download item |
443 </dd> |
444 </dd> |
444 </dl> |
445 </dl> |
445 <a NAME="DownloadManager.activeDownloadsCount" ID="DownloadManager.activeDownloadsCount"></a> |
446 <a NAME="DownloadManager.activeDownloadsCount" ID="DownloadManager.activeDownloadsCount"></a> |
446 <h4>DownloadManager.activeDownloadsCount</h4> |
447 <h4>DownloadManager.activeDownloadsCount</h4> |
447 <b>activeDownloadsCount</b>(<i></i>) |
448 <b>activeDownloadsCount</b>(<i></i>) |
448 |
|
449 <p> |
449 <p> |
450 Public method to get the number of active downloads. |
450 Public method to get the number of active downloads. |
451 </p> |
451 </p> |
|
452 |
452 <dl> |
453 <dl> |
453 <dt>Return:</dt> |
454 <dt>Return:</dt> |
454 <dd> |
455 <dd> |
455 number of active downloads |
456 number of active downloads |
456 </dd> |
457 </dd> |
481 </dd> |
482 </dd> |
482 </dl> |
483 </dl> |
483 <a NAME="DownloadManager.changeOccurred" ID="DownloadManager.changeOccurred"></a> |
484 <a NAME="DownloadManager.changeOccurred" ID="DownloadManager.changeOccurred"></a> |
484 <h4>DownloadManager.changeOccurred</h4> |
485 <h4>DownloadManager.changeOccurred</h4> |
485 <b>changeOccurred</b>(<i></i>) |
486 <b>changeOccurred</b>(<i></i>) |
486 |
|
487 <p> |
487 <p> |
488 Public method to signal a change. |
488 Public method to signal a change. |
489 </p> |
489 </p> |
|
490 |
490 <a NAME="DownloadManager.cleanup" ID="DownloadManager.cleanup"></a> |
491 <a NAME="DownloadManager.cleanup" ID="DownloadManager.cleanup"></a> |
491 <h4>DownloadManager.cleanup</h4> |
492 <h4>DownloadManager.cleanup</h4> |
492 <b>cleanup</b>(<i></i>) |
493 <b>cleanup</b>(<i></i>) |
493 |
|
494 <p> |
494 <p> |
495 Public slot to cleanup the downloads. |
495 Public slot to cleanup the downloads. |
496 </p> |
496 </p> |
|
497 |
497 <a NAME="DownloadManager.closeEvent" ID="DownloadManager.closeEvent"></a> |
498 <a NAME="DownloadManager.closeEvent" ID="DownloadManager.closeEvent"></a> |
498 <h4>DownloadManager.closeEvent</h4> |
499 <h4>DownloadManager.closeEvent</h4> |
499 <b>closeEvent</b>(<i>evt</i>) |
500 <b>closeEvent</b>(<i>evt</i>) |
500 |
|
501 <p> |
501 <p> |
502 Protected event handler for the close event. |
502 Protected event handler for the close event. |
503 </p> |
503 </p> |
|
504 |
504 <dl> |
505 <dl> |
505 |
506 |
506 <dt><i>evt</i> (QCloseEvent)</dt> |
507 <dt><i>evt</i> (QCloseEvent)</dt> |
507 <dd> |
508 <dd> |
508 reference to the close event |
509 reference to the close event |
509 </dd> |
510 </dd> |
510 </dl> |
511 </dl> |
511 <a NAME="DownloadManager.download" ID="DownloadManager.download"></a> |
512 <a NAME="DownloadManager.download" ID="DownloadManager.download"></a> |
512 <h4>DownloadManager.download</h4> |
513 <h4>DownloadManager.download</h4> |
513 <b>download</b>(<i>downloadRequest</i>) |
514 <b>download</b>(<i>downloadRequest</i>) |
514 |
|
515 <p> |
515 <p> |
516 Public method to download a file. |
516 Public method to download a file. |
517 </p> |
517 </p> |
|
518 |
518 <dl> |
519 <dl> |
519 |
520 |
520 <dt><i>downloadRequest</i> (QWebEngineDownloadRequest)</dt> |
521 <dt><i>downloadRequest</i> (QWebEngineDownloadRequest)</dt> |
521 <dd> |
522 <dd> |
522 reference to the download object containing the |
523 reference to the download object containing the |
581 </dd> |
582 </dd> |
582 </dl> |
583 </dl> |
583 <a NAME="DownloadManager.on_cleanupButton_clicked" ID="DownloadManager.on_cleanupButton_clicked"></a> |
584 <a NAME="DownloadManager.on_cleanupButton_clicked" ID="DownloadManager.on_cleanupButton_clicked"></a> |
584 <h4>DownloadManager.on_cleanupButton_clicked</h4> |
585 <h4>DownloadManager.on_cleanupButton_clicked</h4> |
585 <b>on_cleanupButton_clicked</b>(<i></i>) |
586 <b>on_cleanupButton_clicked</b>(<i></i>) |
586 |
|
587 <p> |
587 <p> |
588 Private slot to cleanup the downloads. |
588 Private slot to cleanup the downloads. |
589 </p> |
589 </p> |
|
590 |
590 <a NAME="DownloadManager.removePolicy" ID="DownloadManager.removePolicy"></a> |
591 <a NAME="DownloadManager.removePolicy" ID="DownloadManager.removePolicy"></a> |
591 <h4>DownloadManager.removePolicy</h4> |
592 <h4>DownloadManager.removePolicy</h4> |
592 <b>removePolicy</b>(<i></i>) |
593 <b>removePolicy</b>(<i></i>) |
593 |
|
594 <p> |
594 <p> |
595 Public method to get the remove policy. |
595 Public method to get the remove policy. |
596 </p> |
596 </p> |
|
597 |
597 <dl> |
598 <dl> |
598 <dt>Return:</dt> |
599 <dt>Return:</dt> |
599 <dd> |
600 <dd> |
600 remove policy |
601 remove policy |
601 </dd> |
602 </dd> |
607 </dd> |
608 </dd> |
608 </dl> |
609 </dl> |
609 <a NAME="DownloadManager.save" ID="DownloadManager.save"></a> |
610 <a NAME="DownloadManager.save" ID="DownloadManager.save"></a> |
610 <h4>DownloadManager.save</h4> |
611 <h4>DownloadManager.save</h4> |
611 <b>save</b>(<i></i>) |
612 <b>save</b>(<i></i>) |
612 |
|
613 <p> |
613 <p> |
614 Public method to save the download settings. |
614 Public method to save the download settings. |
615 </p> |
615 </p> |
|
616 |
616 <a NAME="DownloadManager.setDownloadDirectory" ID="DownloadManager.setDownloadDirectory"></a> |
617 <a NAME="DownloadManager.setDownloadDirectory" ID="DownloadManager.setDownloadDirectory"></a> |
617 <h4>DownloadManager.setDownloadDirectory</h4> |
618 <h4>DownloadManager.setDownloadDirectory</h4> |
618 <b>setDownloadDirectory</b>(<i>directory</i>) |
619 <b>setDownloadDirectory</b>(<i>directory</i>) |
619 |
|
620 <p> |
620 <p> |
621 Public method to set the current download directory. |
621 Public method to set the current download directory. |
622 </p> |
622 </p> |
|
623 |
623 <dl> |
624 <dl> |
624 |
625 |
625 <dt><i>directory</i> (str)</dt> |
626 <dt><i>directory</i> (str)</dt> |
626 <dd> |
627 <dd> |
627 current download directory |
628 current download directory |
628 </dd> |
629 </dd> |
629 </dl> |
630 </dl> |
630 <a NAME="DownloadManager.setRemovePolicy" ID="DownloadManager.setRemovePolicy"></a> |
631 <a NAME="DownloadManager.setRemovePolicy" ID="DownloadManager.setRemovePolicy"></a> |
631 <h4>DownloadManager.setRemovePolicy</h4> |
632 <h4>DownloadManager.setRemovePolicy</h4> |
632 <b>setRemovePolicy</b>(<i>policy</i>) |
633 <b>setRemovePolicy</b>(<i>policy</i>) |
633 |
|
634 <p> |
634 <p> |
635 Public method to set the remove policy. |
635 Public method to set the remove policy. |
636 </p> |
636 </p> |
|
637 |
637 <dl> |
638 <dl> |
638 |
639 |
639 <dt><i>policy</i> (int)</dt> |
640 <dt><i>policy</i> (int)</dt> |
640 <dd> |
641 <dd> |
641 policy to be set |
642 policy to be set |
644 </dd> |
645 </dd> |
645 </dl> |
646 </dl> |
646 <a NAME="DownloadManager.show" ID="DownloadManager.show"></a> |
647 <a NAME="DownloadManager.show" ID="DownloadManager.show"></a> |
647 <h4>DownloadManager.show</h4> |
648 <h4>DownloadManager.show</h4> |
648 <b>show</b>(<i></i>) |
649 <b>show</b>(<i></i>) |
649 |
|
650 <p> |
650 <p> |
651 Public slot to show the download manager dialog. |
651 Public slot to show the download manager dialog. |
652 </p> |
652 </p> |
|
653 |
653 <a NAME="DownloadManager.shutdown" ID="DownloadManager.shutdown"></a> |
654 <a NAME="DownloadManager.shutdown" ID="DownloadManager.shutdown"></a> |
654 <h4>DownloadManager.shutdown</h4> |
655 <h4>DownloadManager.shutdown</h4> |
655 <b>shutdown</b>(<i></i>) |
656 <b>shutdown</b>(<i></i>) |
656 |
|
657 <p> |
657 <p> |
658 Public method to stop the download manager. |
658 Public method to stop the download manager. |
659 </p> |
659 </p> |
|
660 |
660 <a NAME="DownloadManager.timerEvent" ID="DownloadManager.timerEvent"></a> |
661 <a NAME="DownloadManager.timerEvent" ID="DownloadManager.timerEvent"></a> |
661 <h4>DownloadManager.timerEvent</h4> |
662 <h4>DownloadManager.timerEvent</h4> |
662 <b>timerEvent</b>(<i>evt</i>) |
663 <b>timerEvent</b>(<i>evt</i>) |
663 |
|
664 <p> |
664 <p> |
665 Protected event handler for timer events. |
665 Protected event handler for timer events. |
666 </p> |
666 </p> |
|
667 |
667 <dl> |
668 <dl> |
668 |
669 |
669 <dt><i>evt</i> (QTimerEvent)</dt> |
670 <dt><i>evt</i> (QTimerEvent)</dt> |
670 <dd> |
671 <dd> |
671 reference to the timer event |
672 reference to the timer event |