Beispiel #1
0
    def __init__(self, session, scanList):
        Screen.__init__(self, session)

        self.scanList = scanList

        if hasattr(session, 'infobar'):
            self.currentInfobar = session.infobar
            self.currentServiceList = self.currentInfobar.servicelist
            if self.session.pipshown and self.currentServiceList:
                if self.currentServiceList.dopipzap:
                    self.currentServiceList.togglePipzap()
                del self.session.pip
                self.session.pipshown = False
        else:
            self.currentInfobar = None

        self.session.nav.stopService()

        self["scan_progress"] = ProgressBar()
        self["scan_state"] = Label(_("scan state"))
        self["network"] = Label()
        self["transponder"] = Label()

        self["pass"] = Label("")
        self["servicelist"] = FIFOList(len=10)
        self["FrontendInfo"] = FrontendInfo()

        self["actions"] = ActionMap(["OkCancelActions"], {
            "ok": self.ok,
            "cancel": self.cancel
        })

        self.onFirstExecBegin.append(self.doServiceScan)
Beispiel #2
0
 def __init__(self, session, scanList):
     Screen.__init__(self, session)
     self['Title'] = Label(_('Scanning...'))
     self.scanList = scanList
     if hasattr(session, 'infobar'):
         self.currentInfobar = Screens.InfoBar.InfoBar.instance
         if self.currentInfobar:
             self.currentServiceList = self.currentInfobar.servicelist
             if self.session.pipshown and self.currentServiceList:
                 if self.currentServiceList.dopipzap:
                     self.currentServiceList.togglePipzap()
                 if hasattr(self.session, 'pip'):
                     del self.session.pip
                 self.session.pipshown = False
     else:
         self.currentInfobar = None
     self.session.nav.stopService()
     self['scan_progress'] = ProgressBar()
     self['scan_state'] = Label(_('scan state'))
     self['network'] = Label()
     self['transponder'] = Label()
     self['pass'] = Label('')
     self['servicelist'] = FIFOList()
     self['FrontendInfo'] = FrontendInfo()
     self['key_red'] = Label(_('Cancel'))
     self['key_green'] = Label(_('OK'))
     self['actions'] = ActionMap(['SetupActions', 'MenuActions'], {'ok': self.ok,
      'save': self.ok,
      'cancel': self.cancel,
      'menu': self.doCloseRecursive}, -2)
     self.setTitle(_('Service scan'))
     self.onFirstExecBegin.append(self.doServiceScan)
     return
Beispiel #3
0
    def __init__(self, session, scanList):
        Screen.__init__(self, session)

        self.scanList = scanList

        if hasattr(session, 'infobar'):
            self.currentInfobar = Screens.InfoBar.InfoBar.instance
            if self.currentInfobar:
                self.currentServiceList = self.currentInfobar.servicelist
                if self.session.pipshown and self.currentServiceList:
                    if self.currentServiceList.dopipzap:
                        self.currentServiceList.togglePipzap()
                    if hasattr(self.session, 'pip'):
                        del self.session.pip
                    self.session.pipshown = False
        else:
            self.currentInfobar = None

        self.session.postScanService = session.nav.getCurrentlyPlayingServiceOrGroup(
        )
        self.session.nav.stopService()

        self["scan_progress"] = ProgressBar()
        self["scan_state"] = Label(_("scan state"))
        self["network"] = Label()
        self["transponder"] = Label()

        self["pass"] = Label("")
        self["servicelist"] = FIFOList()
        self["FrontendInfo"] = FrontendInfo()
        self["key_red"] = Label(_("Cancel"))
        self["key_green"] = Label(_("OK"))

        self["done_text"] = Label()

        self["actions"] = ActionMap(
            ["SetupActions", "MenuActions"], {
                "ok": self.ok,
                "save": self.ok,
                "cancel": self.cancel,
                "menu": self.doCloseRecursive
            }, -2)
        self.title = _("Service scan")
        if self.layoutFinished not in self.onLayoutFinish:
            self.onLayoutFinish.append(self.layoutFinished)
        self.onFirstExecBegin.append(self.doServiceScan)
        self.onClose.append(self.doPluginCB)
