the record.png blinks now whenever a timerentry in the recordingtimer is running
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 26 Nov 2005 05:04:39 +0000 (05:04 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 26 Nov 2005 05:04:39 +0000 (05:04 +0000)
RecordTimer.py
lib/python/Screens/InfoBarGenerics.py

index 45a21ae..1340795 100644 (file)
@@ -103,6 +103,13 @@ class RecordTimer(timer.Timer):
                        self.loadTimer()
                except:
                        print "unable to load timers from file!"
                        self.loadTimer()
                except:
                        print "unable to load timers from file!"
+                       
+       def isRecording(self):
+               isRunning = False
+               for timer in self.timer_list:
+                       if timer.isRunning():
+                               isRunning = True
+               return isRunning
        
        def loadTimer(self):
                # TODO: PATH!
        
        def loadTimer(self):
                # TODO: PATH!
index 8ab16c5..604f164 100644 (file)
@@ -396,7 +396,8 @@ class InfoBarInstantRecord:
                
                self["BlinkingPoint"] = BlinkingPixmapConditional()
                self.onShown.append(self["BlinkingPoint"].hidePixmap)
                
                self["BlinkingPoint"] = BlinkingPixmapConditional()
                self.onShown.append(self["BlinkingPoint"].hidePixmap)
-
+               self["BlinkingPoint"].setConnect(self.session.nav.RecordTimer.isRecording)
+               
        def stopCurrentRecording(self): 
                self.session.nav.RecordTimer.removeEntry(self.recording)
                self.recording = None
        def stopCurrentRecording(self): 
                self.session.nav.RecordTimer.removeEntry(self.recording)
                self.recording = None
@@ -418,7 +419,7 @@ class InfoBarInstantRecord:
                self.recording = self.session.nav.recordWithTimer(time.time(), time.time() + 3600, serviceref, epg, "instant record")
                self.recording.dontSave = True
                
                self.recording = self.session.nav.recordWithTimer(time.time(), time.time() + 3600, serviceref, epg, "instant record")
                self.recording.dontSave = True
                
-               self["BlinkingPoint"].setConnect(lambda: self.recording.isRunning())
+               #self["BlinkingPoint"].setConnect(lambda: self.recording.isRunning())
                
        def isInstantRecordRunning(self):
                if self.recording != None:
                
        def isInstantRecordRunning(self):
                if self.recording != None: