enigma2  2.6
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Components.TimerSanityCheck.TimerSanityCheck Class Reference

Public Member Functions

def __init__ (self, timerlist, newtimer=None)
 
def check (self, ext_timer=1)
 
def getSimulTimerList (self)
 
def doubleCheck (self)
 
def checkTimerlist (self, ext_timer=1)
 
def getServiceType (ref)
 

Public Attributes

 localtimediff
 
 timerlist
 
 bflag
 
 eflag
 

Static Public Attributes

 rep_eventlist
 process the new timer More...
 
 nrep_eventlist
 
 newtimer
 
 rflags = self.newtimer.repeated
 
tuple rflags = ((rflags & 0x7F)>> 3)|((rflags & 0x07)<<4)
 
int begin = self.newtimer.begin % 86400
 
int idx = 0
 now process existing timers More...
 
 interval_begin = min(self.nrep_eventlist)[0]
 journalize timer repeations More...
 
 interval_end = max(self.nrep_eventlist)[0]
 
 offset_0 = interval_begin - (interval_begin % 604800)
 
tuple weeks = (interval_end - offset_0) // 604800
 
int event_begin = self.newtimer.begin
 
 event_end = self.newtimer.end
 
 new_event_begin = event[0] + offset_0 + (cnt * 604800)
 
 new_lth = localtime(new_event_begin).tm_hour
 
 new_event_end = new_event_begin + (event_end - event_begin)
 
int offset_0 = 345600
 
list fakeRecList = []
 order list chronological More...
 
 ConflictTimer = None
 
 ConflictTunerType = None
 
 newTimerTunerType = None
 
int cnt = 0
 
list overlaplist = []
 
 timer = self.newtimer
 
list tunerType = [ ]
 
 fakeRecService = NavigationInstance.instance.recordService(timer.service_ref, True)
 
 fakeRecResult = fakeRecService.start(True)
 
int fakeRecResult = -1
 
 ref = timer.service_ref.ref
 
 serviceList = serviceHandler.list(ref)
 
def type = getServiceType(ref)
 
list newTimerTunerType = tunerType
 
list ConflictTunerType = tunerType
 
 fakeRec = None
 
bool kt = False
 we have detected a conflict, now we must figure out the involved timers More...
 
bool nt = False
 
 simultimer
 

Constructor & Destructor Documentation

◆ __init__()

def Components.TimerSanityCheck.TimerSanityCheck.__init__ (   self,
  timerlist,
  newtimer = None 
)

Member Function Documentation

◆ check()

def Components.TimerSanityCheck.TimerSanityCheck.check (   self,
  ext_timer = 1 
)

◆ checkTimerlist()

def Components.TimerSanityCheck.TimerSanityCheck.checkTimerlist (   self,
  ext_timer = 1 
)

◆ doubleCheck()

def Components.TimerSanityCheck.TimerSanityCheck.doubleCheck (   self)

◆ getServiceType()

def Components.TimerSanityCheck.TimerSanityCheck.getServiceType (   ref)

◆ getSimulTimerList()

def Components.TimerSanityCheck.TimerSanityCheck.getSimulTimerList (   self)

Member Data Documentation

◆ begin

int Components.TimerSanityCheck.TimerSanityCheck.begin = self.newtimer.begin % 86400
static

◆ bflag

Components.TimerSanityCheck.TimerSanityCheck.bflag

◆ cnt

int Components.TimerSanityCheck.TimerSanityCheck.cnt = 0
static

◆ ConflictTimer

Components.TimerSanityCheck.TimerSanityCheck.ConflictTimer = None
static

◆ ConflictTunerType [1/2]

Components.TimerSanityCheck.TimerSanityCheck.ConflictTunerType = None
static

◆ ConflictTunerType [2/2]

list Components.TimerSanityCheck.TimerSanityCheck.ConflictTunerType = tunerType
static

◆ eflag

Components.TimerSanityCheck.TimerSanityCheck.eflag

◆ event_begin

int Components.TimerSanityCheck.TimerSanityCheck.event_begin = self.newtimer.begin
static

◆ event_end

Components.TimerSanityCheck.TimerSanityCheck.event_end = self.newtimer.end
static

