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> |
96 <td><a href="#DownloadItem.__readyRead">__readyRead</a></td> |
99 <td><a href="#DownloadItem.__readyRead">__readyRead</a></td> |
97 <td>Private slot to read the available data.</td> |
100 <td>Private slot to read the available data.</td> |
98 </tr><tr> |
101 </tr><tr> |
99 <td><a href="#DownloadItem.__saveFileName">__saveFileName</a></td> |
102 <td><a href="#DownloadItem.__saveFileName">__saveFileName</a></td> |
100 <td>Private method to calculate a name for the file to download.</td> |
103 <td>Private method to calculate a name for the file to download.</td> |
|
104 </tr><tr> |
|
105 <td><a href="#DownloadItem.__setDateTime">__setDateTime</a></td> |
|
106 <td>Private method to set the download date and time.</td> |
101 </tr><tr> |
107 </tr><tr> |
102 <td><a href="#DownloadItem.__updateInfoLabel">__updateInfoLabel</a></td> |
108 <td><a href="#DownloadItem.__updateInfoLabel">__updateInfoLabel</a></td> |
103 <td>Private method to update the info label.</td> |
109 <td>Private method to update the info label.</td> |
104 </tr><tr> |
110 </tr><tr> |
105 <td><a href="#DownloadItem.absoluteFilePath">absoluteFilePath</a></td> |
111 <td><a href="#DownloadItem.absoluteFilePath">absoluteFilePath</a></td> |
201 reference to the parent widget (QWidget) |
207 reference to the parent widget (QWidget) |
202 </dd><dt><i>mainWindow=</i></dt> |
208 </dd><dt><i>mainWindow=</i></dt> |
203 <dd> |
209 <dd> |
204 reference to the main window (HelpWindow) |
210 reference to the main window (HelpWindow) |
205 </dd> |
211 </dd> |
206 </dl><a NAME="DownloadItem.__downloadProgress" ID="DownloadItem.__downloadProgress"></a> |
212 </dl><a NAME="DownloadItem.__adjustSize" ID="DownloadItem.__adjustSize"></a> |
|
213 <h4>DownloadItem.__adjustSize</h4> |
|
214 <b>__adjustSize</b>(<i></i>) |
|
215 <p> |
|
216 Private method to adjust the size of the download item. |
|
217 </p><a NAME="DownloadItem.__downloadProgress" ID="DownloadItem.__downloadProgress"></a> |
207 <h4>DownloadItem.__downloadProgress</h4> |
218 <h4>DownloadItem.__downloadProgress</h4> |
208 <b>__downloadProgress</b>(<i>bytesReceived, bytesTotal</i>) |
219 <b>__downloadProgress</b>(<i>bytesReceived, bytesTotal</i>) |
209 <p> |
220 <p> |
210 Private method to show the download progress. |
221 Private method to show the download progress. |
211 </p><dl> |
222 </p><dl> |
269 </dl><dl> |
280 </dl><dl> |
270 <dt>Returns:</dt> |
281 <dt>Returns:</dt> |
271 <dd> |
282 <dd> |
272 proposed filename and original filename (string, string) |
283 proposed filename and original filename (string, string) |
273 </dd> |
284 </dd> |
|
285 </dl><a NAME="DownloadItem.__setDateTime" ID="DownloadItem.__setDateTime"></a> |
|
286 <h4>DownloadItem.__setDateTime</h4> |
|
287 <b>__setDateTime</b>(<i>dateTime=None</i>) |
|
288 <p> |
|
289 Private method to set the download date and time. |
|
290 </p><dl> |
|
291 <dt><i>dateTime</i> (QDateTime)</dt> |
|
292 <dd> |
|
293 date and time to be set |
|
294 </dd> |
274 </dl><a NAME="DownloadItem.__updateInfoLabel" ID="DownloadItem.__updateInfoLabel"></a> |
295 </dl><a NAME="DownloadItem.__updateInfoLabel" ID="DownloadItem.__updateInfoLabel"></a> |
275 <h4>DownloadItem.__updateInfoLabel</h4> |
296 <h4>DownloadItem.__updateInfoLabel</h4> |
276 <b>__updateInfoLabel</b>(<i></i>) |
297 <b>__updateInfoLabel</b>(<i></i>) |
277 <p> |
298 <p> |
278 Private method to update the info label. |
299 Private method to update the info label. |
377 <p> |
398 <p> |
378 Public method to get the relevant download data. |
399 Public method to get the relevant download data. |
379 </p><dl> |
400 </p><dl> |
380 <dt>Returns:</dt> |
401 <dt>Returns:</dt> |
381 <dd> |
402 <dd> |
382 tuple of URL, save location, flag and the |
403 tuple of URL, save location, flag, the |
383 URL of the related web page (QUrl, string, boolean,QUrl) |
404 URL of the related web page and the date and time |
|
405 of the download |
|
406 </dd> |
|
407 </dl><dl> |
|
408 <dt>Return Type:</dt> |
|
409 <dd> |
|
410 tuple of (QUrl, str, bool, QUrl, QDateTime) |
384 </dd> |
411 </dd> |
385 </dl><a NAME="DownloadItem.getInfoData" ID="DownloadItem.getInfoData"></a> |
412 </dl><a NAME="DownloadItem.getInfoData" ID="DownloadItem.getInfoData"></a> |
386 <h4>DownloadItem.getInfoData</h4> |
413 <h4>DownloadItem.getInfoData</h4> |
387 <b>getInfoData</b>(<i></i>) |
414 <b>getInfoData</b>(<i></i>) |
388 <p> |
415 <p> |
456 <h4>DownloadItem.setData</h4> |
483 <h4>DownloadItem.setData</h4> |
457 <b>setData</b>(<i>data</i>) |
484 <b>setData</b>(<i>data</i>) |
458 <p> |
485 <p> |
459 Public method to set the relevant download data. |
486 Public method to set the relevant download data. |
460 </p><dl> |
487 </p><dl> |
461 <dt><i>data</i></dt> |
488 <dt><i>data</i> (QUrl, str, bool, QUrl, QDateTime)</dt> |
462 <dd> |
489 <dd> |
463 tuple of URL, save location, flag and the |
490 tuple of URL, save location, flag, the |
464 URL of the related web page (QUrl, string, boolean, QUrl) |
491 URL of the related web page and the date and time |
|
492 of the download |
465 </dd> |
493 </dd> |
466 </dl><a NAME="DownloadItem.setIcon" ID="DownloadItem.setIcon"></a> |
494 </dl><a NAME="DownloadItem.setIcon" ID="DownloadItem.setIcon"></a> |
467 <h4>DownloadItem.setIcon</h4> |
495 <h4>DownloadItem.setIcon</h4> |
468 <b>setIcon</b>(<i>icon</i>) |
496 <b>setIcon</b>(<i>icon</i>) |
469 <p> |
497 <p> |