mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:09:01 +08:00
connect & close are now pure virtual
CURA-1339
This commit is contained in:
parent
0015d9d027
commit
6ad926b9b8
@ -152,11 +152,11 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
||||
|
||||
## Attempt to establish connection
|
||||
def connect(self):
|
||||
pass
|
||||
raise NotImplementedError("connect needs to be implemented")
|
||||
|
||||
## Attempt to close the connection
|
||||
def close(self):
|
||||
pass
|
||||
raise NotImplementedError("close needs to be implemented")
|
||||
|
||||
@pyqtProperty(bool, notify = connectionStateChanged)
|
||||
def connectionState(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user