openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
Components.Opkg.OpkgComponent Class Reference

Public Member Functions

def __init__ (self, opkg="/usr/bin/opkg")
 
def startCmd (self, cmd, args=None)
 
def cmdData (self, data)
 
def parseLine (self, line)
 
def isExcluded (self, item)
 
def cmdFinished (self, retVal)
 
def callCallbacks (self, event, parameter=None)
 
def addCallback (self, callback)
 
def removeCallback (self, callback)
 
def getFetchedList (self)
 
def getExcludeList (self)
 
def stop (self)
 
def isRunning (self)
 
def write (self, what)
 
def getCommandText (self, command)
 
def getEventText (self, event)
 

Public Attributes

 opkg
 
 cmd
 
 callbackList
 
 fetchedList
 
 excludeList
 
 currentCommand
 
 nextCommand
 
 cache
 
 cachePtr
 

Static Public Attributes

int CMD_INSTALL = 0
 
int CMD_LIST = 1
 
int CMD_REMOVE = 2
 
int CMD_UPDATE = 3
 
int CMD_UPGRADE = 4
 
int CMD_UPGRADE_LIST = 5
 
int CMD_LIST_INSTALLED = 6
 
int CMD_CLEAN = 100
 
int CMD_CLEAN_UPDATE = 101
 
int CMD_SET_FLAG = 102
 
int CMD_UPGRADE_EXCLUDE = 103
 
int CMD_RESET_FLAG = 104
 
int EVENT_INSTALL = 0
 
int EVENT_DOWNLOAD = 1
 
int EVENT_INFLATING = 2
 
int EVENT_CONFIGURING = 3
 
int EVENT_REMOVE = 4
 
int EVENT_UPVERSION = 5
 
int EVENT_UPGRADE = 6
 
int EVENT_UPDATED = 7
 
int EVENT_DESELECTED = 8
 
int EVENT_LISTITEM = 9
 
int EVENT_DONE = 10
 
int EVENT_ERROR = 11
 
int EVENT_MODIFIED = 12
 

Constructor & Destructor Documentation

◆ __init__()

def Components.Opkg.OpkgComponent.__init__ (   self,
  opkg = "/usr/bin/opkg" 
)

Member Function Documentation

◆ addCallback()

def Components.Opkg.OpkgComponent.addCallback (   self,
  callback 
)

◆ callCallbacks()

def Components.Opkg.OpkgComponent.callCallbacks (   self,
  event,
  parameter = None 
)

◆ cmdData()

def Components.Opkg.OpkgComponent.cmdData (   self,
  data 
)

◆ cmdFinished()

def Components.Opkg.OpkgComponent.cmdFinished (   self,
  retVal 
)

◆ getCommandText()

def Components.Opkg.OpkgComponent.getCommandText (   self,
  command 
)

◆ getEventText()

def Components.Opkg.OpkgComponent.getEventText (   self,
  event 
)

◆ getExcludeList()

def Components.Opkg.OpkgComponent.getExcludeList (   self)

◆ getFetchedList()

def Components.Opkg.OpkgComponent.getFetchedList (   self)

◆ isExcluded()

def Components.Opkg.OpkgComponent.isExcluded (   self,
  item 
)

◆ isRunning()

def Components.Opkg.OpkgComponent.isRunning (   self)

◆ parseLine()

def Components.Opkg.OpkgComponent.parseLine (   self,
  line 
)

◆ removeCallback()

def Components.Opkg.OpkgComponent.removeCallback (   self,
  callback 
)

◆ startCmd()

def Components.Opkg.OpkgComponent.startCmd (   self,
  cmd,
  args = None 
)

◆ stop()

def Components.Opkg.OpkgComponent.stop (   self)

◆ write()

def Components.Opkg.OpkgComponent.write (   self,
  what 
)

Member Data Documentation

◆ cache

Components.Opkg.OpkgComponent.cache

◆ cachePtr

Components.Opkg.OpkgComponent.cachePtr

◆ callbackList

Components.Opkg.OpkgComponent.callbackList

◆ cmd

Components.Opkg.OpkgComponent.cmd

◆ CMD_CLEAN

int Components.Opkg.OpkgComponent.CMD_CLEAN = 100
static

◆ CMD_CLEAN_UPDATE

int Components.Opkg.OpkgComponent.CMD_CLEAN_UPDATE = 101
static

◆ CMD_INSTALL

int Components.Opkg.OpkgComponent.CMD_INSTALL = 0
static

◆ CMD_LIST

int Components.Opkg.OpkgComponent.CMD_LIST = 1
static

◆ CMD_LIST_INSTALLED

int Components.Opkg.OpkgComponent.CMD_LIST_INSTALLED = 6
static

◆ CMD_REMOVE

int Components.Opkg.OpkgComponent.CMD_REMOVE = 2
static

◆ CMD_RESET_FLAG

int Components.Opkg.OpkgComponent.CMD_RESET_FLAG = 104
static

◆ CMD_SET_FLAG

int Components.Opkg.OpkgComponent.CMD_SET_FLAG = 102
static

◆ CMD_UPDATE

int Components.Opkg.OpkgComponent.CMD_UPDATE = 3
static

◆ CMD_UPGRADE

int Components.Opkg.OpkgComponent.CMD_UPGRADE = 4
static

◆ CMD_UPGRADE_EXCLUDE

int Components.Opkg.OpkgComponent.CMD_UPGRADE_EXCLUDE = 103
static

◆ CMD_UPGRADE_LIST

int Components.Opkg.OpkgComponent.CMD_UPGRADE_LIST = 5
static

◆ currentCommand

Components.Opkg.OpkgComponent.currentCommand

◆ EVENT_CONFIGURING

int Components.Opkg.OpkgComponent.EVENT_CONFIGURING = 3
static

◆ EVENT_DESELECTED

int Components.Opkg.OpkgComponent.EVENT_DESELECTED = 8
static

◆ EVENT_DONE

int Components.Opkg.OpkgComponent.EVENT_DONE = 10
static

◆ EVENT_DOWNLOAD

int Components.Opkg.OpkgComponent.EVENT_DOWNLOAD = 1
static

◆ EVENT_ERROR

int Components.Opkg.OpkgComponent.EVENT_ERROR = 11
static

◆ EVENT_INFLATING

int Components.Opkg.OpkgComponent.EVENT_INFLATING = 2
static

◆ EVENT_INSTALL

int Components.Opkg.OpkgComponent.EVENT_INSTALL = 0
static

◆ EVENT_LISTITEM

int Components.Opkg.OpkgComponent.EVENT_LISTITEM = 9
static

◆ EVENT_MODIFIED

int Components.Opkg.OpkgComponent.EVENT_MODIFIED = 12
static

◆ EVENT_REMOVE

int Components.Opkg.OpkgComponent.EVENT_REMOVE = 4
static

◆ EVENT_UPDATED

int Components.Opkg.OpkgComponent.EVENT_UPDATED = 7
static

◆ EVENT_UPGRADE

int Components.Opkg.OpkgComponent.EVENT_UPGRADE = 6
static

◆ EVENT_UPVERSION

int Components.Opkg.OpkgComponent.EVENT_UPVERSION = 5
static

◆ excludeList

Components.Opkg.OpkgComponent.excludeList

◆ fetchedList

Components.Opkg.OpkgComponent.fetchedList

◆ nextCommand

Components.Opkg.OpkgComponent.nextCommand

◆ opkg

Components.Opkg.OpkgComponent.opkg

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