enigma2  2.6
Public Member Functions | Public Attributes | List of all members
Plugins.Extensions.Browser.Downloads.DownloadTask Class Reference
Inheritance diagram for Plugins.Extensions.Browser.Downloads.DownloadTask:
Components.Task.Task

Public Member Functions

def __init__ (self, job, url, fileName, agent=None)
 
def prepare (self)
 
def run (self, callback)
 
def http_progress (self, recvbytes, totalbytes)
 
def http_finished (self, string="")
 
def http_failed (self, failure_instance=None, error_message="")
 
- 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 cleanup (self, failed)
 
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)
 

Public Attributes

 agent
 
 end
 
 url
 
 local
 
 error
 
 callback
 
 download
 
 progress
 
- 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
 
 appClosed_conn
 
 stdoutAvail_conn
 
 stderrAvail_conn
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ __init__()

def Plugins.Extensions.Browser.Downloads.DownloadTask.__init__ (   self,
  job,
  url,
  fileName,
  agent = None 
)

Member Function Documentation

◆ http_failed()

def Plugins.Extensions.Browser.Downloads.DownloadTask.http_failed (   self,
  failure_instance = None,
  error_message = "" 
)

◆ http_finished()

def Plugins.Extensions.Browser.Downloads.DownloadTask.http_finished (   self,
  string = "" 
)

◆ http_progress()

def Plugins.Extensions.Browser.Downloads.DownloadTask.http_progress (   self,
  recvbytes,
  totalbytes 
)

◆ prepare()

def Plugins.Extensions.Browser.Downloads.DownloadTask.prepare (   self)

Reimplemented from Components.Task.Task.

◆ run()

def Plugins.Extensions.Browser.Downloads.DownloadTask.run (   self,
  callback 
)

Reimplemented from Components.Task.Task.

Member Data Documentation

◆ agent

Plugins.Extensions.Browser.Downloads.DownloadTask.agent

◆ callback

Plugins.Extensions.Browser.Downloads.DownloadTask.callback

◆ download

Plugins.Extensions.Browser.Downloads.DownloadTask.download

◆ end

Plugins.Extensions.Browser.Downloads.DownloadTask.end

◆ error

Plugins.Extensions.Browser.Downloads.DownloadTask.error

◆ local

Plugins.Extensions.Browser.Downloads.DownloadTask.local

◆ progress

Plugins.Extensions.Browser.Downloads.DownloadTask.progress

◆ url

Plugins.Extensions.Browser.Downloads.DownloadTask.url

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