some cleanups,
[enigma2.git] / lib / python / Screens / SessionGlobals.py
1 from Screens.Screen import Screen
2 from Components.Sources.CurrentService import CurrentService
3 from Components.Sources.EventInfo import EventInfo
4 from Components.Sources.FrontendStatus import FrontendStatus
5 from Components.Sources.FrontendInfo import FrontendInfo
6 from Components.Sources.Source import Source
7 from Components.Sources.TunerInfo import TunerInfo
8 from Components.Sources.RecordState import RecordState
9 from Components.Renderer.FrontpanelLed import FrontpanelLed
10
11 class SessionGlobals(Screen):
12         def __init__(self, session):
13                 Screen.__init__(self, session)
14                 self["CurrentService"] = CurrentService(session.nav)
15                 self["Event_Now"] = EventInfo(session.nav, EventInfo.NOW)
16                 self["Event_Next"] = EventInfo(session.nav, EventInfo.NEXT)
17                 self["FrontendStatus"] = FrontendStatus(service_source = session.nav.getCurrentService)
18                 self["FrontendInfo"] = FrontendInfo(navcore = session.nav)
19                 self["VideoPicture"] = Source()
20                 self["TunerInfo"] = TunerInfo()
21                 self["RecordState"] = RecordState(session)
22                 FrontpanelLed().connect(self["RecordState"])