◆ fakeRec

Components.TimerSanityCheck.TimerSanityCheck.fakeRec = None
static

◆ fakeRecList

list Components.TimerSanityCheck.TimerSanityCheck.fakeRecList = []
static

order list chronological

detect overlapping timers and overlapping times

◆ fakeRecResult [1/2]

Components.TimerSanityCheck.TimerSanityCheck.fakeRecResult = fakeRecService.start(True)
static

◆ fakeRecResult [2/2]

int Components.TimerSanityCheck.TimerSanityCheck.fakeRecResult = -1
static

◆ fakeRecService

Components.TimerSanityCheck.TimerSanityCheck.fakeRecService = NavigationInstance.instance.recordService(timer.service_ref, True)
static

◆ idx

int Components.TimerSanityCheck.TimerSanityCheck.idx = 0
static

now process existing timers

◆ interval_begin

Components.TimerSanityCheck.TimerSanityCheck.interval_begin = min(self.nrep_eventlist)[0]
static

journalize timer repeations

◆ interval_end

Components.TimerSanityCheck.TimerSanityCheck.interval_end = max(self.nrep_eventlist)[0]
static

◆ kt

bool Components.TimerSanityCheck.TimerSanityCheck.kt = False
static

we have detected a conflict, now we must figure out the involved timers

◆ localtimediff

Components.TimerSanityCheck.TimerSanityCheck.localtimediff

◆ new_event_begin

Components.TimerSanityCheck.TimerSanityCheck.new_event_begin = event[0] + offset_0 + (cnt * 604800)
static

◆ new_event_end

Components.TimerSanityCheck.TimerSanityCheck.new_event_end = new_event_begin + (event_end - event_begin)
static

◆ new_lth

Components.TimerSanityCheck.TimerSanityCheck.new_lth = localtime(new_event_begin).tm_hour
static

◆ newtimer

Components.TimerSanityCheck.TimerSanityCheck.newtimer
static

◆ newTimerTunerType [1/2]

Components.TimerSanityCheck.TimerSanityCheck.newTimerTunerType = None
static

◆ newTimerTunerType [2/2]

list Components.TimerSanityCheck.TimerSanityCheck.newTimerTunerType = tunerType
static

◆ nrep_eventlist

Components.TimerSanityCheck.TimerSanityCheck.nrep_eventlist
static

◆ nt

bool Components.TimerSanityCheck.TimerSanityCheck.nt = False
static

◆ offset_0 [1/2]

Components.TimerSanityCheck.TimerSanityCheck.offset_0 = interval_begin - (interval_begin % 604800)
static

◆ offset_0 [2/2]

int Components.TimerSanityCheck.TimerSanityCheck.offset_0 = 345600
static

◆ overlaplist

list Components.TimerSanityCheck.TimerSanityCheck.overlaplist = []
static

◆ ref

Components.TimerSanityCheck.TimerSanityCheck.ref = timer.service_ref.ref
static

◆ rep_eventlist

Components.TimerSanityCheck.TimerSanityCheck.rep_eventlist
static

process the new timer

◆ rflags [1/2]

tuple Components.TimerSanityCheck.TimerSanityCheck.rflags = self.newtimer.repeated
static

◆ rflags [2/2]

tuple Components.TimerSanityCheck.TimerSanityCheck.rflags = ((rflags & 0x7F)>> 3)|((rflags & 0x07)<<4)
static

◆ serviceList

Components.TimerSanityCheck.TimerSanityCheck.serviceList = serviceHandler.list(ref)
static

◆ simultimer

Components.TimerSanityCheck.TimerSanityCheck.simultimer
static

◆ timer

Components.TimerSanityCheck.TimerSanityCheck.timer = self.newtimer
static

◆ timerlist

Components.TimerSanityCheck.TimerSanityCheck.timerlist

◆ tunerType

list Components.TimerSanityCheck.TimerSanityCheck.tunerType = [ ]
static

◆ type

def Components.TimerSanityCheck.TimerSanityCheck.type = getServiceType(ref)
static

◆ weeks

tuple Components.TimerSanityCheck.TimerSanityCheck.weeks = (interval_end - offset_0) // 604800
static

The documentation for this class was generated from the following file: