mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Implemented interface for setting printjobstate
CURA-1038
This commit is contained in:
parent
2d78f0a610
commit
640e1a2350
1 changed files with 8 additions and 1 deletions
|
@ -70,11 +70,18 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
||||||
def jobState(self):
|
def jobState(self):
|
||||||
return self._job_state
|
return self._job_state
|
||||||
|
|
||||||
def setJobState(self, job_state):
|
def _updateJobState(self, job_state):
|
||||||
if self._job_state != job_state:
|
if self._job_state != job_state:
|
||||||
self._job_state = job_state
|
self._job_state = job_state
|
||||||
self.jobStateChanged.emit()
|
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)
|
## Get the bed temperature of the bed (if any)
|
||||||
# This function is "final" (do not re-implement)
|
# This function is "final" (do not re-implement)
|
||||||
# /sa _getBedTemperature implementation function
|
# /sa _getBedTemperature implementation function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue