refactor(io): Rename IO event methods to signal methods for clarity
Renamed `ActivateIoEvents` to `ActivateIoSignals` and `DeactivateIoEvents` to `DeactivateIoSignals` in both the D-Bus interface and implementation to better align with D-Bus signal semantics. Signed-off-by: Sven Sager <s.sager@kunbus.com>
This commit is contained in:
@@ -166,9 +166,9 @@ class InterfaceIoManager:
|
|||||||
<arg name="io_name" type="s" direction="in"/>
|
<arg name="io_name" type="s" direction="in"/>
|
||||||
<arg name="object-path" type="o" direction="out"/>
|
<arg name="object-path" type="o" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="ActivateIoEvents">
|
<method name="ActivateIoSignals">
|
||||||
</method>
|
</method>
|
||||||
<method name="DeactivateIoEvents">
|
<method name="DeactivateIoSignals">
|
||||||
</method>
|
</method>
|
||||||
<signal name="IoChanged">
|
<signal name="IoChanged">
|
||||||
<arg name="name" type="s" direction="out"/>
|
<arg name="name" type="s" direction="out"/>
|
||||||
@@ -216,10 +216,10 @@ class InterfaceIoManager:
|
|||||||
|
|
||||||
raise KeyError(f"No IO with name '{io_name}' found.")
|
raise KeyError(f"No IO with name '{io_name}' found.")
|
||||||
|
|
||||||
def ActivateIoEvents(self) -> None:
|
def ActivateIoSignals(self) -> None:
|
||||||
if not self.modio._looprunning:
|
if not self.modio._looprunning:
|
||||||
self.modio.autorefresh_all()
|
self.modio.autorefresh_all()
|
||||||
self.modio.cycleloop(self._modio_cycle, cycletime=50, blocking=False)
|
self.modio.cycleloop(self._modio_cycle, cycletime=50, blocking=False)
|
||||||
|
|
||||||
def DeactivateIoEvents(self) -> None:
|
def DeactivateIoSignals(self) -> None:
|
||||||
self.modio.exit(False)
|
self.modio.exit(False)
|
||||||
|
|||||||
Reference in New Issue
Block a user