src/eric7/Documentation/Source/eric7.WebBrowser.Download.DownloadManager.html

branch
eric7
changeset 10436
f6881d10e995
parent 9209
b99e7fd55fd3
child 10479
856476537696
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
221 <p> 221 <p>
222 Constructor 222 Constructor
223 </p> 223 </p>
224 <dl> 224 <dl>
225 225
226 <dt><i>parent</i></dt> 226 <dt><i>parent</i> (QWidget)</dt>
227 <dd> 227 <dd>
228 reference to the parent widget (QWidget) 228 reference to the parent widget
229 </dd> 229 </dd>
230 </dl> 230 </dl>
231 <a NAME="DownloadManager.__addItem" ID="DownloadManager.__addItem"></a> 231 <a NAME="DownloadManager.__addItem" ID="DownloadManager.__addItem"></a>
232 <h4>DownloadManager.__addItem</h4> 232 <h4>DownloadManager.__addItem</h4>
233 <b>__addItem</b>(<i>itm, append=False</i>) 233 <b>__addItem</b>(<i>itm, append=False</i>)
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 <dl> 320 <dl>
321 <dt>Return:</dt> 321 <dt>Return:</dt>
322 <dd> 322 <dd>
323 reference to the current item (DownloadItem) 323 reference to the current item
324 </dd>
325 </dl>
326 <dl>
327 <dt>Return Type:</dt>
328 <dd>
329 DownloadItem
324 </dd> 330 </dd>
325 </dl> 331 </dl>
326 <a NAME="DownloadManager.__customContextMenuRequested" ID="DownloadManager.__customContextMenuRequested"></a> 332 <a NAME="DownloadManager.__customContextMenuRequested" ID="DownloadManager.__customContextMenuRequested"></a>
327 <h4>DownloadManager.__customContextMenuRequested</h4> 333 <h4>DownloadManager.__customContextMenuRequested</h4>
328 <b>__customContextMenuRequested</b>(<i>pos</i>) 334 <b>__customContextMenuRequested</b>(<i>pos</i>)
330 <p> 336 <p>
331 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.
332 </p> 338 </p>
333 <dl> 339 <dl>
334 340
335 <dt><i>pos</i></dt> 341 <dt><i>pos</i> (QPoint)</dt>
336 <dd> 342 <dd>
337 position the context menu was requested (QPoint) 343 position the context menu was requested
338 </dd> 344 </dd>
339 </dl> 345 </dl>
340 <a NAME="DownloadManager.__finished" ID="DownloadManager.__finished"></a> 346 <a NAME="DownloadManager.__finished" ID="DownloadManager.__finished"></a>
341 <h4>DownloadManager.__finished</h4> 347 <h4>DownloadManager.__finished</h4>
342 <b>__finished</b>(<i>success</i>) 348 <b>__finished</b>(<i>success</i>)
444 Public method to get the number of active downloads. 450 Public method to get the number of active downloads.
445 </p> 451 </p>
446 <dl> 452 <dl>
447 <dt>Return:</dt> 453 <dt>Return:</dt>
448 <dd> 454 <dd>
449 number of active downloads (integer) 455 number of active downloads
456 </dd>
457 </dl>
458 <dl>
459 <dt>Return Type:</dt>
460 <dd>
461 int
450 </dd> 462 </dd>
451 </dl> 463 </dl>
452 <a NAME="DownloadManager.allowQuit" ID="DownloadManager.allowQuit"></a> 464 <a NAME="DownloadManager.allowQuit" ID="DownloadManager.allowQuit"></a>
453 <h4>DownloadManager.allowQuit</h4> 465 <h4>DownloadManager.allowQuit</h4>
454 <b>allowQuit</b>(<i></i>) 466 <b>allowQuit</b>(<i></i>)
457 Public method to check, if it is ok to quit. 469 Public method to check, if it is ok to quit.
458 </p> 470 </p>
459 <dl> 471 <dl>
460 <dt>Return:</dt> 472 <dt>Return:</dt>
461 <dd> 473 <dd>
462 flag indicating allowance to quit (boolean) 474 flag indicating allowance to quit
475 </dd>
476 </dl>
477 <dl>
478 <dt>Return Type:</dt>
479 <dd>
480 bool
463 </dd> 481 </dd>
464 </dl> 482 </dl>
465 <a NAME="DownloadManager.changeOccurred" ID="DownloadManager.changeOccurred"></a> 483 <a NAME="DownloadManager.changeOccurred" ID="DownloadManager.changeOccurred"></a>
466 <h4>DownloadManager.changeOccurred</h4> 484 <h4>DownloadManager.changeOccurred</h4>
467 <b>changeOccurred</b>(<i></i>) 485 <b>changeOccurred</b>(<i></i>)
513 Public method to get the current download directory. 531 Public method to get the current download directory.
514 </p> 532 </p>
515 <dl> 533 <dl>
516 <dt>Return:</dt> 534 <dt>Return:</dt>
517 <dd> 535 <dd>
518 current download directory (string) 536 current download directory
537 </dd>
538 </dl>
539 <dl>
540 <dt>Return Type:</dt>
541 <dd>
542 str
519 </dd> 543 </dd>
520 </dl> 544 </dl>
521 <a NAME="DownloadManager.downloads" ID="DownloadManager.downloads"></a> 545 <a NAME="DownloadManager.downloads" ID="DownloadManager.downloads"></a>
522 <h4>DownloadManager.downloads</h4> 546 <h4>DownloadManager.downloads</h4>
523 <b>downloads</b>(<i></i>) 547 <b>downloads</b>(<i></i>)
526 Public method to get a reference to the downloads. 550 Public method to get a reference to the downloads.
527 </p> 551 </p>
528 <dl> 552 <dl>
529 <dt>Return:</dt> 553 <dt>Return:</dt>
530 <dd> 554 <dd>
531 reference to the downloads (list of DownloadItem) 555 reference to the downloads
556 </dd>
557 </dl>
558 <dl>
559 <dt>Return Type:</dt>
560 <dd>
561 list of DownloadItem
532 </dd> 562 </dd>
533 </dl> 563 </dl>
534 <a NAME="DownloadManager.downloadsCount" ID="DownloadManager.downloadsCount"></a> 564 <a NAME="DownloadManager.downloadsCount" ID="DownloadManager.downloadsCount"></a>
535 <h4>DownloadManager.downloadsCount</h4> 565 <h4>DownloadManager.downloadsCount</h4>
536 <b>downloadsCount</b>(<i></i>) 566 <b>downloadsCount</b>(<i></i>)
565 Public method to get the remove policy. 595 Public method to get the remove policy.
566 </p> 596 </p>
567 <dl> 597 <dl>
568 <dt>Return:</dt> 598 <dt>Return:</dt>
569 <dd> 599 <dd>
570 remove policy (integer) 600 remove policy
601 </dd>
602 </dl>
603 <dl>
604 <dt>Return Type:</dt>
605 <dd>
606 int
571 </dd> 607 </dd>
572 </dl> 608 </dl>
573 <a NAME="DownloadManager.save" ID="DownloadManager.save"></a> 609 <a NAME="DownloadManager.save" ID="DownloadManager.save"></a>
574 <h4>DownloadManager.save</h4> 610 <h4>DownloadManager.save</h4>
575 <b>save</b>(<i></i>) 611 <b>save</b>(<i></i>)
584 <p> 620 <p>
585 Public method to set the current download directory. 621 Public method to set the current download directory.
586 </p> 622 </p>
587 <dl> 623 <dl>
588 624
589 <dt><i>directory</i></dt> 625 <dt><i>directory</i> (str)</dt>
590 <dd> 626 <dd>
591 current download directory (string) 627 current download directory
592 </dd> 628 </dd>
593 </dl> 629 </dl>
594 <a NAME="DownloadManager.setRemovePolicy" ID="DownloadManager.setRemovePolicy"></a> 630 <a NAME="DownloadManager.setRemovePolicy" ID="DownloadManager.setRemovePolicy"></a>
595 <h4>DownloadManager.setRemovePolicy</h4> 631 <h4>DownloadManager.setRemovePolicy</h4>
596 <b>setRemovePolicy</b>(<i>policy</i>) 632 <b>setRemovePolicy</b>(<i>policy</i>)
598 <p> 634 <p>
599 Public method to set the remove policy. 635 Public method to set the remove policy.
600 </p> 636 </p>
601 <dl> 637 <dl>
602 638
603 <dt><i>policy</i></dt> 639 <dt><i>policy</i> (int)</dt>
604 <dd> 640 <dd>
605 policy to be set 641 policy to be set
606 (DownloadManager.RemoveExit, DownloadManager.RemoveNever, 642 (DownloadManager.RemoveExit, DownloadManager.RemoveNever,
607 DownloadManager.RemoveSuccessFullDownload) 643 DownloadManager.RemoveSuccessFullDownload)
608 </dd> 644 </dd>

eric ide

mercurial