Documentation/Source/eric5.Utilities.BackgroundService.html

changeset 3579
eccd12461319
parent 3515
1b8381afe38f
child 3591
2f2a4a76dd22
equal deleted inserted replaced
3576:83b535c23264 3579:eccd12461319
75 </tr><tr> 75 </tr><tr>
76 <td><a href="#BackgroundService.enqueueRequest">enqueueRequest</a></td> 76 <td><a href="#BackgroundService.enqueueRequest">enqueueRequest</a></td>
77 <td>Implement a queued processing of incomming events.</td> 77 <td>Implement a queued processing of incomming events.</td>
78 </tr><tr> 78 </tr><tr>
79 <td><a href="#BackgroundService.on_disconnectSocket">on_disconnectSocket</a></td> 79 <td><a href="#BackgroundService.on_disconnectSocket">on_disconnectSocket</a></td>
80 <td>Slot when connection to a client is lost.</td> 80 <td>Slot is called when connection to a client is lost.</td>
81 </tr><tr> 81 </tr><tr>
82 <td><a href="#BackgroundService.on_newConnection">on_newConnection</a></td> 82 <td><a href="#BackgroundService.on_newConnection">on_newConnection</a></td>
83 <td>Slot for new incomming connections from the clients.</td> 83 <td>Slot for new incomming connections from the clients.</td>
84 </tr><tr> 84 </tr><tr>
85 <td><a href="#BackgroundService.preferencesOrProjectChanged">preferencesOrProjectChanged</a></td>
86 <td>Public slot to restart the built in languages.</td>
87 </tr><tr>
88 <td><a href="#BackgroundService.restartService">restartService</a></td>
89 <td>Public method to restart a given lanuage.</td>
90 </tr><tr>
85 <td><a href="#BackgroundService.serviceConnect">serviceConnect</a></td> 91 <td><a href="#BackgroundService.serviceConnect">serviceConnect</a></td>
86 <td>Announce a new service to the background service/ client.</td> 92 <td>Announce a new service to the background service/ client.</td>
87 </tr><tr> 93 </tr><tr>
88 <td><a href="#BackgroundService.serviceDisconnect">serviceDisconnect</a></td> 94 <td><a href="#BackgroundService.serviceDisconnect">serviceDisconnect</a></td>
89 <td>Remove the service from the service list.</td> 95 <td>Remove the service from the service list.</td>
90 </tr><tr> 96 </tr><tr>
91 <td><a href="#BackgroundService.shutdown">shutdown</a></td> 97 <td><a href="#BackgroundService.shutdown">shutdown</a></td>
92 <td>Cleanup the connections and processes when Eric is shuting down.</td> 98 <td>Cleanup the connections and processes when eric is shuting down.</td>
93 </tr> 99 </tr>
94 </table> 100 </table>
95 <h3>Static Methods</h3> 101 <h3>Static Methods</h3>
96 <table> 102 <table>
97 <tr><td>None</td></tr> 103 <tr><td>None</td></tr>
178 </dd> 184 </dd>
179 </dl><a NAME="BackgroundService.on_disconnectSocket" ID="BackgroundService.on_disconnectSocket"></a> 185 </dl><a NAME="BackgroundService.on_disconnectSocket" ID="BackgroundService.on_disconnectSocket"></a>
180 <h4>BackgroundService.on_disconnectSocket</h4> 186 <h4>BackgroundService.on_disconnectSocket</h4>
181 <b>on_disconnectSocket</b>(<i>lang</i>) 187 <b>on_disconnectSocket</b>(<i>lang</i>)
182 <p> 188 <p>
183 Slot when connection to a client is lost. 189 Slot is called when connection to a client is lost.
184 </p><dl> 190 </p><dl>
185 <dt><i>lang</i></dt> 191 <dt><i>lang</i></dt>
186 <dd> 192 <dd>
187 client language which connection is lost (str) 193 client language which connection is lost (str)
188 </dd> 194 </dd>
189 </dl><a NAME="BackgroundService.on_newConnection" ID="BackgroundService.on_newConnection"></a> 195 </dl><a NAME="BackgroundService.on_newConnection" ID="BackgroundService.on_newConnection"></a>
190 <h4>BackgroundService.on_newConnection</h4> 196 <h4>BackgroundService.on_newConnection</h4>
191 <b>on_newConnection</b>(<i></i>) 197 <b>on_newConnection</b>(<i></i>)
192 <p> 198 <p>
193 Slot for new incomming connections from the clients. 199 Slot for new incomming connections from the clients.
194 </p><a NAME="BackgroundService.serviceConnect" ID="BackgroundService.serviceConnect"></a> 200 </p><a NAME="BackgroundService.preferencesOrProjectChanged" ID="BackgroundService.preferencesOrProjectChanged"></a>
201 <h4>BackgroundService.preferencesOrProjectChanged</h4>
202 <b>preferencesOrProjectChanged</b>(<i></i>)
203 <p>
204 Public slot to restart the built in languages.
205 </p><a NAME="BackgroundService.restartService" ID="BackgroundService.restartService"></a>
206 <h4>BackgroundService.restartService</h4>
207 <b>restartService</b>(<i>language, forceKill=False</i>)
208 <p>
209 Public method to restart a given lanuage.
210 </p><dl>
211 <dt><i>language</i></dt>
212 <dd>
213 to restart (str)
214 </dd><dt><i>forceKill=</i></dt>
215 <dd>
216 flag to kill a running task (bool)
217 </dd>
218 </dl><a NAME="BackgroundService.serviceConnect" ID="BackgroundService.serviceConnect"></a>
195 <h4>BackgroundService.serviceConnect</h4> 219 <h4>BackgroundService.serviceConnect</h4>
196 <b>serviceConnect</b>(<i>fx, lang, modulepath, module, callback, onErrorCallback=None</i>) 220 <b>serviceConnect</b>(<i>fx, lang, modulepath, module, callback, onErrorCallback=None</i>)
197 <p> 221 <p>
198 Announce a new service to the background service/ client. 222 Announce a new service to the background service/ client.
199 </p><dl> 223 </p><dl>
231 </dd> 255 </dd>
232 </dl><a NAME="BackgroundService.shutdown" ID="BackgroundService.shutdown"></a> 256 </dl><a NAME="BackgroundService.shutdown" ID="BackgroundService.shutdown"></a>
233 <h4>BackgroundService.shutdown</h4> 257 <h4>BackgroundService.shutdown</h4>
234 <b>shutdown</b>(<i></i>) 258 <b>shutdown</b>(<i></i>)
235 <p> 259 <p>
236 Cleanup the connections and processes when Eric is shuting down. 260 Cleanup the connections and processes when eric is shuting down.
237 </p> 261 </p>
238 <div align="right"><a href="#top">Up</a></div> 262 <div align="right"><a href="#top">Up</a></div>
239 <hr /> 263 <hr />
240 </body></html> 264 </body></html>

eric ide

mercurial