connect & close are now pure virtual

CURA-1339
This commit is contained in:
Jaime van Kessel 2016-04-18 11:38:57 +02:00
parent 0015d9d027
commit 6ad926b9b8

View File

@ -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):