84 <h4>DownloadModel (Constructor)</h4> |
84 <h4>DownloadModel (Constructor)</h4> |
85 <b>DownloadModel</b>(<i>manager, parent=None</i>) |
85 <b>DownloadModel</b>(<i>manager, parent=None</i>) |
86 <p> |
86 <p> |
87 Constructor |
87 Constructor |
88 </p><dl> |
88 </p><dl> |
89 <dt><i>manager</i></dt> |
89 <dt><i>manager</i> (DownloadManager)</dt> |
90 <dd> |
90 <dd> |
91 reference to the download manager (DownloadManager) |
91 reference to the download manager |
92 </dd><dt><i>parent</i></dt> |
92 </dd><dt><i>parent</i> (QObject)</dt> |
93 <dd> |
93 <dd> |
94 reference to the parent object (QObject) |
94 reference to the parent object |
95 </dd> |
95 </dd> |
96 </dl><a NAME="DownloadModel.data" ID="DownloadModel.data"></a> |
96 </dl><a NAME="DownloadModel.data" ID="DownloadModel.data"></a> |
97 <h4>DownloadModel.data</h4> |
97 <h4>DownloadModel.data</h4> |
98 <b>data</b>(<i>index, role</i>) |
98 <b>data</b>(<i>index, role</i>) |
99 <p> |
99 <p> |
100 Public method to get data from the model. |
100 Public method to get data from the model. |
101 </p><dl> |
101 </p><dl> |
102 <dt><i>index</i></dt> |
102 <dt><i>index</i> (QModelIndex)</dt> |
103 <dd> |
103 <dd> |
104 index to get data for (QModelIndex) |
104 index to get data for |
105 </dd><dt><i>role</i></dt> |
105 </dd><dt><i>role</i> (int)</dt> |
106 <dd> |
106 <dd> |
107 role of the data to retrieve (integer) |
107 role of the data to retrieve |
108 </dd> |
108 </dd> |
109 </dl><dl> |
109 </dl><dl> |
110 <dt>Returns:</dt> |
110 <dt>Returns:</dt> |
111 <dd> |
111 <dd> |
112 requested data |
112 requested data |
|
113 </dd> |
|
114 </dl><dl> |
|
115 <dt>Return Type:</dt> |
|
116 <dd> |
|
117 any |
113 </dd> |
118 </dd> |
114 </dl><a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a> |
119 </dl><a NAME="DownloadModel.flags" ID="DownloadModel.flags"></a> |
115 <h4>DownloadModel.flags</h4> |
120 <h4>DownloadModel.flags</h4> |
116 <b>flags</b>(<i>index</i>) |
121 <b>flags</b>(<i>index</i>) |
117 <p> |
122 <p> |
118 Public method to get flags for an item. |
123 Public method to get flags for an item. |
119 </p><dl> |
124 </p><dl> |
120 <dt><i>index</i></dt> |
125 <dt><i>index</i> (QModelIndex)</dt> |
121 <dd> |
126 <dd> |
122 index of the node cell (QModelIndex) |
127 index of the node cell |
123 </dd> |
128 </dd> |
124 </dl><dl> |
129 </dl><dl> |
125 <dt>Returns:</dt> |
130 <dt>Returns:</dt> |
126 <dd> |
131 <dd> |
127 flags (Qt.ItemFlags) |
132 flags |
|
133 </dd> |
|
134 </dl><dl> |
|
135 <dt>Return Type:</dt> |
|
136 <dd> |
|
137 Qt.ItemFlags |
128 </dd> |
138 </dd> |
129 </dl><a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a> |
139 </dl><a NAME="DownloadModel.mimeData" ID="DownloadModel.mimeData"></a> |
130 <h4>DownloadModel.mimeData</h4> |
140 <h4>DownloadModel.mimeData</h4> |
131 <b>mimeData</b>(<i>indexes</i>) |
141 <b>mimeData</b>(<i>indexes</i>) |
132 <p> |
142 <p> |
133 Public method to return the mime data. |
143 Public method to return the mime data. |
134 </p><dl> |
144 </p><dl> |
135 <dt><i>indexes</i></dt> |
145 <dt><i>indexes</i> (QModelIndexList)</dt> |
136 <dd> |
146 <dd> |
137 list of indexes (QModelIndexList) |
147 list of indexes |
138 </dd> |
148 </dd> |
139 </dl><dl> |
149 </dl><dl> |
140 <dt>Returns:</dt> |
150 <dt>Returns:</dt> |
141 <dd> |
151 <dd> |
142 mime data (QMimeData) |
152 mime data |
|
153 </dd> |
|
154 </dl><dl> |
|
155 <dt>Return Type:</dt> |
|
156 <dd> |
|
157 QMimeData |
143 </dd> |
158 </dd> |
144 </dl><a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a> |
159 </dl><a NAME="DownloadModel.removeRows" ID="DownloadModel.removeRows"></a> |
145 <h4>DownloadModel.removeRows</h4> |
160 <h4>DownloadModel.removeRows</h4> |
146 <b>removeRows</b>(<i>row, count, parent=None</i>) |
161 <b>removeRows</b>(<i>row, count, parent=None</i>) |
147 <p> |
162 <p> |
148 Public method to remove bookmarks from the model. |
163 Public method to remove downloads from the model. |
149 </p><dl> |
164 </p><dl> |
150 <dt><i>row</i></dt> |
165 <dt><i>row</i> (int)</dt> |
151 <dd> |
166 <dd> |
152 row of the first bookmark to remove (integer) |
167 row of the first download to remove |
153 </dd><dt><i>count</i></dt> |
168 </dd><dt><i>count</i> (int)</dt> |
154 <dd> |
169 <dd> |
155 number of bookmarks to remove (integer) |
170 number of downloads to remove |
156 </dd><dt><i>parent</i></dt> |
171 </dd><dt><i>parent</i> (QModelIndex)</dt> |
157 <dd> |
172 <dd> |
158 index of the parent bookmark node (QModelIndex) |
173 index of the parent download node |
159 </dd> |
174 </dd> |
160 </dl><dl> |
175 </dl><dl> |
161 <dt>Returns:</dt> |
176 <dt>Returns:</dt> |
162 <dd> |
177 <dd> |
163 flag indicating successful removal (boolean) |
178 flag indicating successful removal |
|
179 </dd> |
|
180 </dl><dl> |
|
181 <dt>Return Type:</dt> |
|
182 <dd> |
|
183 bool |
164 </dd> |
184 </dd> |
165 </dl><a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a> |
185 </dl><a NAME="DownloadModel.rowCount" ID="DownloadModel.rowCount"></a> |
166 <h4>DownloadModel.rowCount</h4> |
186 <h4>DownloadModel.rowCount</h4> |
167 <b>rowCount</b>(<i>parent=None</i>) |
187 <b>rowCount</b>(<i>parent=None</i>) |
168 <p> |
188 <p> |
169 Public method to get the number of rows of the model. |
189 Public method to get the number of rows of the model. |
170 </p><dl> |
190 </p><dl> |
171 <dt><i>parent</i></dt> |
191 <dt><i>parent</i> (QModelIndex)</dt> |
172 <dd> |
192 <dd> |
173 parent index (QModelIndex) |
193 parent index |
174 </dd> |
194 </dd> |
175 </dl><dl> |
195 </dl><dl> |
176 <dt>Returns:</dt> |
196 <dt>Returns:</dt> |
177 <dd> |
197 <dd> |
178 number of rows (integer) |
198 number of rows |
|
199 </dd> |
|
200 </dl><dl> |
|
201 <dt>Return Type:</dt> |
|
202 <dd> |
|
203 int |
179 </dd> |
204 </dd> |
180 </dl> |
205 </dl> |
181 <div align="right"><a href="#top">Up</a></div> |
206 <div align="right"><a href="#top">Up</a></div> |
182 <hr /> |
207 <hr /> |
183 </body></html> |
208 </body></html> |