From 640e1a2350c1e1eeb872b010fff9790dbdec707e Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 16 Jun 2016 15:35:11 +0200 Subject: [PATCH] Implemented interface for setting printjobstate CURA-1038 --- cura/PrinterOutputDevice.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index 9dabe52373..8dca62f368 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -70,11 +70,18 @@ class PrinterOutputDevice(QObject, OutputDevice): def jobState(self): return self._job_state - def setJobState(self, job_state): + def _updateJobState(self, job_state): if self._job_state != job_state: self._job_state = job_state self.jobStateChanged.emit() + @pyqtSlot(str) + def setJobState(self, job_state): + self._setJobState(job_state) + + def _setJobState(self, job_state): + Logger.log("w", "_setJobState is not implemented by this output device") + ## Get the bed temperature of the bed (if any) # This function is "final" (do not re-implement) # /sa _getBedTemperature implementation function