mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -06:00
Move default behaviour up in inheritance hierarchy
This way, any new printer types we define will automatically get these properties that are used by the monitor stage anyway. Contributes to issue CURA-9220.
This commit is contained in:
parent
b4c4371929
commit
9e1940dd4b
2 changed files with 30 additions and 30 deletions
|
@ -96,35 +96,6 @@ class LocalClusterOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|||
def forceSendJob(self, print_job_uuid: str) -> None:
|
||||
self._getApiClient().forcePrintJob(print_job_uuid)
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def supportsPrintJobQueue(self) -> bool:
|
||||
"""
|
||||
Whether this printer knows about queueing print jobs.
|
||||
"""
|
||||
return True # This API always supports print job queueing.
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def canReadPrintJobs(self) -> bool:
|
||||
"""
|
||||
Whether this user can read the list of print jobs and their properties.
|
||||
"""
|
||||
return False # On LAN, the user can always read it.
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def canWriteOthersPrintJobs(self) -> bool:
|
||||
"""
|
||||
Whether this user can change things about print jobs made by other
|
||||
people.
|
||||
"""
|
||||
return True # On LAN, the user can always change this.
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def canWriteOwnPrintJobs(self) -> bool:
|
||||
"""
|
||||
Whether this user can change things about print jobs made by themself.
|
||||
"""
|
||||
return True # On LAN, the user can always change this.
|
||||
|
||||
def setJobState(self, print_job_uuid: str, action: str) -> None:
|
||||
"""Set the remote print job state.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue