当前位置: 首页>>代码示例>>Python>>正文


Python PerServiceDisplay.PerServiceBase类代码示例

本文整理汇总了Python中Components.PerServiceDisplay.PerServiceBase的典型用法代码示例。如果您正苦于以下问题:Python PerServiceBase类的具体用法?Python PerServiceBase怎么用?Python PerServiceBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了PerServiceBase类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 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)
开发者ID:kingvuplus,项目名称:boom,代码行数:7,代码来源:RdsDecoder.py

示例2: destroy

	def destroy(self):
		if not self.frontend_source and not self.service_source:
			PerServiceBase.destroy(self)
		res_mgr = eDVBResourceManager.getInstance()
		if res_mgr:
			res_mgr.frontendUseMaskChanged.get().remove(self.updateTunerMask)
		Source.destroy(self)
开发者ID:1198s,项目名称:enigma2,代码行数:7,代码来源:FrontendInfo.py

示例3: __init__

 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
开发者ID:kingvuplus,项目名称:boom,代码行数:7,代码来源:EventInfo.py

示例4: __init__

 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
开发者ID:kingvuplus,项目名称:boom,代码行数:11,代码来源:CurrentService.py

示例5: __init__

	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()
开发者ID:OpenDMM,项目名称:enigma2,代码行数:12,代码来源:FrontendInfo.py

示例6: __init__

	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	
开发者ID:wzcwzc,项目名称:enigma2,代码行数:13,代码来源:EventInfo.py

示例7: __init__

 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
开发者ID:kingvuplus,项目名称:boom,代码行数:14,代码来源:FrontendInfo.py

示例8: __init__

	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
开发者ID:BananaSamurai,项目名称:Enigma2,代码行数:14,代码来源:CurrentService.py

示例9: __new__

	def __new__(cls, *p, **k):
		if StreamServerSeek.__instance is None:
			if not 'session' in k:
				raise StreamServerSeekNoSessionException
			StreamServerSeek._session = k["session"]
			StreamServerSeek.__instance = PerServiceBase.__new__(cls)
		elif 'session' in k:
			raise StreamServerSeekAlreadyInitializedException

		return StreamServerSeek.__instance
开发者ID:OpenDMM,项目名称:enigma2-plugins,代码行数:10,代码来源:StreamServerSeek.py

示例10: __init__

	def __init__(self, *p, **k):
		if not 'session' in k:
			return

		print "[StreamServerSeek] init"
		
		config.misc.standbyCounter.addNotifier(self._onStandby, initial_call = False)

		PerServiceBase.__init__(self, self._session.nav,
			{ 
				iPlayableService.evServiceChanged: self._onServiceChanged,
				iPlayableService.evEOF: self._onEOF,
				iPlayableService.evPlay: self._onPlaying
			}, with_event=False)
		
		
		self._timer = eTimer()
		self._timer_conn = self._timer.timeout.connect(self.endTemporaryLiveMode)

		streamServerControl.onSourceStateChanged.append(self._onSourceStateChanged)
开发者ID:OpenDMM,项目名称:enigma2-plugins,代码行数:20,代码来源:StreamServerSeek.py

示例11: destroy

	def destroy(self):
		PerServiceBase.destroy(self)
		Source.destroy(self)
开发者ID:sklnet,项目名称:opennfr-enigma2,代码行数:3,代码来源:CurrentService.py

示例12: destroy

	def destroy(self):
		if not self.frontend_source and not self.service_source:
			PerServiceBase.destroy(self)
		Source.destroy(self)
开发者ID:OpenDMM,项目名称:enigma2,代码行数:4,代码来源:FrontendInfo.py


注:本文中的Components.PerServiceDisplay.PerServiceBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。