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

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

eric ide

mercurial