128 </tr><tr> |
128 </tr><tr> |
129 <td><a href="#DownloadManager.downloads">downloads</a></td> |
129 <td><a href="#DownloadManager.downloads">downloads</a></td> |
130 <td>Public method to get a reference to the downloads.</td> |
130 <td>Public method to get a reference to the downloads.</td> |
131 </tr><tr> |
131 </tr><tr> |
132 <td><a href="#DownloadManager.handleUnsupportedContent">handleUnsupportedContent</a></td> |
132 <td><a href="#DownloadManager.handleUnsupportedContent">handleUnsupportedContent</a></td> |
133 <td></td> |
133 <td>Public method to handle unsupported content by downloading the referenced resource.</td> |
134 </tr><tr> |
134 </tr><tr> |
135 <td><a href="#DownloadManager.on_cleanupButton_clicked">on_cleanupButton_clicked</a></td> |
135 <td><a href="#DownloadManager.on_cleanupButton_clicked">on_cleanupButton_clicked</a></td> |
136 <td>Private slot cleanup the downloads.</td> |
136 <td>Private slot cleanup the downloads.</td> |
137 </tr><tr> |
137 </tr><tr> |
138 <td><a href="#DownloadManager.removePolicy">removePolicy</a></td> |
138 <td><a href="#DownloadManager.removePolicy">removePolicy</a></td> |
301 <dd> |
301 <dd> |
302 number of downloads (integer) |
302 number of downloads (integer) |
303 </dd> |
303 </dd> |
304 </dl><a NAME="DownloadManager.download" ID="DownloadManager.download"></a> |
304 </dl><a NAME="DownloadManager.download" ID="DownloadManager.download"></a> |
305 <h4>DownloadManager.download</h4> |
305 <h4>DownloadManager.download</h4> |
306 <b>download</b>(<i>requestOrUrl, requestFileName=False</i>) |
306 <b>download</b>(<i>requestOrUrl, requestFileName=False, mainWindow=None</i>) |
307 <p> |
307 <p> |
308 Public method to download a file. |
308 Public method to download a file. |
309 </p><dl> |
309 </p><dl> |
310 <dt><i>requestOrUrl</i></dt> |
310 <dt><i>requestOrUrl</i></dt> |
311 <dd> |
311 <dd> |
313 or a URL to be downloaded (QUrl) |
313 or a URL to be downloaded (QUrl) |
314 </dd><dt><i>requestFileName=</i></dt> |
314 </dd><dt><i>requestFileName=</i></dt> |
315 <dd> |
315 <dd> |
316 flag indicating to ask for the |
316 flag indicating to ask for the |
317 download file name (boolean) |
317 download file name (boolean) |
|
318 </dd><dt><i>mainWindow=</i></dt> |
|
319 <dd> |
|
320 reference to the main window (HelpWindow) |
318 </dd> |
321 </dd> |
319 </dl><a NAME="DownloadManager.downloadDirectory" ID="DownloadManager.downloadDirectory"></a> |
322 </dl><a NAME="DownloadManager.downloadDirectory" ID="DownloadManager.downloadDirectory"></a> |
320 <h4>DownloadManager.downloadDirectory</h4> |
323 <h4>DownloadManager.downloadDirectory</h4> |
321 <b>downloadDirectory</b>(<i></i>) |
324 <b>downloadDirectory</b>(<i></i>) |
322 <p> |
325 <p> |
336 <dd> |
339 <dd> |
337 reference to the downloads (list of DownloadItem) |
340 reference to the downloads (list of DownloadItem) |
338 </dd> |
341 </dd> |
339 </dl><a NAME="DownloadManager.handleUnsupportedContent" ID="DownloadManager.handleUnsupportedContent"></a> |
342 </dl><a NAME="DownloadManager.handleUnsupportedContent" ID="DownloadManager.handleUnsupportedContent"></a> |
340 <h4>DownloadManager.handleUnsupportedContent</h4> |
343 <h4>DownloadManager.handleUnsupportedContent</h4> |
341 <b>handleUnsupportedContent</b>(<i>reply, requestFileName=False, webPage=None, download=False</i>) |
344 <b>handleUnsupportedContent</b>(<i>reply, requestFileName=False, webPage=None, download=False, mainWindow=None</i>) |
342 <a NAME="DownloadManager.on_cleanupButton_clicked" ID="DownloadManager.on_cleanupButton_clicked"></a> |
345 <p> |
|
346 Public method to handle unsupported content by downloading the |
|
347 referenced resource. |
|
348 </p><dl> |
|
349 <dt><i>reply</i></dt> |
|
350 <dd> |
|
351 reference to the reply object (QNetworkReply) |
|
352 </dd><dt><i>requestFilename=</i></dt> |
|
353 <dd> |
|
354 indicating to ask for a filename |
|
355 (boolean) |
|
356 </dd><dt><i>webPage=</i></dt> |
|
357 <dd> |
|
358 reference to the web page (HelpWebPage) |
|
359 </dd><dt><i>download=</i></dt> |
|
360 <dd> |
|
361 flag indicating a download request (boolean) |
|
362 </dd><dt><i>mainWindow=</i></dt> |
|
363 <dd> |
|
364 reference to the main window (HelpWindow) |
|
365 </dd> |
|
366 </dl><a NAME="DownloadManager.on_cleanupButton_clicked" ID="DownloadManager.on_cleanupButton_clicked"></a> |
343 <h4>DownloadManager.on_cleanupButton_clicked</h4> |
367 <h4>DownloadManager.on_cleanupButton_clicked</h4> |
344 <b>on_cleanupButton_clicked</b>(<i></i>) |
368 <b>on_cleanupButton_clicked</b>(<i></i>) |
345 <p> |
369 <p> |
346 Private slot cleanup the downloads. |
370 Private slot cleanup the downloads. |
347 </p><a NAME="DownloadManager.removePolicy" ID="DownloadManager.removePolicy"></a> |
371 </p><a NAME="DownloadManager.removePolicy" ID="DownloadManager.removePolicy"></a> |