16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.WebBrowser.Download.DownloadManager</h1> |
23 <h1>eric6.WebBrowser.Download.DownloadManager</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the download manager class. |
26 Module implementing the download manager class. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
|
34 |
31 <table> |
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#DownloadManager">DownloadManager</a></td> |
38 <td><a href="#DownloadManager">DownloadManager</a></td> |
34 <td>Class implementing the download manager.</td> |
39 <td>Class implementing the download manager.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
|
43 |
38 <table> |
44 <table> |
39 <tr><td>None</td></tr> |
45 <tr><td>None</td></tr> |
40 </table> |
46 </table> |
41 <hr /><hr /> |
47 <hr /> |
|
48 <hr /> |
42 <a NAME="DownloadManager" ID="DownloadManager"></a> |
49 <a NAME="DownloadManager" ID="DownloadManager"></a> |
43 <h2>DownloadManager</h2> |
50 <h2>DownloadManager</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing the download manager. |
53 Class implementing the download manager. |
46 </p><h3>Signals</h3> |
54 </p> |
47 <dl> |
55 <h3>Signals</h3> |
|
56 <dl> |
|
57 |
48 <dt>downloadsCountChanged()</dt> |
58 <dt>downloadsCountChanged()</dt> |
49 <dd> |
59 <dd> |
50 emitted to indicate a change of the |
60 emitted to indicate a change of the |
51 count of download items |
61 count of download items |
52 </dd> |
62 </dd> |
53 </dl> |
63 </dl> |
54 <h3>Derived from</h3> |
64 <h3>Derived from</h3> |
55 QDialog, Ui_DownloadManager |
65 QDialog, Ui_DownloadManager |
56 <h3>Class Attributes</h3> |
66 <h3>Class Attributes</h3> |
|
67 |
57 <table> |
68 <table> |
58 <tr><td>RemoveExit</td></tr><tr><td>RemoveNever</td></tr><tr><td>RemoveSuccessFullDownload</td></tr><tr><td>UpdateTimerTimeout</td></tr> |
69 <tr><td>RemoveExit</td></tr><tr><td>RemoveNever</td></tr><tr><td>RemoveSuccessFullDownload</td></tr><tr><td>UpdateTimerTimeout</td></tr> |
59 </table> |
70 </table> |
60 <h3>Class Methods</h3> |
71 <h3>Class Methods</h3> |
|
72 |
61 <table> |
73 <table> |
62 <tr><td>None</td></tr> |
74 <tr><td>None</td></tr> |
63 </table> |
75 </table> |
64 <h3>Methods</h3> |
76 <h3>Methods</h3> |
|
77 |
65 <table> |
78 <table> |
|
79 |
66 <tr> |
80 <tr> |
67 <td><a href="#DownloadManager.__init__">DownloadManager</a></td> |
81 <td><a href="#DownloadManager.__init__">DownloadManager</a></td> |
68 <td>Constructor</td> |
82 <td>Constructor</td> |
69 </tr><tr> |
83 </tr> |
|
84 <tr> |
70 <td><a href="#DownloadManager.__addItem">__addItem</a></td> |
85 <td><a href="#DownloadManager.__addItem">__addItem</a></td> |
71 <td>Private method to add a download to the list of downloads.</td> |
86 <td>Private method to add a download to the list of downloads.</td> |
72 </tr><tr> |
87 </tr> |
|
88 <tr> |
73 <td><a href="#DownloadManager.__closeDownloadTab">__closeDownloadTab</a></td> |
89 <td><a href="#DownloadManager.__closeDownloadTab">__closeDownloadTab</a></td> |
74 <td>Private method to close an empty tab, that was opened only for loading the download URL.</td> |
90 <td>Private method to close an empty tab, that was opened only for loading the download URL.</td> |
75 </tr><tr> |
91 </tr> |
|
92 <tr> |
76 <td><a href="#DownloadManager.__contextMenuCancel">__contextMenuCancel</a></td> |
93 <td><a href="#DownloadManager.__contextMenuCancel">__contextMenuCancel</a></td> |
77 <td>Private method to cancel the current download.</td> |
94 <td>Private method to cancel the current download.</td> |
78 </tr><tr> |
95 </tr> |
|
96 <tr> |
79 <td><a href="#DownloadManager.__contextMenuCopyLink">__contextMenuCopyLink</a></td> |
97 <td><a href="#DownloadManager.__contextMenuCopyLink">__contextMenuCopyLink</a></td> |
80 <td>Private method to copy the download link to the clipboard.</td> |
98 <td>Private method to copy the download link to the clipboard.</td> |
81 </tr><tr> |
99 </tr> |
|
100 <tr> |
82 <td><a href="#DownloadManager.__contextMenuGotoPage">__contextMenuGotoPage</a></td> |
101 <td><a href="#DownloadManager.__contextMenuGotoPage">__contextMenuGotoPage</a></td> |
83 <td>Private method to open the download page.</td> |
102 <td>Private method to open the download page.</td> |
84 </tr><tr> |
103 </tr> |
|
104 <tr> |
85 <td><a href="#DownloadManager.__contextMenuOpen">__contextMenuOpen</a></td> |
105 <td><a href="#DownloadManager.__contextMenuOpen">__contextMenuOpen</a></td> |
86 <td>Private method to open the downloaded file.</td> |
106 <td>Private method to open the downloaded file.</td> |
87 </tr><tr> |
107 </tr> |
|
108 <tr> |
88 <td><a href="#DownloadManager.__contextMenuOpenFolder">__contextMenuOpenFolder</a></td> |
109 <td><a href="#DownloadManager.__contextMenuOpenFolder">__contextMenuOpenFolder</a></td> |
89 <td>Private method to open the folder containing the downloaded file.</td> |
110 <td>Private method to open the folder containing the downloaded file.</td> |
90 </tr><tr> |
111 </tr> |
|
112 <tr> |
91 <td><a href="#DownloadManager.__contextMenuRemoveSelected">__contextMenuRemoveSelected</a></td> |
113 <td><a href="#DownloadManager.__contextMenuRemoveSelected">__contextMenuRemoveSelected</a></td> |
92 <td>Private method to remove the selected downloads from the list.</td> |
114 <td>Private method to remove the selected downloads from the list.</td> |
93 </tr><tr> |
115 </tr> |
|
116 <tr> |
94 <td><a href="#DownloadManager.__contextMenuSelectAll">__contextMenuSelectAll</a></td> |
117 <td><a href="#DownloadManager.__contextMenuSelectAll">__contextMenuSelectAll</a></td> |
95 <td>Private method to select all downloads.</td> |
118 <td>Private method to select all downloads.</td> |
96 </tr><tr> |
119 </tr> |
|
120 <tr> |
97 <td><a href="#DownloadManager.__currentItem">__currentItem</a></td> |
121 <td><a href="#DownloadManager.__currentItem">__currentItem</a></td> |
98 <td>Private method to get a reference to the current item.</td> |
122 <td>Private method to get a reference to the current item.</td> |
99 </tr><tr> |
123 </tr> |
|
124 <tr> |
100 <td><a href="#DownloadManager.__customContextMenuRequested">__customContextMenuRequested</a></td> |
125 <td><a href="#DownloadManager.__customContextMenuRequested">__customContextMenuRequested</a></td> |
101 <td>Private slot to handle the context menu request for the bookmarks tree.</td> |
126 <td>Private slot to handle the context menu request for the bookmarks tree.</td> |
102 </tr><tr> |
127 </tr> |
|
128 <tr> |
103 <td><a href="#DownloadManager.__finished">__finished</a></td> |
129 <td><a href="#DownloadManager.__finished">__finished</a></td> |
104 <td>Private slot to handle a finished download.</td> |
130 <td>Private slot to handle a finished download.</td> |
105 </tr><tr> |
131 </tr> |
|
132 <tr> |
106 <td><a href="#DownloadManager.__load">__load</a></td> |
133 <td><a href="#DownloadManager.__load">__load</a></td> |
107 <td>Private method to load the download settings.</td> |
134 <td>Private method to load the download settings.</td> |
108 </tr><tr> |
135 </tr> |
|
136 <tr> |
109 <td><a href="#DownloadManager.__startUpdateTimer">__startUpdateTimer</a></td> |
137 <td><a href="#DownloadManager.__startUpdateTimer">__startUpdateTimer</a></td> |
110 <td>Private slot to start the update timer.</td> |
138 <td>Private slot to start the update timer.</td> |
111 </tr><tr> |
139 </tr> |
|
140 <tr> |
112 <td><a href="#DownloadManager.__stopUpdateTimer">__stopUpdateTimer</a></td> |
141 <td><a href="#DownloadManager.__stopUpdateTimer">__stopUpdateTimer</a></td> |
113 <td>Private slot to stop the update timer.</td> |
142 <td>Private slot to stop the update timer.</td> |
114 </tr><tr> |
143 </tr> |
|
144 <tr> |
115 <td><a href="#DownloadManager.__taskbarButton">__taskbarButton</a></td> |
145 <td><a href="#DownloadManager.__taskbarButton">__taskbarButton</a></td> |
116 <td>Private method to get a reference to the task bar button (Windows only).</td> |
146 <td>Private method to get a reference to the task bar button (Windows only).</td> |
117 </tr><tr> |
147 </tr> |
|
148 <tr> |
118 <td><a href="#DownloadManager.__testWebBrowserView">__testWebBrowserView</a></td> |
149 <td><a href="#DownloadManager.__testWebBrowserView">__testWebBrowserView</a></td> |
119 <td>Private method to test a web browser view against an URL.</td> |
150 <td>Private method to test a web browser view against an URL.</td> |
120 </tr><tr> |
151 </tr> |
|
152 <tr> |
121 <td><a href="#DownloadManager.__updateRow">__updateRow</a></td> |
153 <td><a href="#DownloadManager.__updateRow">__updateRow</a></td> |
122 <td>Private slot to update a download item.</td> |
154 <td>Private slot to update a download item.</td> |
123 </tr><tr> |
155 </tr> |
|
156 <tr> |
124 <td><a href="#DownloadManager.activeDownloadsCount">activeDownloadsCount</a></td> |
157 <td><a href="#DownloadManager.activeDownloadsCount">activeDownloadsCount</a></td> |
125 <td>Public method to get the number of active downloads.</td> |
158 <td>Public method to get the number of active downloads.</td> |
126 </tr><tr> |
159 </tr> |
|
160 <tr> |
127 <td><a href="#DownloadManager.allowQuit">allowQuit</a></td> |
161 <td><a href="#DownloadManager.allowQuit">allowQuit</a></td> |
128 <td>Public method to check, if it is ok to quit.</td> |
162 <td>Public method to check, if it is ok to quit.</td> |
129 </tr><tr> |
163 </tr> |
|
164 <tr> |
130 <td><a href="#DownloadManager.changeOccurred">changeOccurred</a></td> |
165 <td><a href="#DownloadManager.changeOccurred">changeOccurred</a></td> |
131 <td>Public method to signal a change.</td> |
166 <td>Public method to signal a change.</td> |
132 </tr><tr> |
167 </tr> |
|
168 <tr> |
133 <td><a href="#DownloadManager.cleanup">cleanup</a></td> |
169 <td><a href="#DownloadManager.cleanup">cleanup</a></td> |
134 <td>Public slot to cleanup the downloads.</td> |
170 <td>Public slot to cleanup the downloads.</td> |
135 </tr><tr> |
171 </tr> |
|
172 <tr> |
136 <td><a href="#DownloadManager.closeEvent">closeEvent</a></td> |
173 <td><a href="#DownloadManager.closeEvent">closeEvent</a></td> |
137 <td>Protected event handler for the close event.</td> |
174 <td>Protected event handler for the close event.</td> |
138 </tr><tr> |
175 </tr> |
|
176 <tr> |
139 <td><a href="#DownloadManager.download">download</a></td> |
177 <td><a href="#DownloadManager.download">download</a></td> |
140 <td>Public method to download a file.</td> |
178 <td>Public method to download a file.</td> |
141 </tr><tr> |
179 </tr> |
|
180 <tr> |
142 <td><a href="#DownloadManager.downloadDirectory">downloadDirectory</a></td> |
181 <td><a href="#DownloadManager.downloadDirectory">downloadDirectory</a></td> |
143 <td>Public method to get the current download directory.</td> |
182 <td>Public method to get the current download directory.</td> |
144 </tr><tr> |
183 </tr> |
|
184 <tr> |
145 <td><a href="#DownloadManager.downloads">downloads</a></td> |
185 <td><a href="#DownloadManager.downloads">downloads</a></td> |
146 <td>Public method to get a reference to the downloads.</td> |
186 <td>Public method to get a reference to the downloads.</td> |
147 </tr><tr> |
187 </tr> |
|
188 <tr> |
148 <td><a href="#DownloadManager.downloadsCount">downloadsCount</a></td> |
189 <td><a href="#DownloadManager.downloadsCount">downloadsCount</a></td> |
149 <td>Public method to get the number of downloads.</td> |
190 <td>Public method to get the number of downloads.</td> |
150 </tr><tr> |
191 </tr> |
|
192 <tr> |
151 <td><a href="#DownloadManager.on_cleanupButton_clicked">on_cleanupButton_clicked</a></td> |
193 <td><a href="#DownloadManager.on_cleanupButton_clicked">on_cleanupButton_clicked</a></td> |
152 <td>Private slot to cleanup the downloads.</td> |
194 <td>Private slot to cleanup the downloads.</td> |
153 </tr><tr> |
195 </tr> |
|
196 <tr> |
154 <td><a href="#DownloadManager.removePolicy">removePolicy</a></td> |
197 <td><a href="#DownloadManager.removePolicy">removePolicy</a></td> |
155 <td>Public method to get the remove policy.</td> |
198 <td>Public method to get the remove policy.</td> |
156 </tr><tr> |
199 </tr> |
|
200 <tr> |
157 <td><a href="#DownloadManager.save">save</a></td> |
201 <td><a href="#DownloadManager.save">save</a></td> |
158 <td>Public method to save the download settings.</td> |
202 <td>Public method to save the download settings.</td> |
159 </tr><tr> |
203 </tr> |
|
204 <tr> |
160 <td><a href="#DownloadManager.setDownloadDirectory">setDownloadDirectory</a></td> |
205 <td><a href="#DownloadManager.setDownloadDirectory">setDownloadDirectory</a></td> |
161 <td>Public method to set the current download directory.</td> |
206 <td>Public method to set the current download directory.</td> |
162 </tr><tr> |
207 </tr> |
|
208 <tr> |
163 <td><a href="#DownloadManager.setRemovePolicy">setRemovePolicy</a></td> |
209 <td><a href="#DownloadManager.setRemovePolicy">setRemovePolicy</a></td> |
164 <td>Public method to set the remove policy.</td> |
210 <td>Public method to set the remove policy.</td> |
165 </tr><tr> |
211 </tr> |
|
212 <tr> |
166 <td><a href="#DownloadManager.show">show</a></td> |
213 <td><a href="#DownloadManager.show">show</a></td> |
167 <td>Public slot to show the download manager dialog.</td> |
214 <td>Public slot to show the download manager dialog.</td> |
168 </tr><tr> |
215 </tr> |
|
216 <tr> |
169 <td><a href="#DownloadManager.shutdown">shutdown</a></td> |
217 <td><a href="#DownloadManager.shutdown">shutdown</a></td> |
170 <td>Public method to stop the download manager.</td> |
218 <td>Public method to stop the download manager.</td> |
171 </tr><tr> |
219 </tr> |
|
220 <tr> |
172 <td><a href="#DownloadManager.timerEvent">timerEvent</a></td> |
221 <td><a href="#DownloadManager.timerEvent">timerEvent</a></td> |
173 <td>Protected event handler for timer events.</td> |
222 <td>Protected event handler for timer events.</td> |
174 </tr> |
223 </tr> |
175 </table> |
224 </table> |
176 <h3>Static Methods</h3> |
225 <h3>Static Methods</h3> |
|
226 |
177 <table> |
227 <table> |
178 <tr><td>None</td></tr> |
228 <tr><td>None</td></tr> |
179 </table> |
229 </table> |
|
230 |
180 <a NAME="DownloadManager.__init__" ID="DownloadManager.__init__"></a> |
231 <a NAME="DownloadManager.__init__" ID="DownloadManager.__init__"></a> |
181 <h4>DownloadManager (Constructor)</h4> |
232 <h4>DownloadManager (Constructor)</h4> |
182 <b>DownloadManager</b>(<i>parent=None</i>) |
233 <b>DownloadManager</b>(<i>parent=None</i>) |
|
234 |
183 <p> |
235 <p> |
184 Constructor |
236 Constructor |
185 </p><dl> |
237 </p> |
|
238 <dl> |
|
239 |
186 <dt><i>parent</i></dt> |
240 <dt><i>parent</i></dt> |
187 <dd> |
241 <dd> |
188 reference to the parent widget (QWidget) |
242 reference to the parent widget (QWidget) |
189 </dd> |
243 </dd> |
190 </dl><a NAME="DownloadManager.__addItem" ID="DownloadManager.__addItem"></a> |
244 </dl> |
|
245 <a NAME="DownloadManager.__addItem" ID="DownloadManager.__addItem"></a> |
191 <h4>DownloadManager.__addItem</h4> |
246 <h4>DownloadManager.__addItem</h4> |
192 <b>__addItem</b>(<i>itm, append=False</i>) |
247 <b>__addItem</b>(<i>itm, append=False</i>) |
|
248 |
193 <p> |
249 <p> |
194 Private method to add a download to the list of downloads. |
250 Private method to add a download to the list of downloads. |
195 </p><dl> |
251 </p> |
|
252 <dl> |
|
253 |
196 <dt><i>itm</i> (DownloadItem)</dt> |
254 <dt><i>itm</i> (DownloadItem)</dt> |
197 <dd> |
255 <dd> |
198 reference to the download item |
256 reference to the download item |
199 </dd><dt><i>append</i> (bool)</dt> |
257 </dd> |
|
258 <dt><i>append</i> (bool)</dt> |
200 <dd> |
259 <dd> |
201 flag indicating to append the item |
260 flag indicating to append the item |
202 </dd> |
261 </dd> |
203 </dl><a NAME="DownloadManager.__closeDownloadTab" ID="DownloadManager.__closeDownloadTab"></a> |
262 </dl> |
|
263 <a NAME="DownloadManager.__closeDownloadTab" ID="DownloadManager.__closeDownloadTab"></a> |
204 <h4>DownloadManager.__closeDownloadTab</h4> |
264 <h4>DownloadManager.__closeDownloadTab</h4> |
205 <b>__closeDownloadTab</b>(<i>url</i>) |
265 <b>__closeDownloadTab</b>(<i>url</i>) |
|
266 |
206 <p> |
267 <p> |
207 Private method to close an empty tab, that was opened only for loading |
268 Private method to close an empty tab, that was opened only for loading |
208 the download URL. |
269 the download URL. |
209 </p><dl> |
270 </p> |
|
271 <dl> |
|
272 |
210 <dt><i>url</i> (QUrl)</dt> |
273 <dt><i>url</i> (QUrl)</dt> |
211 <dd> |
274 <dd> |
212 download URL |
275 download URL |
213 </dd> |
276 </dd> |
214 </dl><a NAME="DownloadManager.__contextMenuCancel" ID="DownloadManager.__contextMenuCancel"></a> |
277 </dl> |
|
278 <a NAME="DownloadManager.__contextMenuCancel" ID="DownloadManager.__contextMenuCancel"></a> |
215 <h4>DownloadManager.__contextMenuCancel</h4> |
279 <h4>DownloadManager.__contextMenuCancel</h4> |
216 <b>__contextMenuCancel</b>(<i></i>) |
280 <b>__contextMenuCancel</b>(<i></i>) |
|
281 |
217 <p> |
282 <p> |
218 Private method to cancel the current download. |
283 Private method to cancel the current download. |
219 </p><a NAME="DownloadManager.__contextMenuCopyLink" ID="DownloadManager.__contextMenuCopyLink"></a> |
284 </p> |
|
285 <a NAME="DownloadManager.__contextMenuCopyLink" ID="DownloadManager.__contextMenuCopyLink"></a> |
220 <h4>DownloadManager.__contextMenuCopyLink</h4> |
286 <h4>DownloadManager.__contextMenuCopyLink</h4> |
221 <b>__contextMenuCopyLink</b>(<i></i>) |
287 <b>__contextMenuCopyLink</b>(<i></i>) |
|
288 |
222 <p> |
289 <p> |
223 Private method to copy the download link to the clipboard. |
290 Private method to copy the download link to the clipboard. |
224 </p><a NAME="DownloadManager.__contextMenuGotoPage" ID="DownloadManager.__contextMenuGotoPage"></a> |
291 </p> |
|
292 <a NAME="DownloadManager.__contextMenuGotoPage" ID="DownloadManager.__contextMenuGotoPage"></a> |
225 <h4>DownloadManager.__contextMenuGotoPage</h4> |
293 <h4>DownloadManager.__contextMenuGotoPage</h4> |
226 <b>__contextMenuGotoPage</b>(<i></i>) |
294 <b>__contextMenuGotoPage</b>(<i></i>) |
|
295 |
227 <p> |
296 <p> |
228 Private method to open the download page. |
297 Private method to open the download page. |
229 </p><a NAME="DownloadManager.__contextMenuOpen" ID="DownloadManager.__contextMenuOpen"></a> |
298 </p> |
|
299 <a NAME="DownloadManager.__contextMenuOpen" ID="DownloadManager.__contextMenuOpen"></a> |
230 <h4>DownloadManager.__contextMenuOpen</h4> |
300 <h4>DownloadManager.__contextMenuOpen</h4> |
231 <b>__contextMenuOpen</b>(<i></i>) |
301 <b>__contextMenuOpen</b>(<i></i>) |
|
302 |
232 <p> |
303 <p> |
233 Private method to open the downloaded file. |
304 Private method to open the downloaded file. |
234 </p><a NAME="DownloadManager.__contextMenuOpenFolder" ID="DownloadManager.__contextMenuOpenFolder"></a> |
305 </p> |
|
306 <a NAME="DownloadManager.__contextMenuOpenFolder" ID="DownloadManager.__contextMenuOpenFolder"></a> |
235 <h4>DownloadManager.__contextMenuOpenFolder</h4> |
307 <h4>DownloadManager.__contextMenuOpenFolder</h4> |
236 <b>__contextMenuOpenFolder</b>(<i></i>) |
308 <b>__contextMenuOpenFolder</b>(<i></i>) |
|
309 |
237 <p> |
310 <p> |
238 Private method to open the folder containing the downloaded file. |
311 Private method to open the folder containing the downloaded file. |
239 </p><a NAME="DownloadManager.__contextMenuRemoveSelected" ID="DownloadManager.__contextMenuRemoveSelected"></a> |
312 </p> |
|
313 <a NAME="DownloadManager.__contextMenuRemoveSelected" ID="DownloadManager.__contextMenuRemoveSelected"></a> |
240 <h4>DownloadManager.__contextMenuRemoveSelected</h4> |
314 <h4>DownloadManager.__contextMenuRemoveSelected</h4> |
241 <b>__contextMenuRemoveSelected</b>(<i></i>) |
315 <b>__contextMenuRemoveSelected</b>(<i></i>) |
|
316 |
242 <p> |
317 <p> |
243 Private method to remove the selected downloads from the list. |
318 Private method to remove the selected downloads from the list. |
244 </p><a NAME="DownloadManager.__contextMenuSelectAll" ID="DownloadManager.__contextMenuSelectAll"></a> |
319 </p> |
|
320 <a NAME="DownloadManager.__contextMenuSelectAll" ID="DownloadManager.__contextMenuSelectAll"></a> |
245 <h4>DownloadManager.__contextMenuSelectAll</h4> |
321 <h4>DownloadManager.__contextMenuSelectAll</h4> |
246 <b>__contextMenuSelectAll</b>(<i></i>) |
322 <b>__contextMenuSelectAll</b>(<i></i>) |
|
323 |
247 <p> |
324 <p> |
248 Private method to select all downloads. |
325 Private method to select all downloads. |
249 </p><a NAME="DownloadManager.__currentItem" ID="DownloadManager.__currentItem"></a> |
326 </p> |
|
327 <a NAME="DownloadManager.__currentItem" ID="DownloadManager.__currentItem"></a> |
250 <h4>DownloadManager.__currentItem</h4> |
328 <h4>DownloadManager.__currentItem</h4> |
251 <b>__currentItem</b>(<i></i>) |
329 <b>__currentItem</b>(<i></i>) |
|
330 |
252 <p> |
331 <p> |
253 Private method to get a reference to the current item. |
332 Private method to get a reference to the current item. |
254 </p><dl> |
333 </p> |
|
334 <dl> |
255 <dt>Returns:</dt> |
335 <dt>Returns:</dt> |
256 <dd> |
336 <dd> |
257 reference to the current item (DownloadItem) |
337 reference to the current item (DownloadItem) |
258 </dd> |
338 </dd> |
259 </dl><a NAME="DownloadManager.__customContextMenuRequested" ID="DownloadManager.__customContextMenuRequested"></a> |
339 </dl> |
|
340 <a NAME="DownloadManager.__customContextMenuRequested" ID="DownloadManager.__customContextMenuRequested"></a> |
260 <h4>DownloadManager.__customContextMenuRequested</h4> |
341 <h4>DownloadManager.__customContextMenuRequested</h4> |
261 <b>__customContextMenuRequested</b>(<i>pos</i>) |
342 <b>__customContextMenuRequested</b>(<i>pos</i>) |
|
343 |
262 <p> |
344 <p> |
263 Private slot to handle the context menu request for the bookmarks tree. |
345 Private slot to handle the context menu request for the bookmarks tree. |
264 </p><dl> |
346 </p> |
|
347 <dl> |
|
348 |
265 <dt><i>pos</i></dt> |
349 <dt><i>pos</i></dt> |
266 <dd> |
350 <dd> |
267 position the context menu was requested (QPoint) |
351 position the context menu was requested (QPoint) |
268 </dd> |
352 </dd> |
269 </dl><a NAME="DownloadManager.__finished" ID="DownloadManager.__finished"></a> |
353 </dl> |
|
354 <a NAME="DownloadManager.__finished" ID="DownloadManager.__finished"></a> |
270 <h4>DownloadManager.__finished</h4> |
355 <h4>DownloadManager.__finished</h4> |
271 <b>__finished</b>(<i>success</i>) |
356 <b>__finished</b>(<i>success</i>) |
|
357 |
272 <p> |
358 <p> |
273 Private slot to handle a finished download. |
359 Private slot to handle a finished download. |
274 </p><dl> |
360 </p> |
|
361 <dl> |
|
362 |
275 <dt><i>success</i> (bool)</dt> |
363 <dt><i>success</i> (bool)</dt> |
276 <dd> |
364 <dd> |
277 flag indicating a successful download |
365 flag indicating a successful download |
278 </dd> |
366 </dd> |
279 </dl><a NAME="DownloadManager.__load" ID="DownloadManager.__load"></a> |
367 </dl> |
|
368 <a NAME="DownloadManager.__load" ID="DownloadManager.__load"></a> |
280 <h4>DownloadManager.__load</h4> |
369 <h4>DownloadManager.__load</h4> |
281 <b>__load</b>(<i></i>) |
370 <b>__load</b>(<i></i>) |
|
371 |
282 <p> |
372 <p> |
283 Private method to load the download settings. |
373 Private method to load the download settings. |
284 </p><a NAME="DownloadManager.__startUpdateTimer" ID="DownloadManager.__startUpdateTimer"></a> |
374 </p> |
|
375 <a NAME="DownloadManager.__startUpdateTimer" ID="DownloadManager.__startUpdateTimer"></a> |
285 <h4>DownloadManager.__startUpdateTimer</h4> |
376 <h4>DownloadManager.__startUpdateTimer</h4> |
286 <b>__startUpdateTimer</b>(<i></i>) |
377 <b>__startUpdateTimer</b>(<i></i>) |
|
378 |
287 <p> |
379 <p> |
288 Private slot to start the update timer. |
380 Private slot to start the update timer. |
289 </p><a NAME="DownloadManager.__stopUpdateTimer" ID="DownloadManager.__stopUpdateTimer"></a> |
381 </p> |
|
382 <a NAME="DownloadManager.__stopUpdateTimer" ID="DownloadManager.__stopUpdateTimer"></a> |
290 <h4>DownloadManager.__stopUpdateTimer</h4> |
383 <h4>DownloadManager.__stopUpdateTimer</h4> |
291 <b>__stopUpdateTimer</b>(<i></i>) |
384 <b>__stopUpdateTimer</b>(<i></i>) |
|
385 |
292 <p> |
386 <p> |
293 Private slot to stop the update timer. |
387 Private slot to stop the update timer. |
294 </p><a NAME="DownloadManager.__taskbarButton" ID="DownloadManager.__taskbarButton"></a> |
388 </p> |
|
389 <a NAME="DownloadManager.__taskbarButton" ID="DownloadManager.__taskbarButton"></a> |
295 <h4>DownloadManager.__taskbarButton</h4> |
390 <h4>DownloadManager.__taskbarButton</h4> |
296 <b>__taskbarButton</b>(<i></i>) |
391 <b>__taskbarButton</b>(<i></i>) |
|
392 |
297 <p> |
393 <p> |
298 Private method to get a reference to the task bar button (Windows |
394 Private method to get a reference to the task bar button (Windows |
299 only). |
395 only). |
300 </p><dl> |
396 </p> |
|
397 <dl> |
301 <dt>Returns:</dt> |
398 <dt>Returns:</dt> |
302 <dd> |
399 <dd> |
303 reference to the task bar button |
400 reference to the task bar button |
304 </dd> |
401 </dd> |
305 </dl><dl> |
402 </dl> |
|
403 <dl> |
306 <dt>Return Type:</dt> |
404 <dt>Return Type:</dt> |
307 <dd> |
405 <dd> |
308 QWinTaskbarButton or None |
406 QWinTaskbarButton or None |
309 </dd> |
407 </dd> |
310 </dl><a NAME="DownloadManager.__testWebBrowserView" ID="DownloadManager.__testWebBrowserView"></a> |
408 </dl> |
|
409 <a NAME="DownloadManager.__testWebBrowserView" ID="DownloadManager.__testWebBrowserView"></a> |
311 <h4>DownloadManager.__testWebBrowserView</h4> |
410 <h4>DownloadManager.__testWebBrowserView</h4> |
312 <b>__testWebBrowserView</b>(<i>view, url</i>) |
411 <b>__testWebBrowserView</b>(<i>view, url</i>) |
|
412 |
313 <p> |
413 <p> |
314 Private method to test a web browser view against an URL. |
414 Private method to test a web browser view against an URL. |
315 </p><dl> |
415 </p> |
|
416 <dl> |
|
417 |
316 <dt><i>view</i> (WebBrowserView)</dt> |
418 <dt><i>view</i> (WebBrowserView)</dt> |
317 <dd> |
419 <dd> |
318 reference to the web browser view to be tested |
420 reference to the web browser view to be tested |
319 </dd><dt><i>url</i> (QUrl)</dt> |
421 </dd> |
|
422 <dt><i>url</i> (QUrl)</dt> |
320 <dd> |
423 <dd> |
321 URL to test against |
424 URL to test against |
322 </dd> |
425 </dd> |
323 </dl><dl> |
426 </dl> |
|
427 <dl> |
324 <dt>Returns:</dt> |
428 <dt>Returns:</dt> |
325 <dd> |
429 <dd> |
326 flag indicating, that the view is the one for the URL |
430 flag indicating, that the view is the one for the URL |
327 </dd> |
431 </dd> |
328 </dl><dl> |
432 </dl> |
|
433 <dl> |
329 <dt>Return Type:</dt> |
434 <dt>Return Type:</dt> |
330 <dd> |
435 <dd> |
331 bool |
436 bool |
332 </dd> |
437 </dd> |
333 </dl><a NAME="DownloadManager.__updateRow" ID="DownloadManager.__updateRow"></a> |
438 </dl> |
|
439 <a NAME="DownloadManager.__updateRow" ID="DownloadManager.__updateRow"></a> |
334 <h4>DownloadManager.__updateRow</h4> |
440 <h4>DownloadManager.__updateRow</h4> |
335 <b>__updateRow</b>(<i>itm</i>) |
441 <b>__updateRow</b>(<i>itm</i>) |
|
442 |
336 <p> |
443 <p> |
337 Private slot to update a download item. |
444 Private slot to update a download item. |
338 </p><dl> |
445 </p> |
|
446 <dl> |
|
447 |
339 <dt><i>itm</i> (DownloadItem)</dt> |
448 <dt><i>itm</i> (DownloadItem)</dt> |
340 <dd> |
449 <dd> |
341 reference to the download item |
450 reference to the download item |
342 </dd> |
451 </dd> |
343 </dl><a NAME="DownloadManager.activeDownloadsCount" ID="DownloadManager.activeDownloadsCount"></a> |
452 </dl> |
|
453 <a NAME="DownloadManager.activeDownloadsCount" ID="DownloadManager.activeDownloadsCount"></a> |
344 <h4>DownloadManager.activeDownloadsCount</h4> |
454 <h4>DownloadManager.activeDownloadsCount</h4> |
345 <b>activeDownloadsCount</b>(<i></i>) |
455 <b>activeDownloadsCount</b>(<i></i>) |
|
456 |
346 <p> |
457 <p> |
347 Public method to get the number of active downloads. |
458 Public method to get the number of active downloads. |
348 </p><dl> |
459 </p> |
|
460 <dl> |
349 <dt>Returns:</dt> |
461 <dt>Returns:</dt> |
350 <dd> |
462 <dd> |
351 number of active downloads (integer) |
463 number of active downloads (integer) |
352 </dd> |
464 </dd> |
353 </dl><a NAME="DownloadManager.allowQuit" ID="DownloadManager.allowQuit"></a> |
465 </dl> |
|
466 <a NAME="DownloadManager.allowQuit" ID="DownloadManager.allowQuit"></a> |
354 <h4>DownloadManager.allowQuit</h4> |
467 <h4>DownloadManager.allowQuit</h4> |
355 <b>allowQuit</b>(<i></i>) |
468 <b>allowQuit</b>(<i></i>) |
|
469 |
356 <p> |
470 <p> |
357 Public method to check, if it is ok to quit. |
471 Public method to check, if it is ok to quit. |
358 </p><dl> |
472 </p> |
|
473 <dl> |
359 <dt>Returns:</dt> |
474 <dt>Returns:</dt> |
360 <dd> |
475 <dd> |
361 flag indicating allowance to quit (boolean) |
476 flag indicating allowance to quit (boolean) |
362 </dd> |
477 </dd> |
363 </dl><a NAME="DownloadManager.changeOccurred" ID="DownloadManager.changeOccurred"></a> |
478 </dl> |
|
479 <a NAME="DownloadManager.changeOccurred" ID="DownloadManager.changeOccurred"></a> |
364 <h4>DownloadManager.changeOccurred</h4> |
480 <h4>DownloadManager.changeOccurred</h4> |
365 <b>changeOccurred</b>(<i></i>) |
481 <b>changeOccurred</b>(<i></i>) |
|
482 |
366 <p> |
483 <p> |
367 Public method to signal a change. |
484 Public method to signal a change. |
368 </p><a NAME="DownloadManager.cleanup" ID="DownloadManager.cleanup"></a> |
485 </p> |
|
486 <a NAME="DownloadManager.cleanup" ID="DownloadManager.cleanup"></a> |
369 <h4>DownloadManager.cleanup</h4> |
487 <h4>DownloadManager.cleanup</h4> |
370 <b>cleanup</b>(<i></i>) |
488 <b>cleanup</b>(<i></i>) |
|
489 |
371 <p> |
490 <p> |
372 Public slot to cleanup the downloads. |
491 Public slot to cleanup the downloads. |
373 </p><a NAME="DownloadManager.closeEvent" ID="DownloadManager.closeEvent"></a> |
492 </p> |
|
493 <a NAME="DownloadManager.closeEvent" ID="DownloadManager.closeEvent"></a> |
374 <h4>DownloadManager.closeEvent</h4> |
494 <h4>DownloadManager.closeEvent</h4> |
375 <b>closeEvent</b>(<i>evt</i>) |
495 <b>closeEvent</b>(<i>evt</i>) |
|
496 |
376 <p> |
497 <p> |
377 Protected event handler for the close event. |
498 Protected event handler for the close event. |
378 </p><dl> |
499 </p> |
|
500 <dl> |
|
501 |
379 <dt><i>evt</i> (QCloseEvent)</dt> |
502 <dt><i>evt</i> (QCloseEvent)</dt> |
380 <dd> |
503 <dd> |
381 reference to the close event |
504 reference to the close event |
382 </dd> |
505 </dd> |
383 </dl><a NAME="DownloadManager.download" ID="DownloadManager.download"></a> |
506 </dl> |
|
507 <a NAME="DownloadManager.download" ID="DownloadManager.download"></a> |
384 <h4>DownloadManager.download</h4> |
508 <h4>DownloadManager.download</h4> |
385 <b>download</b>(<i>downloadItem</i>) |
509 <b>download</b>(<i>downloadItem</i>) |
|
510 |
386 <p> |
511 <p> |
387 Public method to download a file. |
512 Public method to download a file. |
388 </p><dl> |
513 </p> |
|
514 <dl> |
|
515 |
389 <dt><i>downloadItem</i> (QWebEngineDownloadItem)</dt> |
516 <dt><i>downloadItem</i> (QWebEngineDownloadItem)</dt> |
390 <dd> |
517 <dd> |
391 reference to the download object containing the |
518 reference to the download object containing the |
392 download data. |
519 download data. |
393 </dd> |
520 </dd> |
394 </dl><a NAME="DownloadManager.downloadDirectory" ID="DownloadManager.downloadDirectory"></a> |
521 </dl> |
|
522 <a NAME="DownloadManager.downloadDirectory" ID="DownloadManager.downloadDirectory"></a> |
395 <h4>DownloadManager.downloadDirectory</h4> |
523 <h4>DownloadManager.downloadDirectory</h4> |
396 <b>downloadDirectory</b>(<i></i>) |
524 <b>downloadDirectory</b>(<i></i>) |
|
525 |
397 <p> |
526 <p> |
398 Public method to get the current download directory. |
527 Public method to get the current download directory. |
399 </p><dl> |
528 </p> |
|
529 <dl> |
400 <dt>Returns:</dt> |
530 <dt>Returns:</dt> |
401 <dd> |
531 <dd> |
402 current download directory (string) |
532 current download directory (string) |
403 </dd> |
533 </dd> |
404 </dl><a NAME="DownloadManager.downloads" ID="DownloadManager.downloads"></a> |
534 </dl> |
|
535 <a NAME="DownloadManager.downloads" ID="DownloadManager.downloads"></a> |
405 <h4>DownloadManager.downloads</h4> |
536 <h4>DownloadManager.downloads</h4> |
406 <b>downloads</b>(<i></i>) |
537 <b>downloads</b>(<i></i>) |
|
538 |
407 <p> |
539 <p> |
408 Public method to get a reference to the downloads. |
540 Public method to get a reference to the downloads. |
409 </p><dl> |
541 </p> |
|
542 <dl> |
410 <dt>Returns:</dt> |
543 <dt>Returns:</dt> |
411 <dd> |
544 <dd> |
412 reference to the downloads (list of DownloadItem) |
545 reference to the downloads (list of DownloadItem) |
413 </dd> |
546 </dd> |
414 </dl><a NAME="DownloadManager.downloadsCount" ID="DownloadManager.downloadsCount"></a> |
547 </dl> |
|
548 <a NAME="DownloadManager.downloadsCount" ID="DownloadManager.downloadsCount"></a> |
415 <h4>DownloadManager.downloadsCount</h4> |
549 <h4>DownloadManager.downloadsCount</h4> |
416 <b>downloadsCount</b>(<i></i>) |
550 <b>downloadsCount</b>(<i></i>) |
|
551 |
417 <p> |
552 <p> |
418 Public method to get the number of downloads. |
553 Public method to get the number of downloads. |
419 </p><dl> |
554 </p> |
|
555 <dl> |
420 <dt>Returns:</dt> |
556 <dt>Returns:</dt> |
421 <dd> |
557 <dd> |
422 number of downloads |
558 number of downloads |
423 </dd> |
559 </dd> |
424 </dl><dl> |
560 </dl> |
|
561 <dl> |
425 <dt>Return Type:</dt> |
562 <dt>Return Type:</dt> |
426 <dd> |
563 <dd> |
427 int |
564 int |
428 </dd> |
565 </dd> |
429 </dl><a NAME="DownloadManager.on_cleanupButton_clicked" ID="DownloadManager.on_cleanupButton_clicked"></a> |
566 </dl> |
|
567 <a NAME="DownloadManager.on_cleanupButton_clicked" ID="DownloadManager.on_cleanupButton_clicked"></a> |
430 <h4>DownloadManager.on_cleanupButton_clicked</h4> |
568 <h4>DownloadManager.on_cleanupButton_clicked</h4> |
431 <b>on_cleanupButton_clicked</b>(<i></i>) |
569 <b>on_cleanupButton_clicked</b>(<i></i>) |
|
570 |
432 <p> |
571 <p> |
433 Private slot to cleanup the downloads. |
572 Private slot to cleanup the downloads. |
434 </p><a NAME="DownloadManager.removePolicy" ID="DownloadManager.removePolicy"></a> |
573 </p> |
|
574 <a NAME="DownloadManager.removePolicy" ID="DownloadManager.removePolicy"></a> |
435 <h4>DownloadManager.removePolicy</h4> |
575 <h4>DownloadManager.removePolicy</h4> |
436 <b>removePolicy</b>(<i></i>) |
576 <b>removePolicy</b>(<i></i>) |
|
577 |
437 <p> |
578 <p> |
438 Public method to get the remove policy. |
579 Public method to get the remove policy. |
439 </p><dl> |
580 </p> |
|
581 <dl> |
440 <dt>Returns:</dt> |
582 <dt>Returns:</dt> |
441 <dd> |
583 <dd> |
442 remove policy (integer) |
584 remove policy (integer) |
443 </dd> |
585 </dd> |
444 </dl><a NAME="DownloadManager.save" ID="DownloadManager.save"></a> |
586 </dl> |
|
587 <a NAME="DownloadManager.save" ID="DownloadManager.save"></a> |
445 <h4>DownloadManager.save</h4> |
588 <h4>DownloadManager.save</h4> |
446 <b>save</b>(<i></i>) |
589 <b>save</b>(<i></i>) |
|
590 |
447 <p> |
591 <p> |
448 Public method to save the download settings. |
592 Public method to save the download settings. |
449 </p><a NAME="DownloadManager.setDownloadDirectory" ID="DownloadManager.setDownloadDirectory"></a> |
593 </p> |
|
594 <a NAME="DownloadManager.setDownloadDirectory" ID="DownloadManager.setDownloadDirectory"></a> |
450 <h4>DownloadManager.setDownloadDirectory</h4> |
595 <h4>DownloadManager.setDownloadDirectory</h4> |
451 <b>setDownloadDirectory</b>(<i>directory</i>) |
596 <b>setDownloadDirectory</b>(<i>directory</i>) |
|
597 |
452 <p> |
598 <p> |
453 Public method to set the current download directory. |
599 Public method to set the current download directory. |
454 </p><dl> |
600 </p> |
|
601 <dl> |
|
602 |
455 <dt><i>directory</i></dt> |
603 <dt><i>directory</i></dt> |
456 <dd> |
604 <dd> |
457 current download directory (string) |
605 current download directory (string) |
458 </dd> |
606 </dd> |
459 </dl><a NAME="DownloadManager.setRemovePolicy" ID="DownloadManager.setRemovePolicy"></a> |
607 </dl> |
|
608 <a NAME="DownloadManager.setRemovePolicy" ID="DownloadManager.setRemovePolicy"></a> |
460 <h4>DownloadManager.setRemovePolicy</h4> |
609 <h4>DownloadManager.setRemovePolicy</h4> |
461 <b>setRemovePolicy</b>(<i>policy</i>) |
610 <b>setRemovePolicy</b>(<i>policy</i>) |
|
611 |
462 <p> |
612 <p> |
463 Public method to set the remove policy. |
613 Public method to set the remove policy. |
464 </p><dl> |
614 </p> |
|
615 <dl> |
|
616 |
465 <dt><i>policy</i></dt> |
617 <dt><i>policy</i></dt> |
466 <dd> |
618 <dd> |
467 policy to be set |
619 policy to be set |
468 (DownloadManager.RemoveExit, DownloadManager.RemoveNever, |
620 (DownloadManager.RemoveExit, DownloadManager.RemoveNever, |
469 DownloadManager.RemoveSuccessFullDownload) |
621 DownloadManager.RemoveSuccessFullDownload) |
470 </dd> |
622 </dd> |
471 </dl><a NAME="DownloadManager.show" ID="DownloadManager.show"></a> |
623 </dl> |
|
624 <a NAME="DownloadManager.show" ID="DownloadManager.show"></a> |
472 <h4>DownloadManager.show</h4> |
625 <h4>DownloadManager.show</h4> |
473 <b>show</b>(<i></i>) |
626 <b>show</b>(<i></i>) |
|
627 |
474 <p> |
628 <p> |
475 Public slot to show the download manager dialog. |
629 Public slot to show the download manager dialog. |
476 </p><a NAME="DownloadManager.shutdown" ID="DownloadManager.shutdown"></a> |
630 </p> |
|
631 <a NAME="DownloadManager.shutdown" ID="DownloadManager.shutdown"></a> |
477 <h4>DownloadManager.shutdown</h4> |
632 <h4>DownloadManager.shutdown</h4> |
478 <b>shutdown</b>(<i></i>) |
633 <b>shutdown</b>(<i></i>) |
|
634 |
479 <p> |
635 <p> |
480 Public method to stop the download manager. |
636 Public method to stop the download manager. |
481 </p><a NAME="DownloadManager.timerEvent" ID="DownloadManager.timerEvent"></a> |
637 </p> |
|
638 <a NAME="DownloadManager.timerEvent" ID="DownloadManager.timerEvent"></a> |
482 <h4>DownloadManager.timerEvent</h4> |
639 <h4>DownloadManager.timerEvent</h4> |
483 <b>timerEvent</b>(<i>evt</i>) |
640 <b>timerEvent</b>(<i>evt</i>) |
|
641 |
484 <p> |
642 <p> |
485 Protected event handler for timer events. |
643 Protected event handler for timer events. |
486 </p><dl> |
644 </p> |
|
645 <dl> |
|
646 |
487 <dt><i>evt</i> (QTimerEvent)</dt> |
647 <dt><i>evt</i> (QTimerEvent)</dt> |
488 <dd> |
648 <dd> |
489 reference to the timer event |
649 reference to the timer event |
490 </dd> |
650 </dd> |
491 </dl> |
651 </dl> |