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:
Sven Sager
2026-02-04 09:53:54 +01:00
parent 785569c86b
commit 6f1bd7f7ea

View File

@@ -166,9 +166,9 @@ class InterfaceIoManager:
<arg name="io_name" type="s" direction="in"/>
<arg name="object-path" type="o" direction="out"/>
</method>
<method name="ActivateIoEvents">
<method name="ActivateIoSignals">
</method>
<method name="DeactivateIoEvents">
<method name="DeactivateIoSignals">
</method>
<signal name="IoChanged">
<arg name="name" type="s" direction="out"/>
@@ -216,10 +216,10 @@ class InterfaceIoManager:
raise KeyError(f"No IO with name '{io_name}' found.")
def ActivateIoEvents(self) -> None:
def ActivateIoSignals(self) -> None:
if not self.modio._looprunning:
self.modio.autorefresh_all()
self.modio.cycleloop(self._modio_cycle, cycletime=50, blocking=False)
def DeactivateIoEvents(self) -> None:
def DeactivateIoSignals(self) -> None:
self.modio.exit(False)