~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/Documentation/Source/eric4.Utilities.SingleApplication.html

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>eric4.Utilities.SingleApplication</title>
 
6
<style>
 
7
body {
 
8
    background:white;
 
9
    margin: 0em 1em 10em 1em;
 
10
    color: black;
 
11
}
 
12
 
 
13
h1 { color: white; background: #4FA4FF; }
 
14
h2 { color: white; background: #4FA4FF; }
 
15
h3 { color: white; background: #00557F; }
 
16
h4 { color: white; background: #00557F; }
 
17
    
 
18
a { color: #AA5500; }
 
19
 
 
20
</style>
 
21
</head>
 
22
<body><a NAME="top" ID="top"></a>
 
23
<h1>eric4.Utilities.SingleApplication</h1>
 
24
<p>
 
25
Module implementing the single application server and client.
 
26
</p>
 
27
<h3>Classes</h3>
 
28
<table>
 
29
<tr>
 
30
<td><a href="#SingleApplicationClient">SingleApplicationClient</a></td>
 
31
<td>Class implementing the single application client base class.</td>
 
32
</tr><tr>
 
33
<td><a href="#SingleApplicationServer">SingleApplicationServer</a></td>
 
34
<td>Class implementing the single application server base class.</td>
 
35
</tr>
 
36
</table>
 
37
<h3>Functions</h3>
 
38
<table>
 
39
<tr><td>None</td></tr>
 
40
</table>
 
41
<hr /><hr />
 
42
<a NAME="SingleApplicationClient" ID="SingleApplicationClient"></a>
 
43
<h2>SingleApplicationClient</h2>
 
44
<p>
 
45
    Class implementing the single application client base class.
 
46
</p>
 
47
<h3>Derived from</h3>
 
48
object
 
49
<h3>Methods</h3>
 
50
<table>
 
51
<tr>
 
52
<td><a href="#SingleApplicationClient.__init__">SingleApplicationClient</a></td>
 
53
<td>Constructor</td>
 
54
</tr><tr>
 
55
<td><a href="#SingleApplicationClient.connect">connect</a></td>
 
56
<td>Public method to connect the single application client to its server.</td>
 
57
</tr><tr>
 
58
<td><a href="#SingleApplicationClient.disconnect">disconnect</a></td>
 
59
<td>Public method to disconnect from the Single Appliocation server.</td>
 
60
</tr><tr>
 
61
<td><a href="#SingleApplicationClient.errstr">errstr</a></td>
 
62
<td>Public method to return a meaningful error string for the last error.</td>
 
63
</tr><tr>
 
64
<td><a href="#SingleApplicationClient.processArgs">processArgs</a></td>
 
65
<td>Public method to process the command line args passed to the UI.</td>
 
66
</tr><tr>
 
67
<td><a href="#SingleApplicationClient.sendCommand">sendCommand</a></td>
 
68
<td>Public method to send the command to the application server.</td>
 
69
</tr>
 
70
</table>
 
71
<p><a NAME="SingleApplicationClient.__init__" ID="SingleApplicationClient.__init__"></a>
 
72
<h4>SingleApplicationClient (Constructor)</h4>
 
73
<b>SingleApplicationClient</b>(<i>pidFile</i>)
 
74
<p>
 
75
        Constructor
 
76
</p><dl>
 
77
<dt><i>pidFile</i></dt>
 
78
<dd>
 
79
filename of the PID file used to get some interface
 
80
            informations
 
81
</dd>
 
82
</dl><a NAME="SingleApplicationClient.connect" ID="SingleApplicationClient.connect"></a>
 
83
<h4>SingleApplicationClient.connect</h4>
 
84
<b>connect</b>(<i></i>)
 
85
<p>
 
86
        Public method to connect the single application client to its server.
 
87
</p><dl>
 
88
<dt>Returns:</dt>
 
89
<dd>
 
90
value indicating success or an error number. Value is one of:
 
91
            <table>
 
92
                <tr><td>0</td><td>No application is running</td></tr>
 
93
                <tr><td>1</td><td>Application is already running</td></tr>
 
94
                <tr><td>-1</td><td>The lock file could not be read</td></tr>
 
95
                <tr><td>-2</td><td>The lock file is corrupt</td></tr>
 
96
            </table>
 
97
</dd>
 
98
</dl><a NAME="SingleApplicationClient.disconnect" ID="SingleApplicationClient.disconnect"></a>
 
99
<h4>SingleApplicationClient.disconnect</h4>
 
100
<b>disconnect</b>(<i></i>)
 
101
<p>
 
102
        Public method to disconnect from the Single Appliocation server.
 
103
</p><a NAME="SingleApplicationClient.errstr" ID="SingleApplicationClient.errstr"></a>
 
104
<h4>SingleApplicationClient.errstr</h4>
 
105
<b>errstr</b>(<i></i>)
 
106
<p>
 
107
        Public method to return a meaningful error string for the last error.
 
108
</p><dl>
 
109
<dt>Returns:</dt>
 
110
<dd>
 
111
error string for the last error (string)
 
112
</dd>
 
113
</dl><a NAME="SingleApplicationClient.processArgs" ID="SingleApplicationClient.processArgs"></a>
 
114
<h4>SingleApplicationClient.processArgs</h4>
 
115
<b>processArgs</b>(<i>args</i>)
 
116
<p>
 
117
        Public method to process the command line args passed to the UI.
 
118
</p><p>
 
119
        <b>Note</b>: This method must be overridden by subclasses.
 
120
</p><dl>
 
121
<dt><i>args</i></dt>
 
122
<dd>
 
123
command line args (list of strings)
 
124
</dd>
 
125
</dl><a NAME="SingleApplicationClient.sendCommand" ID="SingleApplicationClient.sendCommand"></a>
 
126
<h4>SingleApplicationClient.sendCommand</h4>
 
127
<b>sendCommand</b>(<i>cmd</i>)
 
128
<p>
 
129
        Public method to send the command to the application server.
 
130
</p><dl>
 
131
<dt><i>cmd</i></dt>
 
132
<dd>
 
133
command to be sent (string)
 
134
</dd>
 
135
</dl></p>
 
136
<div align="right"><a href="#top">Up</a></div>
 
137
<hr /><hr />
 
138
<a NAME="SingleApplicationServer" ID="SingleApplicationServer"></a>
 
139
<h2>SingleApplicationServer</h2>
 
140
<p>
 
141
    Class implementing the single application server base class.
 
142
</p>
 
143
<h3>Derived from</h3>
 
144
QTcpServer
 
145
<h3>Methods</h3>
 
146
<table>
 
147
<tr>
 
148
<td><a href="#SingleApplicationServer.__init__">SingleApplicationServer</a></td>
 
149
<td>Constructor</td>
 
150
</tr><tr>
 
151
<td><a href="#SingleApplicationServer.__disconnected">__disconnected</a></td>
 
152
<td>Private method to handle the closure of the socket.</td>
 
153
</tr><tr>
 
154
<td><a href="#SingleApplicationServer.__newConnection">__newConnection</a></td>
 
155
<td>Private slot to handle a new connection.</td>
 
156
</tr><tr>
 
157
<td><a href="#SingleApplicationServer.__parseLine">__parseLine</a></td>
 
158
<td>Private method to handle data from the client.</td>
 
159
</tr><tr>
 
160
<td><a href="#SingleApplicationServer.handleCommand">handleCommand</a></td>
 
161
<td>Public slot to handle the command sent by the client.</td>
 
162
</tr><tr>
 
163
<td><a href="#SingleApplicationServer.shutdown">shutdown</a></td>
 
164
<td>Public method used to shut down the server.</td>
 
165
</tr>
 
166
</table>
 
167
<p><a NAME="SingleApplicationServer.__init__" ID="SingleApplicationServer.__init__"></a>
 
168
<h4>SingleApplicationServer (Constructor)</h4>
 
169
<b>SingleApplicationServer</b>(<i>pidFile</i>)
 
170
<p>
 
171
        Constructor
 
172
</p><dl>
 
173
<dt><i>pidFile</i></dt>
 
174
<dd>
 
175
filename of the PID file used to record some interface
 
176
            informations
 
177
</dd>
 
178
</dl><a NAME="SingleApplicationServer.__disconnected" ID="SingleApplicationServer.__disconnected"></a>
 
179
<h4>SingleApplicationServer.__disconnected</h4>
 
180
<b>__disconnected</b>(<i></i>)
 
181
<p>
 
182
        Private method to handle the closure of the socket.
 
183
</p><a NAME="SingleApplicationServer.__newConnection" ID="SingleApplicationServer.__newConnection"></a>
 
184
<h4>SingleApplicationServer.__newConnection</h4>
 
185
<b>__newConnection</b>(<i></i>)
 
186
<p>
 
187
        Private slot to handle a new connection.
 
188
</p><a NAME="SingleApplicationServer.__parseLine" ID="SingleApplicationServer.__parseLine"></a>
 
189
<h4>SingleApplicationServer.__parseLine</h4>
 
190
<b>__parseLine</b>(<i></i>)
 
191
<p>
 
192
        Private method to handle data from the client.
 
193
</p><a NAME="SingleApplicationServer.handleCommand" ID="SingleApplicationServer.handleCommand"></a>
 
194
<h4>SingleApplicationServer.handleCommand</h4>
 
195
<b>handleCommand</b>(<i>cmd, params</i>)
 
196
<p>
 
197
        Public slot to handle the command sent by the client.
 
198
</p><p>
 
199
        <b>Note</b>: This method must be overridden by subclasses.
 
200
</p><dl>
 
201
<dt><i>cmd</i></dt>
 
202
<dd>
 
203
commandstring (string)
 
204
</dd><dt><i>params</i></dt>
 
205
<dd>
 
206
parameterstring (string)
 
207
</dd>
 
208
</dl><a NAME="SingleApplicationServer.shutdown" ID="SingleApplicationServer.shutdown"></a>
 
209
<h4>SingleApplicationServer.shutdown</h4>
 
210
<b>shutdown</b>(<i></i>)
 
211
<p>
 
212
        Public method used to shut down the server.
 
213
</p></p>
 
214
<div align="right"><a href="#top">Up</a></div>
 
215
<hr />
 
216
</body></html>
 
 
b'\\ No newline at end of file'