mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:26:05 +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
|
## Attempt to establish connection
|
||||||
def connect(self):
|
def connect(self):
|
||||||
pass
|
raise NotImplementedError("connect needs to be implemented")
|
||||||
|
|
||||||
## Attempt to close the connection
|
## Attempt to close the connection
|
||||||
def close(self):
|
def close(self):
|
||||||
pass
|
raise NotImplementedError("close needs to be implemented")
|
||||||
|
|
||||||
@pyqtProperty(bool, notify = connectionStateChanged)
|
@pyqtProperty(bool, notify = connectionStateChanged)
|
||||||
def connectionState(self):
|
def connectionState(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user