org.stanwood.media.source.xbmc.updater
Interface IXBMCUpdater

All Known Implementing Classes:
XBMCWebUpdater

public interface IXBMCUpdater

This interface should be implemented by classes that can update the instance XBMC addons


Method Summary
 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 xbmcAddonManager)
          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> addonList)
          Update a list of addons to the latest version and the addons they depend on
 

Method Detail

listAddons

java.util.Set<AddonDetails> listAddons(IConsole console)
                                       throws XBMCUpdaterException
Used to get a list of installed and uninstalled addons

Parameters:
console - The console used to send messages to
Returns:
The list of addons
Throws:
XBMCUpdaterException - thrown if their are any problems

update

int update(IConsole console)
           throws XBMCUpdaterException,
                  XBMCException
Update all addons to the latest version

Parameters:
console - The console used to send messages to
Returns:
The number of addones updated
Throws:
XBMCUpdaterException - thrown if their are any problems with the updater
XBMCException - Thrown if their are any other problems

update

int update(IConsole console,
           java.util.Set<java.lang.String> addonList)
           throws XBMCException
Update a list of addons to the latest version and the addons they depend on

Parameters:
console - The console used to send messages to
addonList - The list of addons to update
Returns:
The number of addones updated
Throws:
XBMCUpdaterException - thrown if their are any problems with the updater
XBMCException - Thrown if their are any other problems

setAddonManager

void setAddonManager(XBMCAddonManager xbmcAddonManager)
Register the XBMC manager with the updater

Parameters:
xbmcAddonManager - the XBMC manager

installAddons

int installAddons(IConsole console,
                  java.util.Set<java.lang.String> addonIds)
                  throws XBMCException
Used to install a list of addons

Parameters:
console - The console used to send messages to
addonIds - a list of addon ID's to install
Returns:
The number of installed addons
Throws:
XBMCException - Thrown if their are any problems

uninstallAddons

int uninstallAddons(IConsole console,
                    java.util.Set<java.lang.String> addonIds)
                    throws XBMCUpdaterException
Used to uninstall a list of addons and any that depend on these addons

Parameters:
console - The console used to send messages to
addonIds - a list of addon ID's to uninstall
Returns:
The number of uninstalled addons
Throws:
XBMCUpdaterException - Thrown if their are any problems