Package empro :: Module empro :: Module core :: Class EmSubprocessRpcMeta
[frames] | no frames]

Class EmSubprocessRpcMeta

EmSubprocessRpc --+
                  |
                 EmSubprocessRpcMeta

EmSubprocessRpc wrapper which reads the name of a <method> element in the <call> and dispatches it to a slot of a QObject registered for that method. This Python wrapper allows to register a Python function to be called to handle the method.

Class Hierarchy for EmSubprocessRpcMeta
Class Hierarchy for EmSubprocessRpcMeta

Instance Methods
bool
isMethodRegistered(method)
Returns whether a particular method has been registered.
None
registerMethod(method, callback)
Registers a Python function with the RPC service to implement the named method.
bool
unregisterMethod(method)
Unregisters a method.

Inherited from EmSubprocessRpc: call, reply, startDialog, stopDialog, waitForCallAndReply

Properties

Inherited from EmSubprocessRpc: inReply

Method Details

isMethodRegistered(method)

 

Returns whether a particular method has been registered.

Parameters:
  • method (string) - The method name.
Returns: bool

registerMethod(method, callback)

 

Registers a Python function with the RPC service to implement the named method.

Parameters:
  • method (string) - The method name.
  • callback (function callback f(string)) - The function callback.
Returns: None

unregisterMethod(method)

 

Unregisters a method. Returns true if the method was registered.

Parameters:
  • method (string) - The method name.
Returns: bool