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)
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)
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()
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)
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)
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)
def destroy(self): eHbbtv.getInstance().redButtonAppplicationReady.get().remove(self._redButtonApplicationReady) eHbbtv.getInstance().aitInvalidated.get().remove(self._aitInvalidated) Source.destroy(self)
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)
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)