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

branch
eric7
changeset 8575
423c4db4101e
parent 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8574:e5d88ab9d84d 8575:423c4db4101e
36 36
37 <tr> 37 <tr>
38 <td><a href="#DownloadItem">DownloadItem</a></td> 38 <td><a href="#DownloadItem">DownloadItem</a></td>
39 <td>Class implementing a widget controlling a download.</td> 39 <td>Class implementing a widget controlling a download.</td>
40 </tr> 40 </tr>
41 <tr>
42 <td><a href="#DownloadState">DownloadState</a></td>
43 <td>Class implementing the various download states.</td>
44 </tr>
41 </table> 45 </table>
42 <h3>Functions</h3> 46 <h3>Functions</h3>
43 47
44 <table> 48 <table>
45 <tr><td>None</td></tr> 49 <tr><td>None</td></tr>
71 <h3>Derived from</h3> 75 <h3>Derived from</h3>
72 QWidget, Ui_DownloadItem 76 QWidget, Ui_DownloadItem
73 <h3>Class Attributes</h3> 77 <h3>Class Attributes</h3>
74 78
75 <table> 79 <table>
76 <tr><td>DownloadCancelled</td></tr><tr><td>DownloadSuccessful</td></tr><tr><td>Downloading</td></tr> 80 <tr><td>None</td></tr>
77 </table> 81 </table>
78 <h3>Class Methods</h3> 82 <h3>Class Methods</h3>
79 83
80 <table> 84 <table>
81 <tr><td>None</td></tr> 85 <tr><td>None</td></tr>
92 <td><a href="#DownloadItem.__adjustSize">__adjustSize</a></td> 96 <td><a href="#DownloadItem.__adjustSize">__adjustSize</a></td>
93 <td>Private method to adjust the size of the download item.</td> 97 <td>Private method to adjust the size of the download item.</td>
94 </tr> 98 </tr>
95 <tr> 99 <tr>
96 <td><a href="#DownloadItem.__downloadProgress">__downloadProgress</a></td> 100 <td><a href="#DownloadItem.__downloadProgress">__downloadProgress</a></td>
97 <td>Private method to show the download progress.</td> 101 <td>Private slot to show the download progress.</td>
98 </tr> 102 </tr>
99 <tr> 103 <tr>
100 <td><a href="#DownloadItem.__finished">__finished</a></td> 104 <td><a href="#DownloadItem.__finished">__finished</a></td>
101 <td>Private slot to handle the download finished.</td> 105 <td>Private slot to handle the download finished.</td>
102 </tr> 106 </tr>
219 <tr><td>None</td></tr> 223 <tr><td>None</td></tr>
220 </table> 224 </table>
221 225
222 <a NAME="DownloadItem.__init__" ID="DownloadItem.__init__"></a> 226 <a NAME="DownloadItem.__init__" ID="DownloadItem.__init__"></a>
223 <h4>DownloadItem (Constructor)</h4> 227 <h4>DownloadItem (Constructor)</h4>
224 <b>DownloadItem</b>(<i>downloadItem=None, pageUrl=None, parent=None</i>) 228 <b>DownloadItem</b>(<i>downloadRequest=None, pageUrl=None, parent=None</i>)
225 229
226 <p> 230 <p>
227 Constructor 231 Constructor
228 </p> 232 </p>
229 <dl> 233 <dl>
230 234
231 <dt><i>downloadItem</i> (QWebEngineDownloadItem)</dt> 235 <dt><i>downloadRequest</i> (QWebEngineDownloadRequest)</dt>
232 <dd> 236 <dd>
233 reference to the download object containing the 237 reference to the download object containing the
234 download data. 238 download data.
235 </dd> 239 </dd>
236 <dt><i>pageUrl</i> (QUrl)</dt> 240 <dt><i>pageUrl</i> (QUrl)</dt>
249 <p> 253 <p>
250 Private method to adjust the size of the download item. 254 Private method to adjust the size of the download item.
251 </p> 255 </p>
252 <a NAME="DownloadItem.__downloadProgress" ID="DownloadItem.__downloadProgress"></a> 256 <a NAME="DownloadItem.__downloadProgress" ID="DownloadItem.__downloadProgress"></a>
253 <h4>DownloadItem.__downloadProgress</h4> 257 <h4>DownloadItem.__downloadProgress</h4>
254 <b>__downloadProgress</b>(<i>bytesReceived, bytesTotal</i>) 258 <b>__downloadProgress</b>(<i></i>)
255 259
256 <p> 260 <p>
257 Private method to show the download progress. 261 Private slot to show the download progress.
258 </p> 262 </p>
259 <dl>
260
261 <dt><i>bytesReceived</i></dt>
262 <dd>
263 number of bytes received (integer)
264 </dd>
265 <dt><i>bytesTotal</i></dt>
266 <dd>
267 number of total bytes (integer)
268 </dd>
269 </dl>
270 <a NAME="DownloadItem.__finished" ID="DownloadItem.__finished"></a> 263 <a NAME="DownloadItem.__finished" ID="DownloadItem.__finished"></a>
271 <h4>DownloadItem.__finished</h4> 264 <h4>DownloadItem.__finished</h4>
272 <b>__finished</b>(<i></i>) 265 <b>__finished</b>(<i></i>)
273 266
274 <p> 267 <p>
620 reference to the icon to be set (QIcon) 613 reference to the icon to be set (QIcon)
621 </dd> 614 </dd>
622 </dl> 615 </dl>
623 <div align="right"><a href="#top">Up</a></div> 616 <div align="right"><a href="#top">Up</a></div>
624 <hr /> 617 <hr />
618 <hr />
619 <a NAME="DownloadState" ID="DownloadState"></a>
620 <h2>DownloadState</h2>
621
622 <p>
623 Class implementing the various download states.
624 </p>
625 <h3>Derived from</h3>
626 enum.Enum
627 <h3>Class Attributes</h3>
628
629 <table>
630 <tr><td>Cancelled</td></tr><tr><td>Downloading</td></tr><tr><td>Successful</td></tr>
631 </table>
632 <h3>Class Methods</h3>
633
634 <table>
635 <tr><td>None</td></tr>
636 </table>
637 <h3>Methods</h3>
638
639 <table>
640 <tr><td>None</td></tr>
641 </table>
642 <h3>Static Methods</h3>
643
644 <table>
645 <tr><td>None</td></tr>
646 </table>
647
648 <div align="right"><a href="#top">Up</a></div>
649 <hr />
625 </body></html> 650 </body></html>

eric ide

mercurial