eric7/Documentation/Source/eric7.WebBrowser.Download.DownloadModel.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.WebBrowser.Download.DownloadModel</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.WebBrowser.Download.DownloadModel</h1>
24
25 <p>
26 Module implementing the download model.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#DownloadModel">DownloadModel</a></td>
39 <td>Class implementing the download model.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="DownloadModel" ID="DownloadModel"></a>
50 <h2>DownloadModel</h2>
51
52 <p>
53 Class implementing the download model.
54 </p>
55 <h3>Derived from</h3>
56 QAbstractListModel
57 <h3>Class Attributes</h3>
58
59 <table>
60 <tr><td>None</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63
64 <table>
65 <tr><td>None</td></tr>
66 </table>
67 <h3>Methods</h3>
68
69 <table>
70
71 <tr>
72 <td><a href="#DownloadModel.__init__">DownloadModel</a></td>
73 <td>Constructor</td>
74 </tr>
75 <tr>
76 <td><a href="#DownloadModel.data">data</a></td>
77 <td>Public method to get data from the model.</td>
78 </tr>
79 <tr>
80 <td><a href="#DownloadModel.flags">flags</a></td>
81 <td>Public method to get flags for an item.</td>
82 </tr>
83 <tr>
84 <td><a href="#DownloadModel.mimeData">mimeData</a></td>
85 <td>Public method to return the mime data.</td>
86 </tr>
87 <tr>
88 <td><a href="#DownloadModel.removeRows">removeRows</a></td>
89 <td>Public method to remove downloads from the model.</td>
90 </tr>
91 <tr>
92 <td><a href="#DownloadModel.rowCount">rowCount</a></td>
93 <td>Public method to get the number of rows of the model.</td>
94 </tr>
95 </table>
96 <h3>Static Methods</h3>
97
98 <table>
99 <tr><td>None</td></tr>
100 </table>
101
102 <a NAME="DownloadModel.__init__" ID="DownloadModel.__init__"></a>
103 <h4>DownloadModel (Constructor)</h4>
104 <b>DownloadModel</b>(<i>manager, parent=None</i>)
105
106 <p>
107 Constructor
108 </p>
109 <dl>
110
111 <dt><i>manager</i> (DownloadManager)</dt>
112 <dd>
113 reference to the download manager
114 </dd>
115 <dt><i>parent</i> (QObject)</dt>
116 <dd>
117 reference to the parent object
118 </dd>
119 </dl>
120 <a NAME="DownloadModel.data" ID="DownloadModel.data"></a>
121 <h4>DownloadModel.data</h4>
122 <b>data</b>(<i>index, role</i>)
123
124 <p>
125 Public method to get data from the model.
126 </p>
127 <dl>
128
129 <dt><i>index</i> (QModelIndex)</dt>
130 <dd>
131 index to get data for
132 </dd>
133 <dt><i>role</i> (int)</dt>
134 <dd>
135 role of the data to retrieve
136 </dd>
137 </dl>
138 <dl>
139 <dt>Return:</dt>
140 <dd>
141 requested data
142 </dd>
143 </dl>
144 <dl>
145 <dt>Return Type:</dt>
146 <dd>
147 any
148 </dd>
149 </dl>
150 <a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a>
151 <h4>DownloadModel.flags</h4>
152 <b>flags</b>(<i>index</i>)
153
154 <p>
155 Public method to get flags for an item.
156 </p>
157 <dl>
158
159 <dt><i>index</i> (QModelIndex)</dt>
160 <dd>
161 index of the node cell
162 </dd>
163 </dl>
164 <dl>
165 <dt>Return:</dt>
166 <dd>
167 flags
168 </dd>
169 </dl>
170 <dl>
171 <dt>Return Type:</dt>
172 <dd>
173 Qt.ItemFlags
174 </dd>
175 </dl>
176 <a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a>
177 <h4>DownloadModel.mimeData</h4>
178 <b>mimeData</b>(<i>indexes</i>)
179
180 <p>
181 Public method to return the mime data.
182 </p>
183 <dl>
184
185 <dt><i>indexes</i> (QModelIndexList)</dt>
186 <dd>
187 list of indexes
188 </dd>
189 </dl>
190 <dl>
191 <dt>Return:</dt>
192 <dd>
193 mime data
194 </dd>
195 </dl>
196 <dl>
197 <dt>Return Type:</dt>
198 <dd>
199 QMimeData
200 </dd>
201 </dl>
202 <a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a>
203 <h4>DownloadModel.removeRows</h4>
204 <b>removeRows</b>(<i>row, count, parent=None</i>)
205
206 <p>
207 Public method to remove downloads from the model.
208 </p>
209 <dl>
210
211 <dt><i>row</i> (int)</dt>
212 <dd>
213 row of the first download to remove
214 </dd>
215 <dt><i>count</i> (int)</dt>
216 <dd>
217 number of downloads to remove
218 </dd>
219 <dt><i>parent</i> (QModelIndex)</dt>
220 <dd>
221 index of the parent download node
222 </dd>
223 </dl>
224 <dl>
225 <dt>Return:</dt>
226 <dd>
227 flag indicating successful removal
228 </dd>
229 </dl>
230 <dl>
231 <dt>Return Type:</dt>
232 <dd>
233 bool
234 </dd>
235 </dl>
236 <a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a>
237 <h4>DownloadModel.rowCount</h4>
238 <b>rowCount</b>(<i>parent=None</i>)
239
240 <p>
241 Public method to get the number of rows of the model.
242 </p>
243 <dl>
244
245 <dt><i>parent</i> (QModelIndex)</dt>
246 <dd>
247 parent index
248 </dd>
249 </dl>
250 <dl>
251 <dt>Return:</dt>
252 <dd>
253 number of rows
254 </dd>
255 </dl>
256 <dl>
257 <dt>Return Type:</dt>
258 <dd>
259 int
260 </dd>
261 </dl>
262 <div align="right"><a href="#top">Up</a></div>
263 <hr />
264 </body></html>

eric ide

mercurial