mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 07:17:52 -06:00
connect & close are now pure virtual
CURA-1339
This commit is contained in:
parent
0015d9d027
commit
6ad926b9b8
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue