Documentation/Source/eric5.Utilities.SingleApplication.html

changeset 17
edde1fe80b3e
child 21
b88a0e6268bd
equal deleted inserted replaced
16:892c1787d666 17:edde1fe80b3e
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.Utilities.SingleApplication</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.Utilities.SingleApplication</h1>
12 <p>
13 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114; &#97;&#110;&#100; &#99;&#108;&#105;&#101;&#110;&#116;.
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="#SingleApplicationClient">SingleApplicationClient</a></td>
23 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#99;&#108;&#105;&#101;&#110;&#116; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.</td>
24 </tr><tr>
25 <td><a href="#SingleApplicationServer">SingleApplicationServer</a></td>
26 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.</td>
27 </tr>
28 </table>
29 <h3>Functions</h3>
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <hr /><hr />
34 <a NAME="SingleApplicationClient" ID="SingleApplicationClient"></a>
35 <h2>SingleApplicationClient</h2>
36 <p>
37 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#99;&#108;&#105;&#101;&#110;&#116; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
38 </p>
39 <h3>Derived from</h3>
40 object
41 <h3>Class Attributes</h3>
42 <table>
43 <tr><td>None</td></tr>
44 </table>
45 <h3>Methods</h3>
46 <table>
47 <tr>
48 <td><a href="#SingleApplicationClient.__init__">SingleApplicationClient</a></td>
49 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
50 </tr><tr>
51 <td><a href="#SingleApplicationClient.connect">connect</a></td>
52 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#111;&#110;&#110;&#101;&#99;&#116; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#99;&#108;&#105;&#101;&#110;&#116; &#116;&#111; &#105;&#116;&#115; &#115;&#101;&#114;v&#101;&#114;.</td>
53 </tr><tr>
54 <td><a href="#SingleApplicationClient.disconnect">disconnect</a></td>
55 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#105;&#115;&#99;&#111;&#110;&#110;&#101;&#99;&#116; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#83;&#105;&#110;&#103;&#108;&#101; &#65;&#112;&#112;&#108;&#105;&#111;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114;.</td>
56 </tr><tr>
57 <td><a href="#SingleApplicationClient.errstr">errstr</a></td>
58 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#117;&#114;&#110; &#97; &#109;&#101;&#97;&#110;&#105;&#110;&#103;&#102;&#117;&#108; &#101;&#114;&#114;&#111;&#114; &#115;&#116;&#114;&#105;&#110;&#103; &#102;&#111;&#114; &#116;&#104;&#101; &#108;&#97;&#115;&#116; &#101;&#114;&#114;&#111;&#114;.</td>
59 </tr><tr>
60 <td><a href="#SingleApplicationClient.processArgs">processArgs</a></td>
61 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#114;&#111;&#99;&#101;&#115;&#115; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#108;&#105;&#110;&#101; &#97;&#114;&#103;&#115; &#112;&#97;&#115;&#115;&#101;&#100; &#116;&#111; &#116;&#104;&#101; &#85;&#73;.</td>
62 </tr><tr>
63 <td><a href="#SingleApplicationClient.sendCommand">sendCommand</a></td>
64 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#110;&#100; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#116;&#111; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114;.</td>
65 </tr>
66 </table>
67 <a NAME="SingleApplicationClient.__init__" ID="SingleApplicationClient.__init__"></a>
68 <h4>SingleApplicationClient (Constructor)</h4>
69 <b>SingleApplicationClient</b>(<i>name</i>)
70 <p>
71 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
72 </p><dl>
73 <dt><i>name</i></dt>
74 <dd>
75 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#108;&#111;&#99;&#97;&#108; &#115;&#101;&#114;v&#101;&#114; &#116;&#111; &#99;&#111;&#110;&#110;&#101;&#99;&#116; &#116;&#111; (&#115;&#116;&#114;&#105;&#110;&#103;)
76 </dd>
77 </dl><a NAME="SingleApplicationClient.connect" ID="SingleApplicationClient.connect"></a>
78 <h4>SingleApplicationClient.connect</h4>
79 <b>connect</b>(<i></i>)
80 <p>
81 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#111;&#110;&#110;&#101;&#99;&#116; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#99;&#108;&#105;&#101;&#110;&#116; &#116;&#111; &#105;&#116;&#115; &#115;&#101;&#114;v&#101;&#114;.
82 </p><dl>
83 <dt>Returns:</dt>
84 <dd>
85 v&#97;&#108;&#117;&#101; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; &#111;&#114; &#97;&#110; &#101;&#114;&#114;&#111;&#114; &#110;&#117;&#109;&#98;&#101;&#114;. &#86;&#97;&#108;&#117;&#101; &#105;&#115; &#111;&#110;&#101; &#111;&#102;&#58;
86 &#60;&#116;&#97;&#98;&#108;&#101;&#62;
87 &#60;&#116;&#114;&#62;&#60;&#116;&#100;&#62;&#48;&#60;/&#116;&#100;&#62;&#60;&#116;&#100;&#62;&#78;&#111; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#105;&#115; &#114;&#117;&#110;&#110;&#105;&#110;&#103;&#60;/&#116;&#100;&#62;&#60;/&#116;&#114;&#62;
88 &#60;&#116;&#114;&#62;&#60;&#116;&#100;&#62;&#49;&#60;/&#116;&#100;&#62;&#60;&#116;&#100;&#62;&#65;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#105;&#115; &#97;&#108;&#114;&#101;&#97;&#100;y &#114;&#117;&#110;&#110;&#105;&#110;&#103;&#60;/&#116;&#100;&#62;&#60;/&#116;&#114;&#62;
89 &#60;/&#116;&#97;&#98;&#108;&#101;&#62;
90 </dd>
91 </dl><a NAME="SingleApplicationClient.disconnect" ID="SingleApplicationClient.disconnect"></a>
92 <h4>SingleApplicationClient.disconnect</h4>
93 <b>disconnect</b>(<i></i>)
94 <p>
95 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#100;&#105;&#115;&#99;&#111;&#110;&#110;&#101;&#99;&#116; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#83;&#105;&#110;&#103;&#108;&#101; &#65;&#112;&#112;&#108;&#105;&#111;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114;.
96 </p><a NAME="SingleApplicationClient.errstr" ID="SingleApplicationClient.errstr"></a>
97 <h4>SingleApplicationClient.errstr</h4>
98 <b>errstr</b>(<i></i>)
99 <p>
100 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#117;&#114;&#110; &#97; &#109;&#101;&#97;&#110;&#105;&#110;&#103;&#102;&#117;&#108; &#101;&#114;&#114;&#111;&#114; &#115;&#116;&#114;&#105;&#110;&#103; &#102;&#111;&#114; &#116;&#104;&#101; &#108;&#97;&#115;&#116; &#101;&#114;&#114;&#111;&#114;.
101 </p><dl>
102 <dt>Returns:</dt>
103 <dd>
104 &#101;&#114;&#114;&#111;&#114; &#115;&#116;&#114;&#105;&#110;&#103; &#102;&#111;&#114; &#116;&#104;&#101; &#108;&#97;&#115;&#116; &#101;&#114;&#114;&#111;&#114; (&#115;&#116;&#114;&#105;&#110;&#103;)
105 </dd>
106 </dl><a NAME="SingleApplicationClient.processArgs" ID="SingleApplicationClient.processArgs"></a>
107 <h4>SingleApplicationClient.processArgs</h4>
108 <b>processArgs</b>(<i>args</i>)
109 <p>
110 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#114;&#111;&#99;&#101;&#115;&#115; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#108;&#105;&#110;&#101; &#97;&#114;&#103;&#115; &#112;&#97;&#115;&#115;&#101;&#100; &#116;&#111; &#116;&#104;&#101; &#85;&#73;.
111 </p><p>
112 &#60;&#98;&#62;&#78;&#111;&#116;&#101;&#60;/&#98;&#62;&#58; &#84;&#104;&#105;&#115; &#109;&#101;&#116;&#104;&#111;&#100; &#109;&#117;&#115;&#116; &#98;&#101; &#111;v&#101;&#114;&#114;&#105;&#100;&#100;&#101;&#110; &#98;y &#115;&#117;&#98;&#99;&#108;&#97;&#115;&#115;&#101;&#115;.
113 </p><dl>
114 <dt><i>args</i></dt>
115 <dd>
116 &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#108;&#105;&#110;&#101; &#97;&#114;&#103;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;)
117 </dd>
118 </dl><a NAME="SingleApplicationClient.sendCommand" ID="SingleApplicationClient.sendCommand"></a>
119 <h4>SingleApplicationClient.sendCommand</h4>
120 <b>sendCommand</b>(<i>cmd</i>)
121 <p>
122 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#110;&#100; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#116;&#111; &#116;&#104;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114;.
123 </p><dl>
124 <dt><i>cmd</i></dt>
125 <dd>
126 &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#116;&#111; &#98;&#101; &#115;&#101;&#110;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;)
127 </dd>
128 </dl>
129 <div align="right"><a href="#top">Up</a></div>
130 <hr /><hr />
131 <a NAME="SingleApplicationServer" ID="SingleApplicationServer"></a>
132 <h2>SingleApplicationServer</h2>
133 <p>
134 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#105;&#110;&#103;&#108;&#101; &#97;&#112;&#112;&#108;&#105;&#99;&#97;&#116;&#105;&#111;&#110; &#115;&#101;&#114;v&#101;&#114; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
135 </p>
136 <h3>Derived from</h3>
137 QLocalServer
138 <h3>Class Attributes</h3>
139 <table>
140 <tr><td>None</td></tr>
141 </table>
142 <h3>Methods</h3>
143 <table>
144 <tr>
145 <td><a href="#SingleApplicationServer.__init__">SingleApplicationServer</a></td>
146 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
147 </tr><tr>
148 <td><a href="#SingleApplicationServer.__disconnected">__disconnected</a></td>
149 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#108;&#111;&#115;&#117;&#114;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#111;&#99;&#107;&#101;&#116;.</td>
150 </tr><tr>
151 <td><a href="#SingleApplicationServer.__newConnection">__newConnection</a></td>
152 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#110;&#101;w &#99;&#111;&#110;&#110;&#101;&#99;&#116;&#105;&#111;&#110;.</td>
153 </tr><tr>
154 <td><a href="#SingleApplicationServer.__parseLine">__parseLine</a></td>
155 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#99;&#108;&#105;&#101;&#110;&#116;.</td>
156 </tr><tr>
157 <td><a href="#SingleApplicationServer.handleCommand">handleCommand</a></td>
158 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#115;&#101;&#110;&#116; &#98;y &#116;&#104;&#101; &#99;&#108;&#105;&#101;&#110;&#116;.</td>
159 </tr><tr>
160 <td><a href="#SingleApplicationServer.shutdown">shutdown</a></td>
161 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#117;&#115;&#101;&#100; &#116;&#111; &#115;&#104;&#117;&#116; &#100;&#111;w&#110; &#116;&#104;&#101; &#115;&#101;&#114;v&#101;&#114;.</td>
162 </tr>
163 </table>
164 <a NAME="SingleApplicationServer.__init__" ID="SingleApplicationServer.__init__"></a>
165 <h4>SingleApplicationServer (Constructor)</h4>
166 <b>SingleApplicationServer</b>(<i>name</i>)
167 <p>
168 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
169 </p><dl>
170 <dt><i>name</i></dt>
171 <dd>
172 &#110;&#97;&#109;&#101; &#116;&#104;&#105;&#115; &#115;&#101;&#114;v&#101;&#114; &#105;&#115; &#108;&#105;&#115;&#116;&#101;&#110;&#105;&#110;&#103; &#116;&#111; (&#115;&#116;&#114;&#105;&#110;&#103;)
173 </dd>
174 </dl><a NAME="SingleApplicationServer.__disconnected" ID="SingleApplicationServer.__disconnected"></a>
175 <h4>SingleApplicationServer.__disconnected</h4>
176 <b>__disconnected</b>(<i></i>)
177 <p>
178 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#108;&#111;&#115;&#117;&#114;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#111;&#99;&#107;&#101;&#116;.
179 </p><a NAME="SingleApplicationServer.__newConnection" ID="SingleApplicationServer.__newConnection"></a>
180 <h4>SingleApplicationServer.__newConnection</h4>
181 <b>__newConnection</b>(<i></i>)
182 <p>
183 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#110;&#101;w &#99;&#111;&#110;&#110;&#101;&#99;&#116;&#105;&#111;&#110;.
184 </p><a NAME="SingleApplicationServer.__parseLine" ID="SingleApplicationServer.__parseLine"></a>
185 <h4>SingleApplicationServer.__parseLine</h4>
186 <b>__parseLine</b>(<i></i>)
187 <p>
188 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#99;&#108;&#105;&#101;&#110;&#116;.
189 </p><a NAME="SingleApplicationServer.handleCommand" ID="SingleApplicationServer.handleCommand"></a>
190 <h4>SingleApplicationServer.handleCommand</h4>
191 <b>handleCommand</b>(<i>cmd, params</i>)
192 <p>
193 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#111;&#109;&#109;&#97;&#110;&#100; &#115;&#101;&#110;&#116; &#98;y &#116;&#104;&#101; &#99;&#108;&#105;&#101;&#110;&#116;.
194 </p><p>
195 &#60;&#98;&#62;&#78;&#111;&#116;&#101;&#60;/&#98;&#62;&#58; &#84;&#104;&#105;&#115; &#109;&#101;&#116;&#104;&#111;&#100; &#109;&#117;&#115;&#116; &#98;&#101; &#111;v&#101;&#114;&#114;&#105;&#100;&#100;&#101;&#110; &#98;y &#115;&#117;&#98;&#99;&#108;&#97;&#115;&#115;&#101;&#115;.
196 </p><dl>
197 <dt><i>cmd</i></dt>
198 <dd>
199 &#99;&#111;&#109;&#109;&#97;&#110;&#100;&#115;&#116;&#114;&#105;&#110;&#103; (&#115;&#116;&#114;&#105;&#110;&#103;)
200 </dd><dt><i>params</i></dt>
201 <dd>
202 &#112;&#97;&#114;&#97;&#109;&#101;&#116;&#101;&#114;&#115;&#116;&#114;&#105;&#110;&#103; (&#115;&#116;&#114;&#105;&#110;&#103;)
203 </dd>
204 </dl><a NAME="SingleApplicationServer.shutdown" ID="SingleApplicationServer.shutdown"></a>
205 <h4>SingleApplicationServer.shutdown</h4>
206 <b>shutdown</b>(<i></i>)
207 <p>
208 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#117;&#115;&#101;&#100; &#116;&#111; &#115;&#104;&#117;&#116; &#100;&#111;w&#110; &#116;&#104;&#101; &#115;&#101;&#114;v&#101;&#114;.
209 </p>
210 <div align="right"><a href="#top">Up</a></div>
211 <hr />
212 </body></html>

eric ide

mercurial