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

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

eric ide

mercurial