6 """ |
6 """ |
7 Module implementing the single application server and client. |
7 Module implementing the single application server and client. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtNetwork import QLocalServer, QLocalSocket |
10 from PyQt4.QtNetwork import QLocalServer, QLocalSocket |
|
11 |
11 |
12 |
12 class SingleApplicationServer(QLocalServer): |
13 class SingleApplicationServer(QLocalServer): |
13 """ |
14 """ |
14 Class implementing the single application server base class. |
15 Class implementing the single application server base class. |
15 """ |
16 """ |
93 @param cmd commandstring (string) |
94 @param cmd commandstring (string) |
94 @param params parameterstring (string) |
95 @param params parameterstring (string) |
95 """ |
96 """ |
96 raise RuntimeError("'handleCommand' must be overridden") |
97 raise RuntimeError("'handleCommand' must be overridden") |
97 |
98 |
|
99 |
98 class SingleApplicationClient(object): |
100 class SingleApplicationClient(object): |
99 """ |
101 """ |
100 Class implementing the single application client base class. |
102 Class implementing the single application client base class. |
101 """ |
103 """ |
102 def __init__(self, name): |
104 def __init__(self, name): |