|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.xml.XMLParser
org.stanwood.media.source.xbmc.updater.XBMCWebUpdater
public class XBMCWebUpdater
This class is used to install, remove or update XBMC addons
Field Summary |
---|
Fields inherited from class org.stanwood.media.xml.XMLParser |
---|
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION |
Constructor Summary | |
---|---|
XBMCWebUpdater(ConfigReader config)
The constructor |
Method Summary | |
---|---|
protected java.io.File |
downloadLatestAddonXML()
|
int |
installAddons(IConsole console,
java.util.Set<java.lang.String> addonIds)
Used to install a list of addons |
java.util.Set<AddonDetails> |
listAddons(IConsole console)
Used to get a list of installed and uninstalled addons |
void |
setAddonManager(XBMCAddonManager mgr)
Register the XBMC manager with the updater |
int |
uninstallAddons(IConsole console,
java.util.Set<java.lang.String> addonIds)
Used to uninstall a list of addons and any that depend on these addons |
int |
update(IConsole console)
Update all addons to the latest version |
int |
update(IConsole console,
java.util.Set<java.lang.String> pluginList)
Update a list of addons to the latest version and the addons they depend on |
protected int |
updatePlugins(IConsole console,
java.io.File newAddon,
java.util.Set<java.lang.String> plugins)
|
Methods inherited from class org.stanwood.media.xml.XMLParser |
---|
createDocBuilder, createFactory, deleteNode, domToStr, encodeAttributeValue, firstChild, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XBMCWebUpdater(ConfigReader config) throws XBMCException
config
- The Media directory configuration
XBMCException
- Thrown if their is a problem reading from the configurationMethod Detail |
---|
public void setAddonManager(XBMCAddonManager mgr)
setAddonManager
in interface IXBMCUpdater
mgr
- the XBMC managerpublic java.util.Set<AddonDetails> listAddons(IConsole console) throws XBMCUpdaterException
listAddons
in interface IXBMCUpdater
console
- The console used to send messages to
XBMCUpdaterException
- thrown if their are any problemspublic int installAddons(IConsole console, java.util.Set<java.lang.String> addonIds) throws XBMCException
installAddons
in interface IXBMCUpdater
console
- The console used to send messages toaddonIds
- a list of addon ID's to install
XBMCException
- Thrown if their are any problemspublic int uninstallAddons(IConsole console, java.util.Set<java.lang.String> addonIds) throws XBMCUpdaterException
uninstallAddons
in interface IXBMCUpdater
console
- The console used to send messages toaddonIds
- a list of addon ID's to uninstall
XBMCUpdaterException
- Thrown if their are any problemspublic int update(IConsole console, java.util.Set<java.lang.String> pluginList) throws XBMCException
update
in interface IXBMCUpdater
console
- The console used to send messages topluginList
- The list of addons to update
XBMCUpdaterException
- thrown if their are any problems with the updater
XBMCException
- Thrown if their are any other problemspublic int update(IConsole console) throws XBMCException
update
in interface IXBMCUpdater
console
- The console used to send messages to
XBMCUpdaterException
- thrown if their are any problems with the updater
XBMCException
- Thrown if their are any other problemsprotected int updatePlugins(IConsole console, java.io.File newAddon, java.util.Set<java.lang.String> plugins) throws XMLParserException, java.io.IOException, XBMCUpdaterException, XBMCException
XMLParserException
java.io.IOException
XBMCUpdaterException
XBMCException
protected java.io.File downloadLatestAddonXML() throws java.io.IOException, XBMCUpdaterException
java.io.IOException
XBMCUpdaterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |