Documentation/Source/eric5.Helpviewer.Download.DownloadItem.html

changeset 679
b427350a9d97
parent 668
b0061a6f7484
child 757
d3daf1d8f058
equal deleted inserted replaced
678:d388291f5b6c 679:b427350a9d97
91 <td>Public method to get the number of bytes received.</td> 91 <td>Public method to get the number of bytes received.</td>
92 </tr><tr> 92 </tr><tr>
93 <td><a href="#DownloadItem.bytesTotal">bytesTotal</a></td> 93 <td><a href="#DownloadItem.bytesTotal">bytesTotal</a></td>
94 <td>Public method to get the total number of bytes of the download.</td> 94 <td>Public method to get the total number of bytes of the download.</td>
95 </tr><tr> 95 </tr><tr>
96 <td><a href="#DownloadItem.cancelDownload">cancelDownload</a></td>
97 <td>Public slot to stop the download.</td>
98 </tr><tr>
96 <td><a href="#DownloadItem.canceledFileSelect">canceledFileSelect</a></td> 99 <td><a href="#DownloadItem.canceledFileSelect">canceledFileSelect</a></td>
97 <td>Public method to check, if the user canceled the file selection.</td> 100 <td>Public method to check, if the user canceled the file selection.</td>
98 </tr><tr> 101 </tr><tr>
99 <td><a href="#DownloadItem.currentSpeed">currentSpeed</a></td> 102 <td><a href="#DownloadItem.currentSpeed">currentSpeed</a></td>
100 <td>Public method to get an estimation for the download speed.</td> 103 <td>Public method to get an estimation for the download speed.</td>
101 </tr><tr> 104 </tr><tr>
105 <td><a href="#DownloadItem.downloadCanceled">downloadCanceled</a></td>
106 <td>Public method to check, if the download was cancelled.</td>
107 </tr><tr>
102 <td><a href="#DownloadItem.downloadedSuccessfully">downloadedSuccessfully</a></td> 108 <td><a href="#DownloadItem.downloadedSuccessfully">downloadedSuccessfully</a></td>
103 <td>Public method to check for a successful download.</td> 109 <td>Public method to check for a successful download.</td>
104 </tr><tr> 110 </tr><tr>
105 <td><a href="#DownloadItem.downloading">downloading</a></td> 111 <td><a href="#DownloadItem.downloading">downloading</a></td>
106 <td>Public method to determine, if a download is in progress.</td> 112 <td>Public method to determine, if a download is in progress.</td>
112 <td>Public method to get the relevant download data.</td> 118 <td>Public method to get the relevant download data.</td>
113 </tr><tr> 119 </tr><tr>
114 <td><a href="#DownloadItem.getInfoData">getInfoData</a></td> 120 <td><a href="#DownloadItem.getInfoData">getInfoData</a></td>
115 <td>Public method to get the text of the info label.</td> 121 <td>Public method to get the text of the info label.</td>
116 </tr><tr> 122 </tr><tr>
123 <td><a href="#DownloadItem.getPageUrl">getPageUrl</a></td>
124 <td>Public method to get the URL of the download page.</td>
125 </tr><tr>
117 <td><a href="#DownloadItem.on_openButton_clicked">on_openButton_clicked</a></td> 126 <td><a href="#DownloadItem.on_openButton_clicked">on_openButton_clicked</a></td>
118 <td>Private slot to open the downloaded file.</td> 127 <td>Private slot to open the downloaded file.</td>
119 </tr><tr> 128 </tr><tr>
120 <td><a href="#DownloadItem.on_stopButton_clicked">on_stopButton_clicked</a></td> 129 <td><a href="#DownloadItem.on_stopButton_clicked">on_stopButton_clicked</a></td>
121 <td>Private slot to stop the download.</td> 130 <td>Private slot to stop the download.</td>
122 </tr><tr> 131 </tr><tr>
123 <td><a href="#DownloadItem.on_tryAgainButton_clicked">on_tryAgainButton_clicked</a></td> 132 <td><a href="#DownloadItem.on_tryAgainButton_clicked">on_tryAgainButton_clicked</a></td>
124 <td>Private slot to retry the download.</td> 133 <td>Private slot to retry the download.</td>
125 </tr><tr> 134 </tr><tr>
135 <td><a href="#DownloadItem.openFile">openFile</a></td>
136 <td>Public slot to open the downloaded file.</td>
137 </tr><tr>
138 <td><a href="#DownloadItem.openFolder">openFolder</a></td>
139 <td>Public slot to open the folder containing the downloaded file.</td>
140 </tr><tr>
126 <td><a href="#DownloadItem.remainingTime">remainingTime</a></td> 141 <td><a href="#DownloadItem.remainingTime">remainingTime</a></td>
127 <td>Public method to get an estimation for the remaining time.</td> 142 <td>Public method to get an estimation for the remaining time.</td>
143 </tr><tr>
144 <td><a href="#DownloadItem.retry">retry</a></td>
145 <td>Public slot to retry the download.</td>
128 </tr><tr> 146 </tr><tr>
129 <td><a href="#DownloadItem.setData">setData</a></td> 147 <td><a href="#DownloadItem.setData">setData</a></td>
130 <td>Public method to set the relevant download data.</td> 148 <td>Public method to set the relevant download data.</td>
131 </tr><tr> 149 </tr><tr>
132 <td><a href="#DownloadItem.setIcon">setIcon</a></td> 150 <td><a href="#DownloadItem.setIcon">setIcon</a></td>
257 </p><dl> 275 </p><dl>
258 <dt>Returns:</dt> 276 <dt>Returns:</dt>
259 <dd> 277 <dd>
260 total number of bytes (integer) 278 total number of bytes (integer)
261 </dd> 279 </dd>
262 </dl><a NAME="DownloadItem.canceledFileSelect" ID="DownloadItem.canceledFileSelect"></a> 280 </dl><a NAME="DownloadItem.cancelDownload" ID="DownloadItem.cancelDownload"></a>
281 <h4>DownloadItem.cancelDownload</h4>
282 <b>cancelDownload</b>(<i></i>)
283 <p>
284 Public slot to stop the download.
285 </p><a NAME="DownloadItem.canceledFileSelect" ID="DownloadItem.canceledFileSelect"></a>
263 <h4>DownloadItem.canceledFileSelect</h4> 286 <h4>DownloadItem.canceledFileSelect</h4>
264 <b>canceledFileSelect</b>(<i></i>) 287 <b>canceledFileSelect</b>(<i></i>)
265 <p> 288 <p>
266 Public method to check, if the user canceled the file selection. 289 Public method to check, if the user canceled the file selection.
267 </p><dl> 290 </p><dl>
277 </p><dl> 300 </p><dl>
278 <dt>Returns:</dt> 301 <dt>Returns:</dt>
279 <dd> 302 <dd>
280 estimation for the download speed (float) 303 estimation for the download speed (float)
281 </dd> 304 </dd>
305 </dl><a NAME="DownloadItem.downloadCanceled" ID="DownloadItem.downloadCanceled"></a>
306 <h4>DownloadItem.downloadCanceled</h4>
307 <b>downloadCanceled</b>(<i></i>)
308 <p>
309 Public method to check, if the download was cancelled.
310 </p><dl>
311 <dt>Returns:</dt>
312 <dd>
313 flag indicating a canceled download (boolean)
314 </dd>
282 </dl><a NAME="DownloadItem.downloadedSuccessfully" ID="DownloadItem.downloadedSuccessfully"></a> 315 </dl><a NAME="DownloadItem.downloadedSuccessfully" ID="DownloadItem.downloadedSuccessfully"></a>
283 <h4>DownloadItem.downloadedSuccessfully</h4> 316 <h4>DownloadItem.downloadedSuccessfully</h4>
284 <b>downloadedSuccessfully</b>(<i></i>) 317 <b>downloadedSuccessfully</b>(<i></i>)
285 <p> 318 <p>
286 Public method to check for a successful download. 319 Public method to check for a successful download.
315 <p> 348 <p>
316 Public method to get the relevant download data. 349 Public method to get the relevant download data.
317 </p><dl> 350 </p><dl>
318 <dt>Returns:</dt> 351 <dt>Returns:</dt>
319 <dd> 352 <dd>
320 tuple of URL, save location and done flag 353 tuple of URL, save location, flag and the
321 (QUrl, string, boolean) 354 URL of the related web page (QUrl, string, boolean,QUrl)
322 </dd> 355 </dd>
323 </dl><a NAME="DownloadItem.getInfoData" ID="DownloadItem.getInfoData"></a> 356 </dl><a NAME="DownloadItem.getInfoData" ID="DownloadItem.getInfoData"></a>
324 <h4>DownloadItem.getInfoData</h4> 357 <h4>DownloadItem.getInfoData</h4>
325 <b>getInfoData</b>(<i></i>) 358 <b>getInfoData</b>(<i></i>)
326 <p> 359 <p>
327 Public method to get the text of the info label. 360 Public method to get the text of the info label.
328 </p><dl> 361 </p><dl>
329 <dt>Returns:</dt> 362 <dt>Returns:</dt>
330 <dd> 363 <dd>
331 text of the info label (string) 364 text of the info label (string)
365 </dd>
366 </dl><a NAME="DownloadItem.getPageUrl" ID="DownloadItem.getPageUrl"></a>
367 <h4>DownloadItem.getPageUrl</h4>
368 <b>getPageUrl</b>(<i></i>)
369 <p>
370 Public method to get the URL of the download page.
371 </p><dl>
372 <dt>Returns:</dt>
373 <dd>
374 URL of the download page (QUrl)
332 </dd> 375 </dd>
333 </dl><a NAME="DownloadItem.on_openButton_clicked" ID="DownloadItem.on_openButton_clicked"></a> 376 </dl><a NAME="DownloadItem.on_openButton_clicked" ID="DownloadItem.on_openButton_clicked"></a>
334 <h4>DownloadItem.on_openButton_clicked</h4> 377 <h4>DownloadItem.on_openButton_clicked</h4>
335 <b>on_openButton_clicked</b>(<i></i>) 378 <b>on_openButton_clicked</b>(<i></i>)
336 <p> 379 <p>
343 </p><a NAME="DownloadItem.on_tryAgainButton_clicked" ID="DownloadItem.on_tryAgainButton_clicked"></a> 386 </p><a NAME="DownloadItem.on_tryAgainButton_clicked" ID="DownloadItem.on_tryAgainButton_clicked"></a>
344 <h4>DownloadItem.on_tryAgainButton_clicked</h4> 387 <h4>DownloadItem.on_tryAgainButton_clicked</h4>
345 <b>on_tryAgainButton_clicked</b>(<i></i>) 388 <b>on_tryAgainButton_clicked</b>(<i></i>)
346 <p> 389 <p>
347 Private slot to retry the download. 390 Private slot to retry the download.
391 </p><a NAME="DownloadItem.openFile" ID="DownloadItem.openFile"></a>
392 <h4>DownloadItem.openFile</h4>
393 <b>openFile</b>(<i></i>)
394 <p>
395 Public slot to open the downloaded file.
396 </p><a NAME="DownloadItem.openFolder" ID="DownloadItem.openFolder"></a>
397 <h4>DownloadItem.openFolder</h4>
398 <b>openFolder</b>(<i></i>)
399 <p>
400 Public slot to open the folder containing the downloaded file.
348 </p><a NAME="DownloadItem.remainingTime" ID="DownloadItem.remainingTime"></a> 401 </p><a NAME="DownloadItem.remainingTime" ID="DownloadItem.remainingTime"></a>
349 <h4>DownloadItem.remainingTime</h4> 402 <h4>DownloadItem.remainingTime</h4>
350 <b>remainingTime</b>(<i></i>) 403 <b>remainingTime</b>(<i></i>)
351 <p> 404 <p>
352 Public method to get an estimation for the remaining time. 405 Public method to get an estimation for the remaining time.
353 </p><dl> 406 </p><dl>
354 <dt>Returns:</dt> 407 <dt>Returns:</dt>
355 <dd> 408 <dd>
356 estimation for the remaining time (float) 409 estimation for the remaining time (float)
357 </dd> 410 </dd>
358 </dl><a NAME="DownloadItem.setData" ID="DownloadItem.setData"></a> 411 </dl><a NAME="DownloadItem.retry" ID="DownloadItem.retry"></a>
412 <h4>DownloadItem.retry</h4>
413 <b>retry</b>(<i></i>)
414 <p>
415 Public slot to retry the download.
416 </p><a NAME="DownloadItem.setData" ID="DownloadItem.setData"></a>
359 <h4>DownloadItem.setData</h4> 417 <h4>DownloadItem.setData</h4>
360 <b>setData</b>(<i>data</i>) 418 <b>setData</b>(<i>data</i>)
361 <p> 419 <p>
362 Public method to set the relevant download data. 420 Public method to set the relevant download data.
363 </p><dl> 421 </p><dl>
364 <dt><i>data</i></dt> 422 <dt><i>data</i></dt>
365 <dd> 423 <dd>
366 tuple of URL, save location and done flag 424 tuple of URL, save location, flag and the
367 (QUrl, string, boolean) 425 URL of the related web page (QUrl, string, boolean, QUrl)
368 </dd> 426 </dd>
369 </dl><a NAME="DownloadItem.setIcon" ID="DownloadItem.setIcon"></a> 427 </dl><a NAME="DownloadItem.setIcon" ID="DownloadItem.setIcon"></a>
370 <h4>DownloadItem.setIcon</h4> 428 <h4>DownloadItem.setIcon</h4>
371 <b>setIcon</b>(<i>icon</i>) 429 <b>setIcon</b>(<i>icon</i>)
372 <p> 430 <p>

eric ide

mercurial