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

branch
eric7
changeset 10436
f6881d10e995
parent 9566
d4986df5d2e4
child 10479
856476537696
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
286 <p> 286 <p>
287 Private method to calculate a name for the file to download. 287 Private method to calculate a name for the file to download.
288 </p> 288 </p>
289 <dl> 289 <dl>
290 290
291 <dt><i>directory</i></dt> 291 <dt><i>directory</i> (str)</dt>
292 <dd> 292 <dd>
293 name of the directory to store the file into (string) 293 name of the directory to store the file into
294 </dd> 294 </dd>
295 </dl> 295 </dl>
296 <dl> 296 <dl>
297 <dt>Return:</dt> 297 <dt>Return:</dt>
298 <dd> 298 <dd>
299 proposed filename and original filename (string, string) 299 proposed filename and original filename
300 </dd>
301 </dl>
302 <dl>
303 <dt>Return Type:</dt>
304 <dd>
305 tuple of (str, str)
300 </dd> 306 </dd>
301 </dl> 307 </dl>
302 <a NAME="DownloadItem.__setDateTime" ID="DownloadItem.__setDateTime"></a> 308 <a NAME="DownloadItem.__setDateTime" ID="DownloadItem.__setDateTime"></a>
303 <h4>DownloadItem.__setDateTime</h4> 309 <h4>DownloadItem.__setDateTime</h4>
304 <b>__setDateTime</b>(<i>dateTime=None</i>) 310 <b>__setDateTime</b>(<i>dateTime=None</i>)
349 Public method to get the absolute path of the output file. 355 Public method to get the absolute path of the output file.
350 </p> 356 </p>
351 <dl> 357 <dl>
352 <dt>Return:</dt> 358 <dt>Return:</dt>
353 <dd> 359 <dd>
354 absolute path of the output file (string) 360 absolute path of the output file
361 </dd>
362 </dl>
363 <dl>
364 <dt>Return Type:</dt>
365 <dd>
366 str
355 </dd> 367 </dd>
356 </dl> 368 </dl>
357 <a NAME="DownloadItem.bytesReceived" ID="DownloadItem.bytesReceived"></a> 369 <a NAME="DownloadItem.bytesReceived" ID="DownloadItem.bytesReceived"></a>
358 <h4>DownloadItem.bytesReceived</h4> 370 <h4>DownloadItem.bytesReceived</h4>
359 <b>bytesReceived</b>(<i></i>) 371 <b>bytesReceived</b>(<i></i>)
362 Public method to get the number of bytes received. 374 Public method to get the number of bytes received.
363 </p> 375 </p>
364 <dl> 376 <dl>
365 <dt>Return:</dt> 377 <dt>Return:</dt>
366 <dd> 378 <dd>
367 number of bytes received (integer) 379 number of bytes received
380 </dd>
381 </dl>
382 <dl>
383 <dt>Return Type:</dt>
384 <dd>
385 int
368 </dd> 386 </dd>
369 </dl> 387 </dl>
370 <a NAME="DownloadItem.bytesTotal" ID="DownloadItem.bytesTotal"></a> 388 <a NAME="DownloadItem.bytesTotal" ID="DownloadItem.bytesTotal"></a>
371 <h4>DownloadItem.bytesTotal</h4> 389 <h4>DownloadItem.bytesTotal</h4>
372 <b>bytesTotal</b>(<i></i>) 390 <b>bytesTotal</b>(<i></i>)
375 Public method to get the total number of bytes of the download. 393 Public method to get the total number of bytes of the download.
376 </p> 394 </p>
377 <dl> 395 <dl>
378 <dt>Return:</dt> 396 <dt>Return:</dt>
379 <dd> 397 <dd>
380 total number of bytes (integer) 398 total number of bytes
399 </dd>
400 </dl>
401 <dl>
402 <dt>Return Type:</dt>
403 <dd>
404 int
381 </dd> 405 </dd>
382 </dl> 406 </dl>
383 <a NAME="DownloadItem.cancelDownload" ID="DownloadItem.cancelDownload"></a> 407 <a NAME="DownloadItem.cancelDownload" ID="DownloadItem.cancelDownload"></a>
384 <h4>DownloadItem.cancelDownload</h4> 408 <h4>DownloadItem.cancelDownload</h4>
385 <b>cancelDownload</b>(<i></i>) 409 <b>cancelDownload</b>(<i></i>)
395 Public method to check, if the user canceled the file selection. 419 Public method to check, if the user canceled the file selection.
396 </p> 420 </p>
397 <dl> 421 <dl>
398 <dt>Return:</dt> 422 <dt>Return:</dt>
399 <dd> 423 <dd>
400 flag indicating cancellation (boolean) 424 flag indicating cancellation
425 </dd>
426 </dl>
427 <dl>
428 <dt>Return Type:</dt>
429 <dd>
430 bool
401 </dd> 431 </dd>
402 </dl> 432 </dl>
403 <a NAME="DownloadItem.currentSpeed" ID="DownloadItem.currentSpeed"></a> 433 <a NAME="DownloadItem.currentSpeed" ID="DownloadItem.currentSpeed"></a>
404 <h4>DownloadItem.currentSpeed</h4> 434 <h4>DownloadItem.currentSpeed</h4>
405 <b>currentSpeed</b>(<i></i>) 435 <b>currentSpeed</b>(<i></i>)
408 Public method to get an estimation for the download speed. 438 Public method to get an estimation for the download speed.
409 </p> 439 </p>
410 <dl> 440 <dl>
411 <dt>Return:</dt> 441 <dt>Return:</dt>
412 <dd> 442 <dd>
413 estimation for the download speed (float) 443 estimation for the download speed
444 </dd>
445 </dl>
446 <dl>
447 <dt>Return Type:</dt>
448 <dd>
449 float
414 </dd> 450 </dd>
415 </dl> 451 </dl>
416 <a NAME="DownloadItem.downloadCanceled" ID="DownloadItem.downloadCanceled"></a> 452 <a NAME="DownloadItem.downloadCanceled" ID="DownloadItem.downloadCanceled"></a>
417 <h4>DownloadItem.downloadCanceled</h4> 453 <h4>DownloadItem.downloadCanceled</h4>
418 <b>downloadCanceled</b>(<i></i>) 454 <b>downloadCanceled</b>(<i></i>)
421 Public method to check, if the download was cancelled. 457 Public method to check, if the download was cancelled.
422 </p> 458 </p>
423 <dl> 459 <dl>
424 <dt>Return:</dt> 460 <dt>Return:</dt>
425 <dd> 461 <dd>
426 flag indicating a canceled download (boolean) 462 flag indicating a canceled download
463 </dd>
464 </dl>
465 <dl>
466 <dt>Return Type:</dt>
467 <dd>
468 bool
427 </dd> 469 </dd>
428 </dl> 470 </dl>
429 <a NAME="DownloadItem.downloadProgress" ID="DownloadItem.downloadProgress"></a> 471 <a NAME="DownloadItem.downloadProgress" ID="DownloadItem.downloadProgress"></a>
430 <h4>DownloadItem.downloadProgress</h4> 472 <h4>DownloadItem.downloadProgress</h4>
431 <b>downloadProgress</b>(<i></i>) 473 <b>downloadProgress</b>(<i></i>)
453 Public method to check for a successful download. 495 Public method to check for a successful download.
454 </p> 496 </p>
455 <dl> 497 <dl>
456 <dt>Return:</dt> 498 <dt>Return:</dt>
457 <dd> 499 <dd>
458 flag indicating a successful download (boolean) 500 flag indicating a successful download
501 </dd>
502 </dl>
503 <dl>
504 <dt>Return Type:</dt>
505 <dd>
506 bool
459 </dd> 507 </dd>
460 </dl> 508 </dl>
461 <a NAME="DownloadItem.downloading" ID="DownloadItem.downloading"></a> 509 <a NAME="DownloadItem.downloading" ID="DownloadItem.downloading"></a>
462 <h4>DownloadItem.downloading</h4> 510 <h4>DownloadItem.downloading</h4>
463 <b>downloading</b>(<i></i>) 511 <b>downloading</b>(<i></i>)
466 Public method to determine, if a download is in progress. 514 Public method to determine, if a download is in progress.
467 </p> 515 </p>
468 <dl> 516 <dl>
469 <dt>Return:</dt> 517 <dt>Return:</dt>
470 <dd> 518 <dd>
471 flag indicating a download is in progress (boolean) 519 flag indicating a download is in progress
520 </dd>
521 </dl>
522 <dl>
523 <dt>Return Type:</dt>
524 <dd>
525 bool
472 </dd> 526 </dd>
473 </dl> 527 </dl>
474 <a NAME="DownloadItem.exists" ID="DownloadItem.exists"></a> 528 <a NAME="DownloadItem.exists" ID="DownloadItem.exists"></a>
475 <h4>DownloadItem.exists</h4> 529 <h4>DownloadItem.exists</h4>
476 <b>exists</b>(<i></i>) 530 <b>exists</b>(<i></i>)
498 Public method to get the name of the output file. 552 Public method to get the name of the output file.
499 </p> 553 </p>
500 <dl> 554 <dl>
501 <dt>Return:</dt> 555 <dt>Return:</dt>
502 <dd> 556 <dd>
503 name of the output file (string) 557 name of the output file
558 </dd>
559 </dl>
560 <dl>
561 <dt>Return Type:</dt>
562 <dd>
563 str
504 </dd> 564 </dd>
505 </dl> 565 </dl>
506 <a NAME="DownloadItem.getData" ID="DownloadItem.getData"></a> 566 <a NAME="DownloadItem.getData" ID="DownloadItem.getData"></a>
507 <h4>DownloadItem.getData</h4> 567 <h4>DownloadItem.getData</h4>
508 <b>getData</b>(<i></i>) 568 <b>getData</b>(<i></i>)
533 Public method to get the text of the info label. 593 Public method to get the text of the info label.
534 </p> 594 </p>
535 <dl> 595 <dl>
536 <dt>Return:</dt> 596 <dt>Return:</dt>
537 <dd> 597 <dd>
538 text of the info label (string) 598 text of the info label
599 </dd>
600 </dl>
601 <dl>
602 <dt>Return Type:</dt>
603 <dd>
604 str
539 </dd> 605 </dd>
540 </dl> 606 </dl>
541 <a NAME="DownloadItem.getPageUrl" ID="DownloadItem.getPageUrl"></a> 607 <a NAME="DownloadItem.getPageUrl" ID="DownloadItem.getPageUrl"></a>
542 <h4>DownloadItem.getPageUrl</h4> 608 <h4>DownloadItem.getPageUrl</h4>
543 <b>getPageUrl</b>(<i></i>) 609 <b>getPageUrl</b>(<i></i>)
546 Public method to get the URL of the download page. 612 Public method to get the URL of the download page.
547 </p> 613 </p>
548 <dl> 614 <dl>
549 <dt>Return:</dt> 615 <dt>Return:</dt>
550 <dd> 616 <dd>
551 URL of the download page (QUrl) 617 URL of the download page
618 </dd>
619 </dl>
620 <dl>
621 <dt>Return Type:</dt>
622 <dd>
623 QUrl
552 </dd> 624 </dd>
553 </dl> 625 </dl>
554 <a NAME="DownloadItem.on_openButton_clicked" ID="DownloadItem.on_openButton_clicked"></a> 626 <a NAME="DownloadItem.on_openButton_clicked" ID="DownloadItem.on_openButton_clicked"></a>
555 <h4>DownloadItem.on_openButton_clicked</h4> 627 <h4>DownloadItem.on_openButton_clicked</h4>
556 <b>on_openButton_clicked</b>(<i></i>) 628 <b>on_openButton_clicked</b>(<i></i>)
601 Public method to get an estimation for the remaining time. 673 Public method to get an estimation for the remaining time.
602 </p> 674 </p>
603 <dl> 675 <dl>
604 <dt>Return:</dt> 676 <dt>Return:</dt>
605 <dd> 677 <dd>
606 estimation for the remaining time (float) 678 estimation for the remaining time
679 </dd>
680 </dl>
681 <dl>
682 <dt>Return Type:</dt>
683 <dd>
684 float
607 </dd> 685 </dd>
608 </dl> 686 </dl>
609 <a NAME="DownloadItem.setData" ID="DownloadItem.setData"></a> 687 <a NAME="DownloadItem.setData" ID="DownloadItem.setData"></a>
610 <h4>DownloadItem.setData</h4> 688 <h4>DownloadItem.setData</h4>
611 <b>setData</b>(<i>data</i>) 689 <b>setData</b>(<i>data</i>)
630 <p> 708 <p>
631 Public method to set the download icon. 709 Public method to set the download icon.
632 </p> 710 </p>
633 <dl> 711 <dl>
634 712
635 <dt><i>icon</i></dt> 713 <dt><i>icon</i> (QIcon)</dt>
636 <dd> 714 <dd>
637 reference to the icon to be set (QIcon) 715 reference to the icon to be set
638 </dd> 716 </dd>
639 </dl> 717 </dl>
640 <a NAME="DownloadItem.updateButtonsAndLabels" ID="DownloadItem.updateButtonsAndLabels"></a> 718 <a NAME="DownloadItem.updateButtonsAndLabels" ID="DownloadItem.updateButtonsAndLabels"></a>
641 <h4>DownloadItem.updateButtonsAndLabels</h4> 719 <h4>DownloadItem.updateButtonsAndLabels</h4>
642 <b>updateButtonsAndLabels</b>(<i></i>) 720 <b>updateButtonsAndLabels</b>(<i></i>)

eric ide

mercurial