Ejemplo n.º 1
0
	def __init__(self):
		Source.__init__(self)
		self.disabled = False
		self._available = False
		self._appname = ""
		self.redButtonAppplicationReady_conn = eHbbtv.getInstance().redButtonAppplicationReady.connect(self._redButtonApplicationReady)
		self.aitInvalidated_conn = eHbbtv.getInstance().aitInvalidated.connect(self._aitInvalidated)
Ejemplo n.º 2
0
	def __init__(self):
		Source.__init__(self)
		self.disabled = False
		self._available = False
		self._appname = ""
		self.redButtonAppplicationReady_conn = eHbbtv.getInstance().redButtonAppplicationReady.connect(self._redButtonApplicationReady)
		self.aitInvalidated_conn = eHbbtv.getInstance().aitInvalidated.connect(self._aitInvalidated)
Ejemplo n.º 3
0
    def __init__(self, session):
        assert HbbTV.instance is None, "HbbTV is a singleton class and may only be initialized once!"
        HbbTV.instance = self

        self.session = session
        self._redButtonApp = None
        self._textApp = None
        self.eHbbtv = eHbbtv.getInstance()
        self.connectCallbacks()

        self.eHbbtv.setStreamState(eHbbtv.STREAM_STATE_STOPPED)

        from Screens.InfoBar import InfoBar
        InfoBar.instance.onServiceListRootChanged.append(
            self.setCurrentBouquet)
        InfoBar.instance.addExtension(
            (self._getExtensionMenuText, self._showApplicationList,
             lambda: True),
            key="red")

        self.onClose = []

        self.__currentStreamRef = None
        self.__browser = None
        self.__lastService = None
        self.__restoreTimer = eTimer()
        self.__restoreTimer_conn = self.__restoreTimer.timeout.connect(
            self._restoreLastService)
Ejemplo n.º 4
0
	def _redButtonApplicationReady(self, appid):
		app = eHbbtv.getInstance().getApplication(appid)
		if app.isValid():
			self._available = True
			self._appname = app.getName()
			self.changed((self.CHANGED_ALL,))
		else:
			self._aitInvalidated()
Ejemplo n.º 5
0
	def _redButtonApplicationReady(self, appid):
		app = eHbbtv.getInstance().getApplication(appid)
		if app.isValid():
			self._available = True
			self._appname = app.getName()
			self.changed((self.CHANGED_ALL,))
		else:
			self._aitInvalidated()
Ejemplo n.º 6
0
 def _showApplicationList(self):
     apps = eHbbtv.getInstance().getApplicationIdsAndName()
     if len(apps) == 0:
         apps.append((_("No HbbTV Application available"), None))
     self.session.openWithCallback(
         self._applicationSelected,
         ChoiceBox,
         title=_("Please select an HbbTV application"),
         list=apps)
Ejemplo n.º 7
0
	def __init__(self, session):
		assert HbbTV.instance is None, "HbbTV is a singleton class and may only be initialized once!"
		HbbTV.instance = self

		self.session = session
		self._redButtonApp = None
		self._textApp = None
		self.eHbbtv = eHbbtv.getInstance()
		self.connectCallbacks()

		self.eHbbtv.setStreamState(eHbbtv.STREAM_STATE_STOPPED)

		from Screens.InfoBar import InfoBar
		InfoBar.instance.onServiceListRootChanged.append(self.setCurrentBouquet)
		InfoBar.instance.addExtension((self._getExtensionMenuText, self._showApplicationList, lambda: True), key="red")

		self.onClose = []

		self.__currentStreamRef = None
		self.__browser = None
		self.__lastService = None
		self.__restoreTimer = eTimer()
		self.__restoreTimer_conn = self.__restoreTimer.timeout.connect(self._restoreLastService)
Ejemplo n.º 8
0
	def __init__(self):
		Source.__init__(self)
		self._available = False
		self._appname = ""
		eHbbtv.getInstance().redButtonAppplicationReady.get().append(self._redButtonApplicationReady)
		eHbbtv.getInstance().aitInvalidated.get().append(self._aitInvalidated)
Ejemplo n.º 9
0
	def destroy(self):
		eHbbtv.getInstance().redButtonAppplicationReady.get().remove(self._redButtonApplicationReady)
		eHbbtv.getInstance().aitInvalidated.get().remove(self._aitInvalidated)
		Source.destroy(self)
Ejemplo n.º 10
0
	def _showApplicationList(self):
		apps = eHbbtv.getInstance().getApplicationIdsAndName()
		apps.append(("putpat.tv", "http://www.putpat.tv/device/phupaw9t"))
		if len(apps) == 0:
			apps.append((_("No HbbTV Application available"), None))
		self.session.openWithCallback(self._applicationSelected, ChoiceBox, title=_("Please select an HbbTV application"), list=apps)
Ejemplo n.º 11
0
 def __init__(self):
     Source.__init__(self)
     self._available = False
     self._appname = ''
     eHbbtv.getInstance().redButtonAppplicationReady.get().append(self._redButtonApplicationReady)
     eHbbtv.getInstance().aitInvalidated.get().append(self._aitInvalidated)
Ejemplo n.º 12
0
 def destroy(self):
     eHbbtv.getInstance().redButtonAppplicationReady.get().remove(self._redButtonApplicationReady)
     eHbbtv.getInstance().aitInvalidated.get().remove(self._aitInvalidated)
     Source.destroy(self)