|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.EricNetwork.EricNetworkIcon</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.EricNetwork.EricNetworkIcon</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a statusbar icon tracking the network status. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#EricNetworkIcon">EricNetworkIcon</a></td> |
|
39 <td>Class implementing a statusbar icon tracking the network status.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="EricNetworkIcon" ID="EricNetworkIcon"></a> |
|
50 <h2>EricNetworkIcon</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a statusbar icon tracking the network status. |
|
54 </p> |
|
55 <h3>Signals</h3> |
|
56 <dl> |
|
57 |
|
58 <dt>onlineStateChanged(online)</dt> |
|
59 <dd> |
|
60 emitted to indicate a change of the |
|
61 network state |
|
62 </dd> |
|
63 <dt>reachabilityStateChanged(reachability)</dt> |
|
64 <dd> |
|
65 emitted to indicate a |
|
66 change of the network reachability |
|
67 </dd> |
|
68 </dl> |
|
69 <h3>Derived from</h3> |
|
70 QLabel |
|
71 <h3>Class Attributes</h3> |
|
72 |
|
73 <table> |
|
74 <tr><td>None</td></tr> |
|
75 </table> |
|
76 <h3>Class Methods</h3> |
|
77 |
|
78 <table> |
|
79 <tr><td>None</td></tr> |
|
80 </table> |
|
81 <h3>Methods</h3> |
|
82 |
|
83 <table> |
|
84 |
|
85 <tr> |
|
86 <td><a href="#EricNetworkIcon.__init__">EricNetworkIcon</a></td> |
|
87 <td>Constructor</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#EricNetworkIcon.__reachabilityChanged">__reachabilityChanged</a></td> |
|
91 <td>Private slot handling reachability state changes.</td> |
|
92 </tr> |
|
93 <tr> |
|
94 <td><a href="#EricNetworkIcon.isOnline">isOnline</a></td> |
|
95 <td>Public method to get the online state.</td> |
|
96 </tr> |
|
97 </table> |
|
98 <h3>Static Methods</h3> |
|
99 |
|
100 <table> |
|
101 <tr><td>None</td></tr> |
|
102 </table> |
|
103 |
|
104 <a NAME="EricNetworkIcon.__init__" ID="EricNetworkIcon.__init__"></a> |
|
105 <h4>EricNetworkIcon (Constructor)</h4> |
|
106 <b>EricNetworkIcon</b>(<i>parent=None</i>) |
|
107 |
|
108 <p> |
|
109 Constructor |
|
110 </p> |
|
111 <dl> |
|
112 |
|
113 <dt><i>parent</i> (QWidget)</dt> |
|
114 <dd> |
|
115 reference to the parent widget |
|
116 </dd> |
|
117 </dl> |
|
118 <a NAME="EricNetworkIcon.__reachabilityChanged" ID="EricNetworkIcon.__reachabilityChanged"></a> |
|
119 <h4>EricNetworkIcon.__reachabilityChanged</h4> |
|
120 <b>__reachabilityChanged</b>(<i>reachability</i>) |
|
121 |
|
122 <p> |
|
123 Private slot handling reachability state changes. |
|
124 </p> |
|
125 <dl> |
|
126 |
|
127 <dt><i>reachability</i> (QNetworkInformation.Reachability)</dt> |
|
128 <dd> |
|
129 new reachability state |
|
130 </dd> |
|
131 </dl> |
|
132 <a NAME="EricNetworkIcon.isOnline" ID="EricNetworkIcon.isOnline"></a> |
|
133 <h4>EricNetworkIcon.isOnline</h4> |
|
134 <b>isOnline</b>(<i></i>) |
|
135 |
|
136 <p> |
|
137 Public method to get the online state. |
|
138 </p> |
|
139 <dl> |
|
140 <dt>Return:</dt> |
|
141 <dd> |
|
142 online state |
|
143 </dd> |
|
144 </dl> |
|
145 <dl> |
|
146 <dt>Return Type:</dt> |
|
147 <dd> |
|
148 bool |
|
149 </dd> |
|
150 </dl> |
|
151 <div align="right"><a href="#top">Up</a></div> |
|
152 <hr /> |
|
153 </body></html> |