|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Helpviewer.Network.NetworkReply</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Helpviewer.Network.NetworkReply</h1> |
|
12 <p> |
|
13 Module implementing a network reply object for special data. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#NetworkReply">NetworkReply</a></td> |
|
23 <td>Class implementing a QNetworkReply subclass for special data.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="NetworkReply" ID="NetworkReply"></a> |
|
32 <h2>NetworkReply</h2> |
|
33 <p> |
|
34 Class implementing a QNetworkReply subclass for special data. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QNetworkReply |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#NetworkReply.__init__">NetworkReply</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#NetworkReply.abort">abort</a></td> |
|
49 <td>Public slot to abort the operation.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#NetworkReply.bytesAvailable">bytesAvailable</a></td> |
|
52 <td>Public method to determined the bytes available for being read.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#NetworkReply.readData">readData</a></td> |
|
55 <td>Protected method to retrieve data from the reply object.</td> |
|
56 </tr> |
|
57 </table> |
|
58 <a NAME="NetworkReply.__init__" ID="NetworkReply.__init__"></a> |
|
59 <h4>NetworkReply (Constructor)</h4> |
|
60 <b>NetworkReply</b>(<i>request, fileData, mimeType</i>) |
|
61 <p> |
|
62 Constructor |
|
63 </p><dl> |
|
64 <dt><i>request</i></dt> |
|
65 <dd> |
|
66 reference to the request object (QNetworkRequest) |
|
67 </dd><dt><i>fileData</i></dt> |
|
68 <dd> |
|
69 reference to the data buffer (QByteArray) |
|
70 </dd><dt><i>mimeType</i></dt> |
|
71 <dd> |
|
72 for the reply (string) |
|
73 </dd> |
|
74 </dl><a NAME="NetworkReply.abort" ID="NetworkReply.abort"></a> |
|
75 <h4>NetworkReply.abort</h4> |
|
76 <b>abort</b>(<i></i>) |
|
77 <p> |
|
78 Public slot to abort the operation. |
|
79 </p><a NAME="NetworkReply.bytesAvailable" ID="NetworkReply.bytesAvailable"></a> |
|
80 <h4>NetworkReply.bytesAvailable</h4> |
|
81 <b>bytesAvailable</b>(<i></i>) |
|
82 <p> |
|
83 Public method to determined the bytes available for being read. |
|
84 </p><dl> |
|
85 <dt>Returns:</dt> |
|
86 <dd> |
|
87 bytes available (integer) |
|
88 </dd> |
|
89 </dl><a NAME="NetworkReply.readData" ID="NetworkReply.readData"></a> |
|
90 <h4>NetworkReply.readData</h4> |
|
91 <b>readData</b>(<i>maxlen</i>) |
|
92 <p> |
|
93 Protected method to retrieve data from the reply object. |
|
94 </p><dl> |
|
95 <dt><i>maxlen</i></dt> |
|
96 <dd> |
|
97 maximum number of bytes to read (integer) |
|
98 </dd> |
|
99 </dl><dl> |
|
100 <dt>Returns:</dt> |
|
101 <dd> |
|
102 string containing the data (string) |
|
103 </dd> |
|
104 </dl> |
|
105 <div align="right"><a href="#top">Up</a></div> |
|
106 <hr /> |
|
107 </body></html> |