59 </table> |
59 </table> |
60 <h3>Methods</h3> |
60 <h3>Methods</h3> |
61 <table> |
61 <table> |
62 <tr> |
62 <tr> |
63 <td><a href="#E5NetworkMonitor.__init__">E5NetworkMonitor</a></td> |
63 <td><a href="#E5NetworkMonitor.__init__">E5NetworkMonitor</a></td> |
64 <td>Constructor</td> |
64 <td>Constructor</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#E5NetworkMonitor.__currentChanged">__currentChanged</a></td> |
66 <td><a href="#E5NetworkMonitor.__currentChanged">__currentChanged</a></td> |
67 <td>Private slot to handle a change of the current index.</td> |
67 <td>Private slot to handle a change of the current index.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#E5NetworkMonitor.__showHeaderDetails">__showHeaderDetails</a></td> |
69 <td><a href="#E5NetworkMonitor.__showHeaderDetails">__showHeaderDetails</a></td> |
70 <td>Private slot to show a dialog with the header details.</td> |
70 <td>Private slot to show a dialog with the header details.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#E5NetworkMonitor.closeEvent">closeEvent</a></td> |
72 <td><a href="#E5NetworkMonitor.closeEvent">closeEvent</a></td> |
73 <td>Protected method called upon closing the dialog.</td> |
73 <td>Protected method called upon closing the dialog.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#E5NetworkMonitor.closeMonitor">closeMonitor</a></td> |
75 <td><a href="#E5NetworkMonitor.closeMonitor">closeMonitor</a></td> |
76 <td>Class method to close the monitor dialog.</td> |
76 <td>Class method to close the monitor dialog.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#E5NetworkMonitor.instance">instance</a></td> |
78 <td><a href="#E5NetworkMonitor.instance">instance</a></td> |
79 <td>Class method to get a reference to our singleton.</td> |
79 <td>Class method to get a reference to our singleton.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#E5NetworkMonitor.reject">reject</a></td> |
81 <td><a href="#E5NetworkMonitor.reject">reject</a></td> |
82 <td>Public slot to close the dialog with a Reject status.</td> |
82 <td>Public slot to close the dialog with a Reject status.</td> |
83 </tr> |
83 </tr> |
84 </table> |
84 </table> |
85 <a NAME="E5NetworkMonitor.__init__" ID="E5NetworkMonitor.__init__"></a> |
85 <a NAME="E5NetworkMonitor.__init__" ID="E5NetworkMonitor.__init__"></a> |
86 <h4>E5NetworkMonitor (Constructor)</h4> |
86 <h4>E5NetworkMonitor (Constructor)</h4> |
87 <b>E5NetworkMonitor</b>(<i>networkAccessManager, parent = None</i>) |
87 <b>E5NetworkMonitor</b>(<i>networkAccessManager, parent = None</i>) |
88 <p> |
88 <p> |
89 Constructor |
89 Constructor |
90 </p><dl> |
90 </p><dl> |
91 <dt><i>networkAccessManager</i></dt> |
91 <dt><i>networkAccessManager</i></dt> |
92 <dd> |
92 <dd> |
93 reference to the network access manager |
93 reference to the network access manager |
94 (QNetworkAccessManager) |
94 (QNetworkAccessManager) |
95 </dd><dt><i>parent</i></dt> |
95 </dd><dt><i>parent</i></dt> |
96 <dd> |
96 <dd> |
97 reference to the parent widget (QWidget) |
97 reference to the parent widget (QWidget) |
98 </dd> |
98 </dd> |
99 </dl><a NAME="E5NetworkMonitor.__currentChanged" ID="E5NetworkMonitor.__currentChanged"></a> |
99 </dl><a NAME="E5NetworkMonitor.__currentChanged" ID="E5NetworkMonitor.__currentChanged"></a> |
100 <h4>E5NetworkMonitor.__currentChanged</h4> |
100 <h4>E5NetworkMonitor.__currentChanged</h4> |
101 <b>__currentChanged</b>(<i>current, previous</i>) |
101 <b>__currentChanged</b>(<i>current, previous</i>) |
102 <p> |
102 <p> |
103 Private slot to handle a change of the current index. |
103 Private slot to handle a change of the current index. |
104 </p><dl> |
104 </p><dl> |
105 <dt><i>current</i></dt> |
105 <dt><i>current</i></dt> |
106 <dd> |
106 <dd> |
107 new current index (QModelIndex) |
107 new current index (QModelIndex) |
108 </dd><dt><i>previous</i></dt> |
108 </dd><dt><i>previous</i></dt> |
109 <dd> |
109 <dd> |
110 old current index (QModelIndex) |
110 old current index (QModelIndex) |
111 </dd> |
111 </dd> |
112 </dl><a NAME="E5NetworkMonitor.__showHeaderDetails" ID="E5NetworkMonitor.__showHeaderDetails"></a> |
112 </dl><a NAME="E5NetworkMonitor.__showHeaderDetails" ID="E5NetworkMonitor.__showHeaderDetails"></a> |
113 <h4>E5NetworkMonitor.__showHeaderDetails</h4> |
113 <h4>E5NetworkMonitor.__showHeaderDetails</h4> |
114 <b>__showHeaderDetails</b>(<i>index</i>) |
114 <b>__showHeaderDetails</b>(<i>index</i>) |
115 <p> |
115 <p> |
116 Private slot to show a dialog with the header details. |
116 Private slot to show a dialog with the header details. |
117 </p><dl> |
117 </p><dl> |
118 <dt><i>index</i></dt> |
118 <dt><i>index</i></dt> |
119 <dd> |
119 <dd> |
120 index of the entry to show (QModelIndex) |
120 index of the entry to show (QModelIndex) |
121 </dd> |
121 </dd> |
122 </dl><a NAME="E5NetworkMonitor.closeEvent" ID="E5NetworkMonitor.closeEvent"></a> |
122 </dl><a NAME="E5NetworkMonitor.closeEvent" ID="E5NetworkMonitor.closeEvent"></a> |
123 <h4>E5NetworkMonitor.closeEvent</h4> |
123 <h4>E5NetworkMonitor.closeEvent</h4> |
124 <b>closeEvent</b>(<i>evt</i>) |
124 <b>closeEvent</b>(<i>evt</i>) |
125 <p> |
125 <p> |
126 Protected method called upon closing the dialog. |
126 Protected method called upon closing the dialog. |
127 </p><dl> |
127 </p><dl> |
128 <dt><i>evt</i></dt> |
128 <dt><i>evt</i></dt> |
129 <dd> |
129 <dd> |
130 reference to the close event object (QCloseEvent) |
130 reference to the close event object (QCloseEvent) |
131 </dd> |
131 </dd> |
132 </dl><a NAME="E5NetworkMonitor.closeMonitor" ID="E5NetworkMonitor.closeMonitor"></a> |
132 </dl><a NAME="E5NetworkMonitor.closeMonitor" ID="E5NetworkMonitor.closeMonitor"></a> |
133 <h4>E5NetworkMonitor.closeMonitor</h4> |
133 <h4>E5NetworkMonitor.closeMonitor</h4> |
134 <b>closeMonitor</b>(<i></i>) |
134 <b>closeMonitor</b>(<i></i>) |
135 <p> |
135 <p> |
136 Class method to close the monitor dialog. |
136 Class method to close the monitor dialog. |
137 </p><a NAME="E5NetworkMonitor.instance" ID="E5NetworkMonitor.instance"></a> |
137 </p><a NAME="E5NetworkMonitor.instance" ID="E5NetworkMonitor.instance"></a> |
138 <h4>E5NetworkMonitor.instance</h4> |
138 <h4>E5NetworkMonitor.instance</h4> |
139 <b>instance</b>(<i>networkAccessManager</i>) |
139 <b>instance</b>(<i>networkAccessManager</i>) |
140 <p> |
140 <p> |
141 Class method to get a reference to our singleton. |
141 Class method to get a reference to our singleton. |
142 </p><dl> |
142 </p><dl> |
143 <dt><i>networkAccessManager</i></dt> |
143 <dt><i>networkAccessManager</i></dt> |
144 <dd> |
144 <dd> |
145 reference to the network access manager |
145 reference to the network access manager |
146 (QNetworkAccessManager) |
146 (QNetworkAccessManager) |
147 </dd> |
147 </dd> |
148 </dl><a NAME="E5NetworkMonitor.reject" ID="E5NetworkMonitor.reject"></a> |
148 </dl><a NAME="E5NetworkMonitor.reject" ID="E5NetworkMonitor.reject"></a> |
149 <h4>E5NetworkMonitor.reject</h4> |
149 <h4>E5NetworkMonitor.reject</h4> |
150 <b>reject</b>(<i></i>) |
150 <b>reject</b>(<i></i>) |
151 <p> |
151 <p> |
152 Public slot to close the dialog with a Reject status. |
152 Public slot to close the dialog with a Reject status. |
153 </p> |
153 </p> |
154 <div align="right"><a href="#top">Up</a></div> |
154 <div align="right"><a href="#top">Up</a></div> |
155 <hr /><hr /> |
155 <hr /><hr /> |
156 <a NAME="E5NetworkRequest" ID="E5NetworkRequest"></a> |
156 <a NAME="E5NetworkRequest" ID="E5NetworkRequest"></a> |
157 <h2>E5NetworkRequest</h2> |
157 <h2>E5NetworkRequest</h2> |
158 <p> |
158 <p> |
159 Class for storing all data related to a specific request. |
159 Class for storing all data related to a specific request. |
160 </p> |
160 </p> |
161 <h3>Derived from</h3> |
161 <h3>Derived from</h3> |
162 object |
162 object |
163 <h3>Class Attributes</h3> |
163 <h3>Class Attributes</h3> |
164 <table> |
164 <table> |
192 </table> |
192 </table> |
193 <h3>Methods</h3> |
193 <h3>Methods</h3> |
194 <table> |
194 <table> |
195 <tr> |
195 <tr> |
196 <td><a href="#E5RequestModel.__init__">E5RequestModel</a></td> |
196 <td><a href="#E5RequestModel.__init__">E5RequestModel</a></td> |
197 <td>Constructor</td> |
197 <td>Constructor</td> |
198 </tr><tr> |
198 </tr><tr> |
199 <td><a href="#E5RequestModel.__addReply">__addReply</a></td> |
199 <td><a href="#E5RequestModel.__addReply">__addReply</a></td> |
200 <td>Private slot to add the reply data to the model.</td> |
200 <td>Private slot to add the reply data to the model.</td> |
201 </tr><tr> |
201 </tr><tr> |
202 <td><a href="#E5RequestModel.__addRequest">__addRequest</a></td> |
202 <td><a href="#E5RequestModel.__addRequest">__addRequest</a></td> |
203 <td>Private method to add a request object to the model.</td> |
203 <td>Private method to add a request object to the model.</td> |
204 </tr><tr> |
204 </tr><tr> |
205 <td><a href="#E5RequestModel.__requestCreated">__requestCreated</a></td> |
205 <td><a href="#E5RequestModel.__requestCreated">__requestCreated</a></td> |
206 <td>Private slot handling the creation of a network request.</td> |
206 <td>Private slot handling the creation of a network request.</td> |
207 </tr><tr> |
207 </tr><tr> |
208 <td><a href="#E5RequestModel.columnCount">columnCount</a></td> |
208 <td><a href="#E5RequestModel.columnCount">columnCount</a></td> |
209 <td>Public method to get the number of columns of the model.</td> |
209 <td>Public method to get the number of columns of the model.</td> |
210 </tr><tr> |
210 </tr><tr> |
211 <td><a href="#E5RequestModel.data">data</a></td> |
211 <td><a href="#E5RequestModel.data">data</a></td> |
212 <td>Public method to get data from the model.</td> |
212 <td>Public method to get data from the model.</td> |
213 </tr><tr> |
213 </tr><tr> |
214 <td><a href="#E5RequestModel.headerData">headerData</a></td> |
214 <td><a href="#E5RequestModel.headerData">headerData</a></td> |
215 <td>Public method to get header data from the model.</td> |
215 <td>Public method to get header data from the model.</td> |
216 </tr><tr> |
216 </tr><tr> |
217 <td><a href="#E5RequestModel.removeRows">removeRows</a></td> |
217 <td><a href="#E5RequestModel.removeRows">removeRows</a></td> |
218 <td>Public method to remove entries from the model.</td> |
218 <td>Public method to remove entries from the model.</td> |
219 </tr><tr> |
219 </tr><tr> |
220 <td><a href="#E5RequestModel.rowCount">rowCount</a></td> |
220 <td><a href="#E5RequestModel.rowCount">rowCount</a></td> |
221 <td>Public method to get the number of rows of the model.</td> |
221 <td>Public method to get the number of rows of the model.</td> |
222 </tr> |
222 </tr> |
223 </table> |
223 </table> |
224 <a NAME="E5RequestModel.__init__" ID="E5RequestModel.__init__"></a> |
224 <a NAME="E5RequestModel.__init__" ID="E5RequestModel.__init__"></a> |
225 <h4>E5RequestModel (Constructor)</h4> |
225 <h4>E5RequestModel (Constructor)</h4> |
226 <b>E5RequestModel</b>(<i>networkAccessManager, parent = None</i>) |
226 <b>E5RequestModel</b>(<i>networkAccessManager, parent = None</i>) |
227 <p> |
227 <p> |
228 Constructor |
228 Constructor |
229 </p><dl> |
229 </p><dl> |
230 <dt><i>networkAccessManager</i></dt> |
230 <dt><i>networkAccessManager</i></dt> |
231 <dd> |
231 <dd> |
232 reference to the network access manager |
232 reference to the network access manager |
233 (QNetworkAccessManager) |
233 (QNetworkAccessManager) |
234 </dd><dt><i>parent</i></dt> |
234 </dd><dt><i>parent</i></dt> |
235 <dd> |
235 <dd> |
236 reference to the parent object (QObject) |
236 reference to the parent object (QObject) |
237 </dd> |
237 </dd> |
238 </dl><a NAME="E5RequestModel.__addReply" ID="E5RequestModel.__addReply"></a> |
238 </dl><a NAME="E5RequestModel.__addReply" ID="E5RequestModel.__addReply"></a> |
239 <h4>E5RequestModel.__addReply</h4> |
239 <h4>E5RequestModel.__addReply</h4> |
240 <b>__addReply</b>(<i></i>) |
240 <b>__addReply</b>(<i></i>) |
241 <p> |
241 <p> |
242 Private slot to add the reply data to the model. |
242 Private slot to add the reply data to the model. |
243 </p><a NAME="E5RequestModel.__addRequest" ID="E5RequestModel.__addRequest"></a> |
243 </p><a NAME="E5RequestModel.__addRequest" ID="E5RequestModel.__addRequest"></a> |
244 <h4>E5RequestModel.__addRequest</h4> |
244 <h4>E5RequestModel.__addRequest</h4> |
245 <b>__addRequest</b>(<i>req</i>) |
245 <b>__addRequest</b>(<i>req</i>) |
246 <p> |
246 <p> |
247 Private method to add a request object to the model. |
247 Private method to add a request object to the model. |
248 </p><dl> |
248 </p><dl> |
249 <dt><i>req</i></dt> |
249 <dt><i>req</i></dt> |
250 <dd> |
250 <dd> |
251 reference to the request object (E5NetworkRequest) |
251 reference to the request object (E5NetworkRequest) |
252 </dd> |
252 </dd> |
253 </dl><a NAME="E5RequestModel.__requestCreated" ID="E5RequestModel.__requestCreated"></a> |
253 </dl><a NAME="E5RequestModel.__requestCreated" ID="E5RequestModel.__requestCreated"></a> |
254 <h4>E5RequestModel.__requestCreated</h4> |
254 <h4>E5RequestModel.__requestCreated</h4> |
255 <b>__requestCreated</b>(<i>operation, request, reply</i>) |
255 <b>__requestCreated</b>(<i>operation, request, reply</i>) |
256 <p> |
256 <p> |
257 Private slot handling the creation of a network request. |
257 Private slot handling the creation of a network request. |
258 </p><dl> |
258 </p><dl> |
259 <dt><i>operation</i></dt> |
259 <dt><i>operation</i></dt> |
260 <dd> |
260 <dd> |
261 network operation (QNetworkAccessManager.Operation) |
261 network operation (QNetworkAccessManager.Operation) |
262 </dd><dt><i>request</i></dt> |
262 </dd><dt><i>request</i></dt> |
263 <dd> |
263 <dd> |
264 reference to the request object (QNetworkRequest) |
264 reference to the request object (QNetworkRequest) |
265 </dd><dt><i>reply</i></dt> |
265 </dd><dt><i>reply</i></dt> |
266 <dd> |
266 <dd> |
267 reference to the reply object(QNetworkReply) |
267 reference to the reply object(QNetworkReply) |
268 </dd> |
268 </dd> |
269 </dl><a NAME="E5RequestModel.columnCount" ID="E5RequestModel.columnCount"></a> |
269 </dl><a NAME="E5RequestModel.columnCount" ID="E5RequestModel.columnCount"></a> |
270 <h4>E5RequestModel.columnCount</h4> |
270 <h4>E5RequestModel.columnCount</h4> |
271 <b>columnCount</b>(<i>parent</i>) |
271 <b>columnCount</b>(<i>parent</i>) |
272 <p> |
272 <p> |
273 Public method to get the number of columns of the model. |
273 Public method to get the number of columns of the model. |
274 </p><dl> |
274 </p><dl> |
275 <dt><i>parent</i></dt> |
275 <dt><i>parent</i></dt> |
276 <dd> |
276 <dd> |
277 parent index (QModelIndex) |
277 parent index (QModelIndex) |
278 </dd> |
278 </dd> |
279 </dl><dl> |
279 </dl><dl> |
280 <dt>Returns:</dt> |
280 <dt>Returns:</dt> |
281 <dd> |
281 <dd> |
282 number of columns (integer) |
282 number of columns (integer) |
283 </dd> |
283 </dd> |
284 </dl><a NAME="E5RequestModel.data" ID="E5RequestModel.data"></a> |
284 </dl><a NAME="E5RequestModel.data" ID="E5RequestModel.data"></a> |
285 <h4>E5RequestModel.data</h4> |
285 <h4>E5RequestModel.data</h4> |
286 <b>data</b>(<i>index, role</i>) |
286 <b>data</b>(<i>index, role</i>) |
287 <p> |
287 <p> |
288 Public method to get data from the model. |
288 Public method to get data from the model. |
289 </p><dl> |
289 </p><dl> |
290 <dt><i>index</i></dt> |
290 <dt><i>index</i></dt> |
291 <dd> |
291 <dd> |
292 index to get data for (QModelIndex) |
292 index to get data for (QModelIndex) |
293 </dd><dt><i>role</i></dt> |
293 </dd><dt><i>role</i></dt> |
294 <dd> |
294 <dd> |
295 role of the data to retrieve (integer) |
295 role of the data to retrieve (integer) |
296 </dd> |
296 </dd> |
297 </dl><dl> |
297 </dl><dl> |
298 <dt>Returns:</dt> |
298 <dt>Returns:</dt> |
299 <dd> |
299 <dd> |
300 requested data |
300 requested data |
301 </dd> |
301 </dd> |
302 </dl><a NAME="E5RequestModel.headerData" ID="E5RequestModel.headerData"></a> |
302 </dl><a NAME="E5RequestModel.headerData" ID="E5RequestModel.headerData"></a> |
303 <h4>E5RequestModel.headerData</h4> |
303 <h4>E5RequestModel.headerData</h4> |
304 <b>headerData</b>(<i>section, orientation, role</i>) |
304 <b>headerData</b>(<i>section, orientation, role</i>) |
305 <p> |
305 <p> |
306 Public method to get header data from the model. |
306 Public method to get header data from the model. |
307 </p><dl> |
307 </p><dl> |
308 <dt><i>section</i></dt> |
308 <dt><i>section</i></dt> |
309 <dd> |
309 <dd> |
310 section number (integer) |
310 section number (integer) |
311 </dd><dt><i>orientation</i></dt> |
311 </dd><dt><i>orientation</i></dt> |
312 <dd> |
312 <dd> |
313 orientation (Qt.Orientation) |
313 orientation (Qt.Orientation) |
314 </dd><dt><i>role</i></dt> |
314 </dd><dt><i>role</i></dt> |
315 <dd> |
315 <dd> |
316 role of the data to retrieve (integer) |
316 role of the data to retrieve (integer) |
317 </dd> |
317 </dd> |
318 </dl><dl> |
318 </dl><dl> |
319 <dt>Returns:</dt> |
319 <dt>Returns:</dt> |
320 <dd> |
320 <dd> |
321 requested data |
321 requested data |
322 </dd> |
322 </dd> |
323 </dl><a NAME="E5RequestModel.removeRows" ID="E5RequestModel.removeRows"></a> |
323 </dl><a NAME="E5RequestModel.removeRows" ID="E5RequestModel.removeRows"></a> |
324 <h4>E5RequestModel.removeRows</h4> |
324 <h4>E5RequestModel.removeRows</h4> |
325 <b>removeRows</b>(<i>row, count, parent</i>) |
325 <b>removeRows</b>(<i>row, count, parent</i>) |
326 <p> |
326 <p> |
327 Public method to remove entries from the model. |
327 Public method to remove entries from the model. |
328 </p><dl> |
328 </p><dl> |
329 <dt><i>row</i></dt> |
329 <dt><i>row</i></dt> |
330 <dd> |
330 <dd> |
331 start row (integer) |
331 start row (integer) |
332 </dd><dt><i>count</i></dt> |
332 </dd><dt><i>count</i></dt> |
333 <dd> |
333 <dd> |
334 number of rows to remove (integer) |
334 number of rows to remove (integer) |
335 </dd><dt><i>parent</i></dt> |
335 </dd><dt><i>parent</i></dt> |
336 <dd> |
336 <dd> |
337 parent index (QModelIndex) |
337 parent index (QModelIndex) |
338 </dd> |
338 </dd> |
339 </dl><dl> |
339 </dl><dl> |
340 <dt>Returns:</dt> |
340 <dt>Returns:</dt> |
341 <dd> |
341 <dd> |
342 flag indicating success (boolean) |
342 flag indicating success (boolean) |
343 </dd> |
343 </dd> |
344 </dl><a NAME="E5RequestModel.rowCount" ID="E5RequestModel.rowCount"></a> |
344 </dl><a NAME="E5RequestModel.rowCount" ID="E5RequestModel.rowCount"></a> |
345 <h4>E5RequestModel.rowCount</h4> |
345 <h4>E5RequestModel.rowCount</h4> |
346 <b>rowCount</b>(<i>parent</i>) |
346 <b>rowCount</b>(<i>parent</i>) |
347 <p> |
347 <p> |
348 Public method to get the number of rows of the model. |
348 Public method to get the number of rows of the model. |
349 </p><dl> |
349 </p><dl> |
350 <dt><i>parent</i></dt> |
350 <dt><i>parent</i></dt> |
351 <dd> |
351 <dd> |
352 parent index (QModelIndex) |
352 parent index (QModelIndex) |
353 </dd> |
353 </dd> |
354 </dl><dl> |
354 </dl><dl> |
355 <dt>Returns:</dt> |
355 <dt>Returns:</dt> |
356 <dd> |
356 <dd> |
357 number of columns (integer) |
357 number of columns (integer) |
358 </dd> |
358 </dd> |
359 </dl> |
359 </dl> |
360 <div align="right"><a href="#top">Up</a></div> |
360 <div align="right"><a href="#top">Up</a></div> |
361 <hr /> |
361 <hr /> |
362 </body></html> |
362 </body></html> |