openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
Components.Task.ConditionTask Class Reference
Inheritance diagram for Components.Task.ConditionTask:
Components.Task.Task

Public Member Functions

def __init__ (self, job, name, timeoutCount=None)
 
def prepare (self)
 
def cleanup (self, failed)
 
def check (self)
 
def trigger (self)
 
- Public Member Functions inherited from Components.Task.Task
def __init__ (self, job, name)
 
def setCommandline (self, cmd, args)
 
def setTool (self, tool)
 
def setCmdline (self, cmdline)
 
def checkPreconditions (self, immediate=False)
 
def run (self, callback)
 
def processStdout (self, data)
 
def processStderr (self, data)
 
def processOutput (self, data)
 
def processOutputLine (self, line)
 
def processFinished (self, returncode)
 
def abort (self)
 
def finish (self, aborted=False)
 
def afterRun (self)
 
def writeInput (self, input)
 
def getProgress (self)
 
def setProgress (self, progress)
 
def __str__ (self)
 

Public Attributes

 timeoutCount
 
 triggerCount
 
 timer
 
- Public Attributes inherited from Components.Task.Task
 name
 
 immediate_preconditions
 
 global_preconditions
 
 postconditions
 
 returncode
 
 initial_input
 
 job
 
 end
 
 weighting
 
 cmd
 
 cwd
 
 args
 
 cmdline
 
 task_progress_changed
 
 output_line
 
 container
 
 callback
 

Additional Inherited Members

- Properties inherited from Components.Task.Task
 progress = property(getProgress, setProgress)
 

Detailed Description

  Reactor-driven pthread_condition.
  Wait for something to happen. Call trigger when something occurs that
  is likely to make check() return true. Raise exception in check() to
  signal error.
  Default is to call trigger() once per second, override prepare/cleanup
  to do something else (like waiting for hotplug)...

Constructor & Destructor Documentation

◆ __init__()

def Components.Task.ConditionTask.__init__ (   self,
  job,
  name,
  timeoutCount = None 
)

Member Function Documentation

◆ check()

def Components.Task.ConditionTask.check (   self)

◆ cleanup()

def Components.Task.ConditionTask.cleanup (   self,
  failed 
)

Reimplemented from Components.Task.Task.

◆ prepare()

def Components.Task.ConditionTask.prepare (   self)

Reimplemented from Components.Task.Task.

◆ trigger()

def Components.Task.ConditionTask.trigger (   self)

Member Data Documentation

◆ timeoutCount

Components.Task.ConditionTask.timeoutCount

◆ timer

Components.Task.ConditionTask.timer

◆ triggerCount

Components.Task.ConditionTask.triggerCount

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