Send slotID's for backend_plugins

CURA-10717
This commit is contained in:
Jaime van Kessel 2023-07-11 15:18:52 +02:00
parent 4aebd755b2
commit 3037320b03
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4
2 changed files with 20 additions and 0 deletions

View file

@ -15,6 +15,10 @@ class BackendPlugin(PluginObject):
self._plugin_command: Optional[List[str]] = None
self._process = None
self._is_running = False
self._supported_slots: List[int] = []
def getSupportedSlots(self) -> List[int]:
return self._supported_slots
def isRunning(self):
return self._is_running
@ -25,6 +29,9 @@ class BackendPlugin(PluginObject):
def getPort(self) -> int:
return self.__port
def getAddress(self) -> str:
return self._plugin_address
def _validatePluginCommand(self) -> list[str]:
"""
Validate the plugin command and add the port parameter if it is missing.