70 <table> |
70 <table> |
71 <tr> |
71 <tr> |
72 <td><a href="#DownloadItem.__init__">DownloadItem</a></td> |
72 <td><a href="#DownloadItem.__init__">DownloadItem</a></td> |
73 <td>Constructor</td> |
73 <td>Constructor</td> |
74 </tr><tr> |
74 </tr><tr> |
|
75 <td><a href="#DownloadItem.__adjustSize">__adjustSize</a></td> |
|
76 <td>Private method to adjust the size of the download item.</td> |
|
77 </tr><tr> |
75 <td><a href="#DownloadItem.__downloadProgress">__downloadProgress</a></td> |
78 <td><a href="#DownloadItem.__downloadProgress">__downloadProgress</a></td> |
76 <td>Private method to show the download progress.</td> |
79 <td>Private method to show the download progress.</td> |
77 </tr><tr> |
80 </tr><tr> |
78 <td><a href="#DownloadItem.__finished">__finished</a></td> |
81 <td><a href="#DownloadItem.__finished">__finished</a></td> |
79 <td>Private slot to handle the download finished.</td> |
82 <td>Private slot to handle the download finished.</td> |
87 <td><a href="#DownloadItem.__open">__open</a></td> |
90 <td><a href="#DownloadItem.__open">__open</a></td> |
88 <td>Private slot to open the downloaded file.</td> |
91 <td>Private slot to open the downloaded file.</td> |
89 </tr><tr> |
92 </tr><tr> |
90 <td><a href="#DownloadItem.__saveFileName">__saveFileName</a></td> |
93 <td><a href="#DownloadItem.__saveFileName">__saveFileName</a></td> |
91 <td>Private method to calculate a name for the file to download.</td> |
94 <td>Private method to calculate a name for the file to download.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#DownloadItem.__setDateTime">__setDateTime</a></td> |
|
97 <td>Private method to set the download date and time.</td> |
92 </tr><tr> |
98 </tr><tr> |
93 <td><a href="#DownloadItem.__setFileName">__setFileName</a></td> |
99 <td><a href="#DownloadItem.__setFileName">__setFileName</a></td> |
94 <td>Private method to set the file name to save the download into.</td> |
100 <td>Private method to set the file name to save the download into.</td> |
95 </tr><tr> |
101 </tr><tr> |
96 <td><a href="#DownloadItem.__updateInfoLabel">__updateInfoLabel</a></td> |
102 <td><a href="#DownloadItem.__updateInfoLabel">__updateInfoLabel</a></td> |
173 download data. |
179 download data. |
174 </dd><dt><i>parent=</i> (QWebEngineDownloadItem)</dt> |
180 </dd><dt><i>parent=</i> (QWebEngineDownloadItem)</dt> |
175 <dd> |
181 <dd> |
176 reference to the parent widget (QWidget) |
182 reference to the parent widget (QWidget) |
177 </dd> |
183 </dd> |
178 </dl><a NAME="DownloadItem.__downloadProgress" ID="DownloadItem.__downloadProgress"></a> |
184 </dl><a NAME="DownloadItem.__adjustSize" ID="DownloadItem.__adjustSize"></a> |
|
185 <h4>DownloadItem.__adjustSize</h4> |
|
186 <b>__adjustSize</b>(<i></i>) |
|
187 <p> |
|
188 Private method to adjust the size of the download item. |
|
189 </p><a NAME="DownloadItem.__downloadProgress" ID="DownloadItem.__downloadProgress"></a> |
179 <h4>DownloadItem.__downloadProgress</h4> |
190 <h4>DownloadItem.__downloadProgress</h4> |
180 <b>__downloadProgress</b>(<i>bytesReceived, bytesTotal</i>) |
191 <b>__downloadProgress</b>(<i>bytesReceived, bytesTotal</i>) |
181 <p> |
192 <p> |
182 Private method to show the download progress. |
193 Private method to show the download progress. |
183 </p><dl> |
194 </p><dl> |
221 </dl><dl> |
232 </dl><dl> |
222 <dt>Returns:</dt> |
233 <dt>Returns:</dt> |
223 <dd> |
234 <dd> |
224 proposed filename and original filename (string, string) |
235 proposed filename and original filename (string, string) |
225 </dd> |
236 </dd> |
|
237 </dl><a NAME="DownloadItem.__setDateTime" ID="DownloadItem.__setDateTime"></a> |
|
238 <h4>DownloadItem.__setDateTime</h4> |
|
239 <b>__setDateTime</b>(<i>dateTime=None</i>) |
|
240 <p> |
|
241 Private method to set the download date and time. |
|
242 </p><dl> |
|
243 <dt><i>dateTime</i> (QDateTime)</dt> |
|
244 <dd> |
|
245 date and time to be set |
|
246 </dd> |
226 </dl><a NAME="DownloadItem.__setFileName" ID="DownloadItem.__setFileName"></a> |
247 </dl><a NAME="DownloadItem.__setFileName" ID="DownloadItem.__setFileName"></a> |
227 <h4>DownloadItem.__setFileName</h4> |
248 <h4>DownloadItem.__setFileName</h4> |
228 <b>__setFileName</b>(<i>fileName</i>) |
249 <b>__setFileName</b>(<i>fileName</i>) |
229 <p> |
250 <p> |
230 Private method to set the file name to save the download into. |
251 Private method to set the file name to save the download into. |
339 <p> |
360 <p> |
340 Public method to get the relevant download data. |
361 Public method to get the relevant download data. |
341 </p><dl> |
362 </p><dl> |
342 <dt>Returns:</dt> |
363 <dt>Returns:</dt> |
343 <dd> |
364 <dd> |
344 tuple of URL, save location, flag and the |
365 tuple of URL, save location, flag, the |
345 URL of the related web page (QUrl, string, boolean,QUrl) |
366 URL of the related web page and the date and time |
|
367 of the download |
|
368 </dd> |
|
369 </dl><dl> |
|
370 <dt>Return Type:</dt> |
|
371 <dd> |
|
372 tuple of (QUrl, str, bool, QUrl, QDateTime) |
346 </dd> |
373 </dd> |
347 </dl><a NAME="DownloadItem.getInfoData" ID="DownloadItem.getInfoData"></a> |
374 </dl><a NAME="DownloadItem.getInfoData" ID="DownloadItem.getInfoData"></a> |
348 <h4>DownloadItem.getInfoData</h4> |
375 <h4>DownloadItem.getInfoData</h4> |
349 <b>getInfoData</b>(<i></i>) |
376 <b>getInfoData</b>(<i></i>) |
350 <p> |
377 <p> |
398 <h4>DownloadItem.setData</h4> |
425 <h4>DownloadItem.setData</h4> |
399 <b>setData</b>(<i>data</i>) |
426 <b>setData</b>(<i>data</i>) |
400 <p> |
427 <p> |
401 Public method to set the relevant download data. |
428 Public method to set the relevant download data. |
402 </p><dl> |
429 </p><dl> |
403 <dt><i>data</i></dt> |
430 <dt><i>data</i> (QUrl, str, bool, QUrl, QDateTime)</dt> |
404 <dd> |
431 <dd> |
405 tuple of URL, save location, flag and the |
432 tuple of URL, save location, flag, the |
406 URL of the related web page (QUrl, string, boolean, QUrl) |
433 URL of the related web page and the date and time |
|
434 of the download |
407 </dd> |
435 </dd> |
408 </dl><a NAME="DownloadItem.setIcon" ID="DownloadItem.setIcon"></a> |
436 </dl><a NAME="DownloadItem.setIcon" ID="DownloadItem.setIcon"></a> |
409 <h4>DownloadItem.setIcon</h4> |
437 <h4>DownloadItem.setIcon</h4> |
410 <b>setIcon</b>(<i>icon</i>) |
438 <b>setIcon</b>(<i>icon</i>) |
411 <p> |
439 <p> |