Module implementing the single application server and client.
None |
SingleApplicationClient | Class implementing the single application client base class. |
SingleApplicationServer | Class implementing the single application server base class. |
None |
Class implementing the single application client base class.
None |
None |
SingleApplicationClient | Constructor |
connect | Public method to connect the single application client to its server. |
disconnect | Public method to disconnect from the Single Appliocation server. |
errstr | Public method to return a meaningful error string for the last error. |
processArgs | Public method to process the command line args passed to the UI. |
sendCommand | Public method to send the command to the application server. |
None |
Constructor
Public method to connect the single application client to its server.
0 | No application is running |
1 | Application is already running |
Public method to disconnect from the Single Appliocation server.
Public method to return a meaningful error string for the last error.
Public method to process the command line args passed to the UI.
Note: This method must be overridden by subclasses.
Public method to send the command to the application server.
Class implementing the single application server base class.
None |
None |
SingleApplicationServer | Constructor |
__disconnected | Private method to handle the closure of the socket. |
__newConnection | Private slot to handle a new connection. |
__receiveJson | Private method to receive the data from the client. |
handleCommand | Public slot to handle the command sent by the client. |
shutdown | Public method used to shut down the server. |
None |
Constructor
Private method to handle the closure of the socket.
Private slot to handle a new connection.
Private method to receive the data from the client.
Public slot to handle the command sent by the client.
Note: This method must be overridden by subclasses.
Public method used to shut down the server.