def __init__(self, navcore, now_or_next): Source.__init__(self) PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.gotEvent, iPlayableService.evUpdatedEventInfo: self.gotEvent, iPlayableService.evEnd: self.gotEvent}, with_event=True) self.now_or_next = now_or_next self.epgQuery = eEPGCache.getInstance().lookupEventTime
def __init__(self, navcore): Source.__init__(self) PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.gotEvent, iPlayableService.evUpdatedRadioText: self.gotEvent, iPlayableService.evUpdatedRtpText: self.gotEvent, iPlayableService.evUpdatedRassInteractivePicMask: self.gotEvent, iPlayableService.evEnd: self.gotEvent}, with_event=True)
def __init__(self, session): Source.__init__(self) self.records_running = 0 self.session = session session.nav.record_event.append(self.gotRecordEvent) self.gotRecordEvent(None, None) return
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, navcore): Source.__init__(self) PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.gotEvent, iPlayableService.evUpdatedRadioText: self.gotEvent, iPlayableService.evUpdatedRtpText: self.gotEvent, iPlayableService.evUpdatedRassInteractivePicMask: self.gotEvent, iPlayableService.evEnd: self.gotEvent}, with_event=True)
def __init__(self, new_color, new_size, geo_coords=get_instance(0.0, 0.0), new_shape=shape_enum.CIRCLE): """ Constructor """ Source.__init__(self, new_color, geo_coords) self.size = new_size self.point_shape = new_shape
def __init__(self, session, poll=600, type=0, diskName=True, allVisible=False): Source.__init__(self) self.session = session if type == 1: self.type = self.INTERNAL elif type == 2: self.type = self.INTERNAL_HDD elif type == 3: self.type = self.INTERNAL_SSD elif type == 4: self.type = self.EXTERNAL else: self.type = self.ALL self.isSleeping = False self.state_text = "" self.isHDD() self.diskName = diskName self.allVisible = allVisible self.standby_time = poll self.timer = eTimer() self.timer.callback.append(self.updateHddState) self.idle_time = int(config.usage.hdd_standby.value) config.usage.hdd_standby.addNotifier(self.setStandbyTime, initial_call=False) if self.hdd_list: self.updateHddState(force=True) if self.onPartitionAddRemove not in harddiskmanager.on_partition_list_change: harddiskmanager.on_partition_list_change.append( self.onPartitionAddRemove)
def __init__(self, navcore, now_or_next): Source.__init__(self) PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.gotEvent, iPlayableService.evUpdatedEventInfo: self.gotEvent, iPlayableService.evEnd: self.gotEvent}, with_event=True) self.now_or_next = now_or_next self.epgQuery = eEPGCache.getInstance().lookupEventTime
def __init__(self, id, name, interArrivalTime=None, entity='Dream.Batch', batchNumberOfUnits=1, **kw): Source.__init__(self, id=id, name=name, interArrivalTime=interArrivalTime, entity=entity) self.numberOfUnits = int(batchNumberOfUnits) from Globals import G G.BatchSourceList.append(self)
def __init__(self, session, poll=600, type=0, diskName=True, allVisible=False): Source.__init__(self) self.session = session if type == 1: self.type = self.INTERNAL elif type == 2: self.type = self.INTERNAL_HDD elif type == 3: self.type = self.INTERNAL_SSD elif type == 4: self.type = self.EXTERNAL else: self.type = self.ALL self.isSleeping = False self.state_text = "" self.isHDD() self.diskName = diskName self.allVisible = allVisible self.standby_time = poll self.timer = eTimer() self.timer.callback.append(self.updateHddState) self.idle_time = int(config.usage.hdd_standby.value) config.usage.hdd_standby.addNotifier(self.setStandbyTime, initial_call=False) if self.hdd_list: self.updateHddState(force=True) if self.onPartitionAddRemove not in harddiskmanager.on_partition_list_change: harddiskmanager.on_partition_list_change.append(self.onPartitionAddRemove)
def __init__(self, session): Source.__init__(self) self.records_running = 0 self.session = session session.nav.record_event.append(self.gotRecordEvent) self.gotRecordEvent(None, None) return
def __init__(self, navcore): Source.__init__(self) PerServiceBase.__init__( self, navcore, { iPlayableService.evStart: self.serviceEvent, iPlayableService.evEnd: self.serviceEvent, # FIXME: we should check 'interesting_events' # which is not always provided. iPlayableService.evUpdatedInfo: self.serviceEvent, iPlayableService.evUpdatedEventInfo: self.serviceEvent, iPlayableService.evCuesheetChanged: self.serviceEvent, iPlayableService.evVideoSizeChanged: self.serviceEvent, iPlayableService.evVideoFramerateChanged: self.serviceEvent, iPlayableService.evHBBTVInfo: self.serviceEvent }, with_event=True) self.navcore = navcore
def __init__(self): Source.__init__(self) 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): Source.__init__(self) self.tuner_use_mask = 0 res_mgr = eDVBResourceManager.getInstance() if res_mgr: res_mgr.frontendUseMaskChanged.get().append(self.tunerUseMaskChanged) else: print 'no res_mgr!!'
def __init__(self, gcvs, new_color=colors.WHITE, lw=1.5): ''' Constructor ''' Source.__init__(self, new_color) self.ra_decs = [] self.line_width = lw self.gc_vertices = gcvs
def __init__(self, service_source = None, frontend_source = None, update_interval = 1000): Source.__init__(self) self.update_interval = update_interval self.service_source = service_source self.frontend_source = frontend_source self.invalidate() self.poll_timer = eTimer() self.poll_timer_conn = self.poll_timer.timeout.connect(self.updateFrontendStatus)
def __init__(self): Source.__init__(self) self.tuner_use_mask = 0 res_mgr = eDVBResourceManager.getInstance() if res_mgr: res_mgr.frontendUseMaskChanged.get().append(self.tunerUseMaskChanged) else: print("[TunerInfo] no res_mgr!!")
def __init__(self, gcvs, new_color=colors.WHITE, lw=1.5): ''' Constructor ''' Source.__init__(self, new_color) self.ra_decs = [] self.line_width = lw self.gc_vertices = gcvs
def __init__(self, new_color, new_size, geo_coords=get_instance(0.0, 0.0), \ new_shape=shape_enum.CIRCLE): ''' Constructor ''' Source.__init__(self, new_color, geo_coords) self.size = new_size self.point_shape = new_shape
def __init__(self, update_interval=500, sensorid=None): self.update_interval = update_interval self.sensorid = sensorid Source.__init__(self) if sensorid is not None: self.update_timer = eTimer() self.update_timer.callback.append(self.updateValue) self.update_timer.start(self.update_interval)
def __init__(self): Source.__init__(self) self.tuner_use_mask = 0 res_mgr = eDVBResourceManager.getInstance() if res_mgr: self.frontendUseMaskChanged_conn = res_mgr.frontendUseMaskChanged.connect(self.tunerUseMaskChanged) else: print "no res_mgr!!"
def __init__(self, list = [ ], enableWrapAround = False, item_height = 25, fonts = [ ]): Source.__init__(self) self.__list = list self.onSelectionChanged = [ ] self.item_height = item_height self.fonts = fonts self.disable_callbacks = False self.enableWrapAround = enableWrapAround self.__style = "default" # style might be an optional string which can be used to define different visualisations in the skin
def __init__(self, service_source=None, frontend_source=None, update_interval=1000): Source.__init__(self) self.update_interval = update_interval self.service_source = service_source self.frontend_source = frontend_source self.invalidate() self.poll_timer = eTimer() self.poll_timer.callback.append(self.updateFrontendStatus) self.poll_timer.start(update_interval, True)
def __init__(self, service_source = None, frontend_source = None, update_interval = 1000): Source.__init__(self) self.update_interval = update_interval self.service_source = service_source self.frontend_source = frontend_source self.invalidate() self.poll_timer = eTimer() self.poll_timer.callback.append(self.updateFrontendStatus) self.poll_timer.start(update_interval, True)
def __init__(self, new_label, color, geo_coords=get_instance(0.0, 0.0), \ new_offset=0.02, new_fontsize=15): ''' Constructor ''' Source.__init__(self, color, geo_coords) self.label = new_label self.offset = new_offset self.font_size = new_fontsize
def __init__(self, update_interval = 500, sensorid = None): self.update_interval = update_interval self.sensorid = sensorid Source.__init__(self) if sensorid is not None: self.update_timer = eTimer() self.update_timer_conn = self.update_timer.timeout.connect(self.updateValue) self.update_timer.start(self.update_interval)
def __init__(self, update_interval = 500, sensorid = None): self.update_interval = update_interval self.sensorid = sensorid Source.__init__(self) if sensorid is not None: self.update_timer = eTimer() self.update_timer.callback.append(self.updateValue) self.update_timer.start(self.update_interval) return
def __init__(self, list = [ ], enableWrapAround = False, item_height = 25, fonts = [ ]): Source.__init__(self) self.__list = list self.onSelectionChanged = [ ] self.item_height = item_height self.fonts = fonts self.disable_callbacks = False self.enableWrapAround = enableWrapAround self.__style = "default" # style might be an optional string which can be used to define different visualisations in the skin
def __init__(self, new_label, color, geo_coords=get_instance(0.0, 0.0), \ new_offset=0.02, new_fontsize=15): ''' Constructor ''' Source.__init__(self, color, geo_coords) self.label = new_label self.offset = new_offset self.font_size = new_fontsize
def __init__(self): Source.__init__(self) self.isAnimated = False self.tuner_use_mask = 0 res_mgr = eDVBResourceManager.getInstance() if res_mgr: self.frontendUseMaskChanged_conn = res_mgr.frontendUseMaskChanged.connect( self.tunerUseMaskChanged) else: print "no res_mgr!!"
def __init__(self, update_interval=500, sensorid=None): self.update_interval = update_interval self.sensorid = sensorid Source.__init__(self) if sensorid is not None: self.update_timer = eTimer() self.update_timer_conn = self.update_timer.timeout.connect( self.updateValue) self.update_timer.start(self.update_interval)
def __init__(self, fixed=False, function=None, destroy=None, poll=0): Source.__init__(self) self.function = function self.fixed = fixed self.post_destroy = destroy if poll > 0: self.poll_timer = eTimer() self.poll_timer_conn = self.poll_timer.timeout.connect(self.poll) self.poll_timer.start(poll) else: self.poll_timer = None
def __init__(self, fixed = False, function = None, destroy = None, poll = 0): Source.__init__(self) self.function = function self.fixed = fixed self.post_destroy = destroy if poll > 0: self.poll_timer = eTimer() self.poll_timer.callback.append(self.poll) self.poll_timer.start(poll) else: self.poll_timer = None
def __init__(self, geo_coord, new_id, up_v=Vector3(0.0, 1.0, 0.0), im_scale=1): ''' Constructor ''' Source.__init__(self, colors.WHITE, geo_coord) self.is_blank = False self.requires_blending = False self.pixmap_image = None self.image_scale = im_scale self.set_up_vector(up_v) self.set_image_id(new_id)
def __init__(self, new_color=colors.WHITE): ''' Constructor ''' Source.__init__(self, new_color) self.level = None self.names = [] self.image_sources = [] self.line_sources = [] self.point_sources = [] self.text_sources = []
def __init__(self, fixed = False, function = None, destroy = None, poll = 0): Source.__init__(self) self.function = function self.fixed = fixed self.post_destroy = destroy if poll > 0: self.poll_timer = eTimer() self.poll_timer.callback.append(self.poll) self.poll_timer.start(poll) else: self.poll_timer = None
def __init__(self, fixed = False, function = None, destroy = None, poll = 0): Source.__init__(self) self.function = function self.fixed = fixed self.post_destroy = destroy if poll > 0: self.poll_timer = eTimer() self.poll_timer_conn = self.poll_timer.timeout.connect(self.poll) self.poll_timer.start(poll) else: self.poll_timer = None
def __init__(self, new_color=colors.WHITE): ''' Constructor ''' Source.__init__(self, new_color) self.level = None self.names = [] self.image_sources = [] self.line_sources = [] self.point_sources = [] self.text_sources = []
def __init__(self, navcore): Source.__init__(self) PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.serviceEvent, iPlayableService.evEnd: self.serviceEvent, iPlayableService.evUpdatedInfo: self.serviceEvent, iPlayableService.evUpdatedEventInfo: self.serviceEvent, iPlayableService.evNewProgramInfo: self.serviceEvent, iPlayableService.evCuesheetChanged: self.serviceEvent, iPlayableService.evVideoSizeChanged: self.serviceEvent, iPlayableService.evHBBTVInfo: self.serviceEvent}, with_event=True) self.navcore = navcore
def __init__(self, service_source = None, frontend_source = None, navcore = None): self.navcore = None Source.__init__(self) if navcore: PerServiceBase.__init__(self, navcore, { iPlayableService.evTunedIn: self.updateFrontendData, iPlayableService.evEnd: self.serviceEnd }) self.service_source = service_source self.frontend_source = frontend_source self.updateFrontendData()
def __init__(self, navcore, now_or_next): Source.__init__(self) self.epgTimer = eTimer() self.epgTimer.callback.append(self.epgTimerCheck) PerServiceBase.__init__(self, navcore, { iPlayableService.evStart: self.gotEvent, iPlayableService.evUpdatedEventInfo: self.gotEvent, iPlayableService.evEnd: self.gotEvent }, with_event=True) self.now_or_next = now_or_next self.epgQuery = eEPGCache.getInstance().lookupEventTime self.NextStartTime = 0
def __init__(self, service_source = None, frontend_source = None, navcore = None): self.navcore = None Source.__init__(self) if navcore: PerServiceBase.__init__(self, navcore, {iPlayableService.evTunedIn: self.updateFrontendData, iPlayableService.evEnd: self.serviceEnd}) res_mgr = eDVBResourceManager.getInstance() if res_mgr: res_mgr.frontendUseMaskChanged.get().append(self.updateTunerMask) self.service_source = service_source self.frontend_source = frontend_source self.tuner_mask = 0 self.updateFrontendData()
def __init__(self, pbx, path, bufsize = READLINE, logger = None): """ Constructor. @param pbx is the name of the source. @param path is the pathname to the file in the file system. @param bufsize is an optional read buffer size in bytes. @param logger is an optional Logger used to log messages. """ Source.__init__(self, pbx, logger = logger) self.path = path self.eof = False self.file = None self.bufsize = bufsize
def __init__(self, list = None, enableWrapAround = False, item_height = 25, fonts = None): if not list: list = [] if not fonts: fonts = [] Source.__init__(self) self.__list = list self.onSelectionChanged = [] self.item_height = item_height self.fonts = fonts self.disable_callbacks = False self.enableWrapAround = enableWrapAround self.__style = 'default'
def __init__(self, navcore): Source.__init__(self) PerServiceBase.__init__(self, navcore, { iPlayableService.evStart: self.serviceEvent, iPlayableService.evEnd: self.serviceEvent, # FIXME: we should check 'interesting_events' # which is not always provided. iPlayableService.evUpdatedInfo: self.serviceEvent, iPlayableService.evUpdatedEventInfo: self.serviceEvent, iPlayableService.evCuesheetChanged: self.serviceEvent, iPlayableService.evVideoSizeChanged: self.serviceEvent }, with_event=True) self.navcore = navcore
def __init__(self, service_source = None, frontend_source = None, navcore = None): self.navcore = None Source.__init__(self) if navcore: PerServiceBase.__init__(self, navcore, {iPlayableService.evTunedIn: self.updateFrontendData, iPlayableService.evEnd: self.serviceEnd}) res_mgr = eDVBResourceManager.getInstance() if res_mgr: res_mgr.frontendUseMaskChanged.get().append(self.updateTunerMask) self.service_source = service_source self.frontend_source = frontend_source self.tuner_mask = 0 self.updateFrontendData() return
def __init__(self, id, name, interArrivalTime=None, entity='Dream.Batch', batchNumberOfUnits=1, **kw): Source.__init__(self, id=id, name=name, interArrivalTime=interArrivalTime, entity=entity) self.numberOfUnits = int(batchNumberOfUnits) from Globals import G G.BatchSourceList.append(self)
def __init__(self, service_source=None, frontend_source=None, navcore=None): self.navcore = None Source.__init__(self) if navcore: PerServiceBase.__init__( self, navcore, { iPlayableService.evTunedIn: self.updateFrontendData, iPlayableService.evEnd: self.serviceEnd }) self.service_source = service_source self.frontend_source = frontend_source self.updateFrontendData()
def __init__(self, navcore, now_or_next): Source.__init__(self) self.epgTimer = eTimer() self.epgTimer.callback.append(self.epgTimerCheck) PerServiceBase.__init__( self, navcore, { iPlayableService.evStart: self.gotEvent, iPlayableService.evUpdatedEventInfo: self.gotEvent, iPlayableService.evEnd: self.gotEvent }, with_event=True) self.now_or_next = now_or_next self.epgQuery = eEPGCache.getInstance().lookupEventTime self.NextStartTime = 0
def __init__(self, session, poll=60): Source.__init__(self) self.isSleeping = False self.session = session self.standby_time = poll self.timer = eTimer() self.idle_time = int(config.usage.hdd_standby.value) config.usage.hdd_standby.addNotifier(self.setStandbyTime, initial_call=False) self.timer.callback.append(self.runIdle) self.hdd = self.isInternalHDD() self.container = eConsoleAppContainer() if self.hdd: if self.idle_time: self.runIdle() else: self.isSleeping = True
def __init__(self, navcore): Source.__init__(self) PerServiceBase.__init__( self, navcore, { iPlayableService.evStart: self.serviceEvent, iPlayableService.evEnd: self.serviceEvent, iPlayableService.evUpdatedInfo: self.serviceEvent, iPlayableService.evUpdatedEventInfo: self.serviceEvent, iPlayableService.evNewProgramInfo: self.serviceEvent, iPlayableService.evCuesheetChanged: self.serviceEvent, iPlayableService.evVideoSizeChanged: self.serviceEvent, iPlayableService.evHBBTVInfo: self.serviceEvent }, with_event=True) self.navcore = navcore
def __init__(self, session, poll=60): Source.__init__(self) self.isSleeping = False self.session = session self.standby_time = poll self.timer = eTimer() self.idle_time = int(config.usage.hdd_standby.value) config.usage.hdd_standby.addNotifier(self.setStandbyTime, initial_call=False) self.timer.callback.append(self.runIdle) self.hdd = self.isInternalHDD() self.container = eConsoleAppContainer() if self.hdd: if self.idle_time: self.runIdle() else: self.isSleeping = True
def __init__(self, list=None, enableWrapAround=False, item_height=25, fonts=None): if not list: list = [] if not fonts: fonts = [] Source.__init__(self) self.__list = list self.onSelectionChanged = [] self.item_height = item_height self.fonts = fonts self.disable_callbacks = False self.enableWrapAround = enableWrapAround self.__style = 'default'
def __init__(self, service_source=None, frontend_source=None, navcore=None): self.navcore = None Source.__init__(self) if navcore: PerServiceBase.__init__(self, navcore, { iPlayableService.evTunedIn: self.updateFrontendData, iPlayableService.evEnd: self.serviceEnd }) res_mgr = eDVBResourceManager.getInstance() if res_mgr: res_mgr.frontendUseMaskChanged.get().append(self.updateTunerMask) self.service_source = service_source self.frontend_source = frontend_source self.tuner_mask = 0 sec = eDVBSatelliteEquipmentControl.getInstance() if sec: sec.slotRotorSatPosChanged.get().append(self.updateSlotRotorSatPosition) self.updateFrontendData()
def __init__(self, url=None, html=None): Source.__init__(self) self.url = url self.html = html self.onUrlChanged = [] self.onTitleChanged = [] self.onLoadProgress = [] self.onLoadFinished = [] self.onDownloadRequested = [] self.onUnsupportedContent = [] self.onMicroFocusChanged = [] self.onWindowRequested = [] self.onSslErrors = [] self.onAuthRequired = [] self.onProxyAuthRequired = [] self.__isFirstExec = True self.__zoomFactor = None self.__cookies = None self.__pos = None self.__size = None self.__useragent = None
def __init__(self, url = None, html = None): Source.__init__(self) self.url = url self.html = html self.onUrlChanged = [] self.onTitleChanged = [] self.onLoadProgress = [] self.onLoadFinished = [] self.onDownloadRequested = [] self.onUnsupportedContent = [] self.onMicroFocusChanged = [] self.onWindowRequested = [] self.onSslErrors = [] self.onAuthRequired = [] self.onProxyAuthRequired = [] self.__isFirstExec = True self.__zoomFactor = None self.__cookies = None self.__pos = None self.__size = None self.__useragent = None
def __init__(self, pbx, username, secret, host = HOST, port = PORT, timeout = CONNECT, bufsize = RECV, logger = None): """ Constructor. @param pbx is the name of the source. @param username is the username used to authenticate with the source. @param secret is the secret used to authenticate with the source. @param host is the hostname, domain name, or IP address of the PBX. @param port is the port number of the AMI on the PBX. @param timeout is an optional connection timeout value in seconds. @param bufsize is an optional receive buffer size in bytes. @param logger is an optional Logger used to log messages. """ Source.__init__(self, pbx, username, secret, logger = logger) self.host = host self.port = port self.timeout = timeout self.bufsize = bufsize self.eof = False self.prefix = "" self.partial = [ ] self.queue = [ ] self.socket = None
def __init__(self, text = "", filter = lambda x: x): Source.__init__(self) self.__text = text self.filter = filter