chiark / gitweb /
Updated doodle3d connection, and added temperature to the connectionBase.
[cura.git] / Cura / util / printerConnection / printerConnectionBase.py
index 5503d004fc6187f366c80d307e2e51a666168c51..7f5e843ed93d1ba89b0f4a94004e18c01d1f075f 100644 (file)
@@ -26,7 +26,7 @@ class printerConnectionBase(object):
                return False
 
        #Amount of progression of the current print file. 0.0 to 1.0
-       def printProgress(self):
+       def getPrintProgress(self):
                return 0.0
 
        #Returns true if we need to establish an active connection.
@@ -73,6 +73,14 @@ class printerConnectionBase(object):
        def isAvailable(self):
                return False
 
+       #Get the temperature of an extruder, returns None is no temperature is known for this extruder
+       def getTemperature(self, extruder):
+               return None
+
+       #Get the temperature of the heated bed, returns None is no temperature is known for the heated bed
+       def getBedTemperature(self):
+               return None
+
        # Get the connection status string. This is displayed to the user and can be used to communicate
        #  various information to the user.
        def getStatusString(self):