Beispiel #4
0
    def __init__(self, session, scanList):
        Screen.__init__(self, session)

        self["Title"] = Label(_("Scanning..."))
        self.scanList = scanList

        if hasattr(session, 'infobar'):
            self.currentInfobar = Screens.InfoBar.InfoBar.instance
            if self.currentInfobar:
                self.currentServiceList = self.currentInfobar.servicelist
                if self.session.pipshown and self.currentServiceList:
                    if self.currentServiceList.dopipzap:
                        self.currentServiceList.togglePipzap()
                    if hasattr(self.session, 'pip'):
                        del self.session.pip
                    self.session.pipshown = False
        else:
            self.currentInfobar = None

        self.session.nav.stopService()

        self["scan_progress"] = ProgressBar()
        self["scan_state"] = Label(_("scan state"))
        self["network"] = Label()
        self["transponder"] = Label()

        self["pass"] = Label("")
        self["servicelist"] = FIFOList()
        self["FrontendInfo"] = FrontendInfo()
        self["key_red"] = Label(_("Cancel"))
        self["key_green"] = Label(_("OK"))

        self["actions"] = ActionMap(
            ["SetupActions", "MenuActions"], {
                "up": self.up,
                "down": self.down,
                "ok": self.ok,
                "save": self.ok,
                "cancel": self.cancel,
                "menu": self.doCloseRecursive
            }, -2)
        self.setTitle(_("Service scan"))
        self.onFirstExecBegin.append(self.doServiceScan)
        self.scanTimer = eTimer()
        self.scanTimer.callback.append(self.scanPoll)
Beispiel #5
0
	def __init__(self, session, scanList):
		self.skin = SimpleServiceScan.skin
		Screen.__init__(self, session)

		self.scanList = scanList

		if hasattr(session, 'infobar'):
			self.currentInfobar = session.infobar
			self.currentServiceList = self.currentInfobar.servicelist
			if self.session.pipshown and self.currentServiceList:
				if self.currentServiceList.dopipzap:
					self.currentServiceList.togglePipzap()
				del self.session.pip
				self.session.pipshown = False
		else:
			self.currentInfobar = None

		self.session.nav.stopService()

		self["scan_progress"] = ProgressBar()
		self["scan_state"] = Label(_("Scan state"))
		self["network"] = Label()
		self["transponder"] = Label()

		self["pass"] = Label("")
		self["servicelist"] = FIFOList(len=15000)
		self["FrontendInfo"] = FrontendInfo()

		self["actions"] = ActionMap(["DirectionActions", "OkCancelActions"],
		{
			"cancel": self.cancel,
			"ok": self.ok,
			"left": self["servicelist"].pageUp,
			"right": self["servicelist"].pageDown,
			"up": self["servicelist"].pageUp,
			"down": self["servicelist"].pageDown,
			"pageUp": self["servicelist"].pageUp,
			"pageDown": self["servicelist"].pageDown
		}, -2)

		self.onFirstExecBegin.append(self.doServiceScan)
Beispiel #6
0
    def __init__(self, session, scanList):
        Screen.__init__(self, session)

        self.scanList = scanList

        self.session.nav.stopService()

        self["scan_progress"] = ProgressBar()
        self["scan_state"] = Label(_("scan state"))
        self["network"] = Label()
        self["transponder"] = Label()

        self["pass"] = Label("")
        self["servicelist"] = FIFOList(len=10)
        self["FrontendInfo"] = FrontendInfo()

        self["actions"] = ActionMap(["OkCancelActions"], {
            "ok": self.ok,
            "cancel": self.cancel
        })

        self.onFirstExecBegin.append(self.doServiceScan)