本文整理汇总了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)
示例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)
示例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
示例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
示例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()
示例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
示例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
示例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
示例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
示例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)
示例11: destroy
def destroy(self):
PerServiceBase.destroy(self)
Source.destroy(self)
示例12: destroy
def destroy(self):
if not self.frontend_source and not self.service_source:
PerServiceBase.destroy(self)
Source.destroy(self)