43 <h2>DownloadItem</h2> |
43 <h2>DownloadItem</h2> |
44 <p> |
44 <p> |
45 Class implementing a widget controlling a download. |
45 Class implementing a widget controlling a download. |
46 </p><h3>Signals</h3> |
46 </p><h3>Signals</h3> |
47 <dl> |
47 <dl> |
48 <dt>downloadFinished()</dt> |
48 <dt>downloadFinished(success)</dt> |
49 <dd> |
49 <dd> |
50 emitted when a download finished |
50 emitted when a download finished |
51 </dd><dt>progress(int, int)</dt> |
51 </dd><dt>progress(int, int)</dt> |
52 <dd> |
52 <dd> |
53 emitted to signal the download progress |
53 emitted to signal the download progress |
118 <td>Public method to get an estimation for the download speed.</td> |
118 <td>Public method to get an estimation for the download speed.</td> |
119 </tr><tr> |
119 </tr><tr> |
120 <td><a href="#DownloadItem.downloadCanceled">downloadCanceled</a></td> |
120 <td><a href="#DownloadItem.downloadCanceled">downloadCanceled</a></td> |
121 <td>Public method to check, if the download was cancelled.</td> |
121 <td>Public method to check, if the download was cancelled.</td> |
122 </tr><tr> |
122 </tr><tr> |
|
123 <td><a href="#DownloadItem.downloadProgress">downloadProgress</a></td> |
|
124 <td>Public method to get the download progress.</td> |
|
125 </tr><tr> |
123 <td><a href="#DownloadItem.downloadedSuccessfully">downloadedSuccessfully</a></td> |
126 <td><a href="#DownloadItem.downloadedSuccessfully">downloadedSuccessfully</a></td> |
124 <td>Public method to check for a successful download.</td> |
127 <td>Public method to check for a successful download.</td> |
125 </tr><tr> |
128 </tr><tr> |
126 <td><a href="#DownloadItem.downloading">downloading</a></td> |
129 <td><a href="#DownloadItem.downloading">downloading</a></td> |
127 <td>Public method to determine, if a download is in progress.</td> |
130 <td>Public method to determine, if a download is in progress.</td> |
320 </p><dl> |
323 </p><dl> |
321 <dt>Returns:</dt> |
324 <dt>Returns:</dt> |
322 <dd> |
325 <dd> |
323 flag indicating a canceled download (boolean) |
326 flag indicating a canceled download (boolean) |
324 </dd> |
327 </dd> |
|
328 </dl><a NAME="DownloadItem.downloadProgress" ID="DownloadItem.downloadProgress"></a> |
|
329 <h4>DownloadItem.downloadProgress</h4> |
|
330 <b>downloadProgress</b>(<i></i>) |
|
331 <p> |
|
332 Public method to get the download progress. |
|
333 </p><dl> |
|
334 <dt>Returns:</dt> |
|
335 <dd> |
|
336 current download progress |
|
337 </dd> |
|
338 </dl><dl> |
|
339 <dt>Return Type:</dt> |
|
340 <dd> |
|
341 int |
|
342 </dd> |
325 </dl><a NAME="DownloadItem.downloadedSuccessfully" ID="DownloadItem.downloadedSuccessfully"></a> |
343 </dl><a NAME="DownloadItem.downloadedSuccessfully" ID="DownloadItem.downloadedSuccessfully"></a> |
326 <h4>DownloadItem.downloadedSuccessfully</h4> |
344 <h4>DownloadItem.downloadedSuccessfully</h4> |
327 <b>downloadedSuccessfully</b>(<i></i>) |
345 <b>downloadedSuccessfully</b>(<i></i>) |
328 <p> |
346 <p> |
329 Public method to check for a successful download. |
347 Public method to check for a successful download. |