com.aelitis.azureus.core.devices.impl
Class DeviceiTunes

java.lang.Object
  extended by com.aelitis.azureus.core.devices.impl.DeviceImpl
      extended by com.aelitis.azureus.core.devices.impl.DeviceUPnPImpl
          extended by com.aelitis.azureus.core.devices.impl.DeviceMediaRendererImpl
              extended by com.aelitis.azureus.core.devices.impl.DeviceiTunes
All Implemented Interfaces:
Device, DeviceMediaRenderer, DeviceUPnP, TranscodeTarget, TranscodeTargetListener, DownloadManagerListener

public class DeviceiTunes
extends DeviceMediaRendererImpl
implements DeviceMediaRenderer


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aelitis.azureus.core.devices.impl.DeviceUPnPImpl
DeviceUPnPImpl.StreamWrapper
 
Nested classes/interfaces inherited from class com.aelitis.azureus.core.devices.impl.DeviceImpl
DeviceImpl.browseLocationImpl
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.core.devices.Device
Device.browseLocation
 
Field Summary
 
Fields inherited from class com.aelitis.azureus.core.devices.impl.DeviceImpl
PP_AUTO_COPY, PP_AUTO_COPY_DEFAULT, PP_AUTO_START, PP_COPY_OUTSTANDING, PP_COPY_TO_FOLDER, PP_DONT_AUTO_HIDE, PP_EXPORTABLE, PP_FILTER_FILES, PP_IP_ADDRESS, PP_LIVENESS_DETECTABLE, PP_OD_ENABLED, PP_OD_MANUFACTURER, PP_OD_SHOWN_FTUX, PP_OD_STATE_CACHE, PP_OD_UPNP_DISC_CACHE, PP_OD_XFER_CACHE, PP_REND_CLASSIFICATION, PP_REND_SHOW_CAT, PP_RESTRICT_ACCESS, PP_TIVO_MACHINE, PR_AUTO_START_DEFAULT, TP_IP_ADDRESS
 
Fields inherited from interface com.aelitis.azureus.core.devices.DeviceMediaRenderer
RS_BROWSER, RS_ITUNES, RS_OTHER, RS_PS3, RS_WII, RS_XBOX
 
Fields inherited from interface com.aelitis.azureus.core.devices.Device
DT_CONTENT_DIRECTORY, DT_INTERNET, DT_INTERNET_GATEWAY, DT_MEDIA_RENDERER, DT_OFFLINE_DOWNLOADER, DT_UNKNOWN
 
Fields inherited from interface com.aelitis.azureus.core.devices.TranscodeTarget
TRANSCODE_ALWAYS, TRANSCODE_NEVER, TRANSCODE_UNKNOWN, TRANSCODE_WHEN_REQUIRED
 
Fields inherited from interface com.aelitis.azureus.core.devices.TranscodeTargetListener
CT_PROPERTY
 
Constructor Summary
protected DeviceiTunes(DeviceManagerImpl _manager, Map _map)
           
protected DeviceiTunes(DeviceManagerImpl _manager, PluginInterface _itunes)
           
 
Method Summary
 void associate(DeviceManager.UnassociatedDevice assoc)
           
 boolean canAssociate()
           
 boolean canAutoStartDevice()
           
 boolean canCopyToDevice()
           
 boolean canRemove()
           
 boolean canRestrictAccess()
           
protected  void destroy()
           
 void generate(IndentWriter writer)
           
 InetAddress getAddress()
           
 boolean getAutoCopyToDevice()
           
 boolean getAutoStartDevice()
           
 Device.browseLocation[] getBrowseLocations()
           
 int getCopyToDevicePending()
           
protected  String getDeviceClassification()
           
protected  void getDisplayProperties(List<String[]> dp)
           
 int getRendererSpecies()
          THIS WILL CHANGE!!!
 String getStatus()
           
 URL getWikiURL()
           
protected  void initialise()
           
 boolean isBrowsable()
           
 boolean isLivenessDetectable()
           
 void manualCopy()
           
protected  void performCopy()
           
 void setAutoCopyToDevice(boolean auto)
           
 void setAutoStartDevice(boolean auto)
           
protected  void setCopyOutstanding()
           
protected  boolean updateFrom(DeviceImpl _other, boolean _is_alive)
           
protected  void updateiTunesStatus()
           
protected  void updateStatus(int tick_count)
           
protected  void updateStatusSupport(int tick_count)
           
 
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceMediaRendererImpl
canCopyToFolder, canShowCategories, getAutoCopyToFolder, getCopyToFolder, getCopyToFolderPending, getShowCategories, getShowCategoriesDefault, setAddress, setAutoCopyToFolder, setCanCopyToFolder, setCopyToFolder, setShowCategories
 
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceUPnPImpl
addDynamicXCode, browseReceived, canFilterFilesView, downloadAdded, downloadRemoved, fileAdded, fileAdded, fileChanged, fileRemoved, getAccessRestriction, getACFKey, getDisplayName, getFilterFilesView, getImageID, getLocation, getMimeType, getPresentationURL, getStreamURL, getStreamURL, getUPnPDevice, getUPnPDeviceManager, isVisible, isVisible, removeDynamicXCode, resetUPNPAV, setAccessRestriction, setCategories, setFilterFilesView, setTags, setUPnPDevice, setupStreamXCode, syncCategoriesAndTags, UPnPInitialised
 
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceImpl
addDP, addDP, addDP, addDP, addDP, addDP, addListener, addListener, alive, allocateFile, allocateUniqueFileName, close, dead, deleteFile, exportToBEncodedMap, fileDirty, fireChanged, generateTT, getAlwaysCacheFiles, getAutoShareToTagID, getBlankProfile, getClassification, getDefaultTranscodeProfile, getDevice, getDeviceFile, getDevicesDir, getDirectTranscodeProfiles, getDisplayProperties, getError, getFileCount, getFiles, getID, getInfo, getLastSeen, getManager, getName, getPersistentBooleanProperty, getPersistentIntProperty, getPersistentLongProperty, getPersistentMapProperty, getPersistentStringListProperty, getPersistentStringProperty, getPersistentStringProperty, getSecondaryID, getShortDescription, getString, getTranscodeFile, getTranscodeProfiles, getTranscodeProfiles, getTranscodeRequirement, getTransientProperty, getTransientProperty, getTTDisplayProperties, getType, getVuzeFile, getWorkingDirectory, getWorkingDirectory, importFromBEncodedMapStatic, isAlive, isAudioCompatible, isAutoHidden, isBusy, isExportable, isGenericUSB, isHidden, isManual, isNameAutomatic, isNonSimple, isRSSPublishEnabled, isTagged, isTranscoding, loadDeviceFile, log, log, lookupFile, remove, removeListener, removeListener, removePersistentProperty, requestAttention, resetWorkingDirectory, revertFileName, saveDeviceFile, setAlwaysCacheFiles, setAutoHidden, setAutoShareToTagID, setBusy, setCanRemove, setDefaultTranscodeProfile, setDirty, setDirty, setError, setExportable, setGenericUSB, setHidden, setImageID, setInfo, setName, setPersistentBooleanProperty, setPersistentIntProperty, setPersistentLongProperty, setPersistentMapProperty, setPersistentStringListProperty, setPersistentStringProperty, setRSSPublishEnabled, setSecondaryID, setTagged, setTranscodeRequirement, setTranscoding, setTransientProperty, setTransientProperty, setWorkingDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aelitis.azureus.core.devices.DeviceMediaRenderer
canCopyToFolder, canFilterFilesView, canShowCategories, getAccessRestriction, getAutoCopyToFolder, getAutoShareToTagID, getCopyToFolder, getCopyToFolderPending, getFilterFilesView, getShowCategories, isRSSPublishEnabled, setAccessRestriction, setAutoCopyToFolder, setAutoShareToTagID, setCanCopyToFolder, setCopyToFolder, setFilterFilesView, setRSSPublishEnabled, setShowCategories
 
Methods inherited from interface com.aelitis.azureus.core.devices.Device
addListener, alive, getClassification, getDirectTranscodeProfiles, getDisplayProperties, getError, getID, getImageID, getInfo, getName, getShortDescription, getString, getTransientProperty, getType, getVuzeFile, isAlive, isBusy, isExportable, isGenericUSB, isHidden, isManual, isNameAutomatic, isTagged, remove, removeListener, requestAttention, setAddress, setCanRemove, setExportable, setGenericUSB, setHidden, setImageID, setName, setTagged, setTransientProperty
 
Methods inherited from interface com.aelitis.azureus.core.devices.TranscodeTarget
addListener, getAlwaysCacheFiles, getBlankProfile, getDefaultTranscodeProfile, getDevice, getFiles, getID, getTranscodeProfiles, getTranscodeRequirement, getWorkingDirectory, isAudioCompatible, isNonSimple, isTranscoding, removeListener, setAlwaysCacheFiles, setDefaultTranscodeProfile, setTranscodeRequirement, setWorkingDirectory
 

Constructor Detail

DeviceiTunes

protected DeviceiTunes(DeviceManagerImpl _manager,
                       PluginInterface _itunes)

DeviceiTunes

protected DeviceiTunes(DeviceManagerImpl _manager,
                       Map _map)
                throws IOException
Throws:
IOException
Method Detail

updateFrom

protected boolean updateFrom(DeviceImpl _other,
                             boolean _is_alive)
Overrides:
updateFrom in class DeviceMediaRendererImpl

initialise

protected void initialise()
Overrides:
initialise in class DeviceMediaRendererImpl

getDeviceClassification

protected String getDeviceClassification()
Overrides:
getDeviceClassification in class DeviceImpl

getRendererSpecies

public int getRendererSpecies()
Description copied from interface: DeviceMediaRenderer
THIS WILL CHANGE!!!

Specified by:
getRendererSpecies in interface DeviceMediaRenderer
Overrides:
getRendererSpecies in class DeviceImpl
Returns:
RS_

getAddress

public InetAddress getAddress()
Specified by:
getAddress in interface Device
Specified by:
getAddress in interface DeviceMediaRenderer
Overrides:
getAddress in class DeviceUPnPImpl

canRemove

public boolean canRemove()
Specified by:
canRemove in interface Device
Overrides:
canRemove in class DeviceImpl

isLivenessDetectable

public boolean isLivenessDetectable()
Specified by:
isLivenessDetectable in interface Device
Overrides:
isLivenessDetectable in class DeviceUPnPImpl

getWikiURL

public URL getWikiURL()
Specified by:
getWikiURL in interface Device
Overrides:
getWikiURL in class DeviceImpl

destroy

protected void destroy()
Overrides:
destroy in class DeviceMediaRendererImpl

updateStatus

protected void updateStatus(int tick_count)
Overrides:
updateStatus in class DeviceMediaRendererImpl

updateStatusSupport

protected void updateStatusSupport(int tick_count)

updateiTunesStatus

protected void updateiTunesStatus()

canCopyToDevice

public boolean canCopyToDevice()
Specified by:
canCopyToDevice in interface DeviceMediaRenderer
Overrides:
canCopyToDevice in class DeviceMediaRendererImpl

getAutoCopyToDevice

public boolean getAutoCopyToDevice()
Specified by:
getAutoCopyToDevice in interface DeviceMediaRenderer
Overrides:
getAutoCopyToDevice in class DeviceMediaRendererImpl

setAutoCopyToDevice

public void setAutoCopyToDevice(boolean auto)
Specified by:
setAutoCopyToDevice in interface DeviceMediaRenderer
Overrides:
setAutoCopyToDevice in class DeviceMediaRendererImpl

getCopyToDevicePending

public int getCopyToDevicePending()
Specified by:
getCopyToDevicePending in interface DeviceMediaRenderer
Overrides:
getCopyToDevicePending in class DeviceMediaRendererImpl

manualCopy

public void manualCopy()
                throws DeviceManagerException
Specified by:
manualCopy in interface DeviceMediaRenderer
Overrides:
manualCopy in class DeviceMediaRendererImpl
Throws:
DeviceManagerException

setCopyOutstanding

protected void setCopyOutstanding()

canAutoStartDevice

public boolean canAutoStartDevice()
Specified by:
canAutoStartDevice in interface DeviceMediaRenderer
Overrides:
canAutoStartDevice in class DeviceMediaRendererImpl

getAutoStartDevice

public boolean getAutoStartDevice()
Specified by:
getAutoStartDevice in interface DeviceMediaRenderer
Overrides:
getAutoStartDevice in class DeviceMediaRendererImpl

setAutoStartDevice

public void setAutoStartDevice(boolean auto)
Specified by:
setAutoStartDevice in interface DeviceMediaRenderer
Overrides:
setAutoStartDevice in class DeviceMediaRendererImpl

canAssociate

public boolean canAssociate()
Specified by:
canAssociate in interface DeviceMediaRenderer
Overrides:
canAssociate in class DeviceUPnPImpl

canRestrictAccess

public boolean canRestrictAccess()
Specified by:
canRestrictAccess in interface DeviceMediaRenderer
Overrides:
canRestrictAccess in class DeviceUPnPImpl

associate

public void associate(DeviceManager.UnassociatedDevice assoc)
Specified by:
associate in interface DeviceMediaRenderer
Overrides:
associate in class DeviceUPnPImpl

performCopy

protected void performCopy()

isBrowsable

public boolean isBrowsable()
Specified by:
isBrowsable in interface Device
Overrides:
isBrowsable in class DeviceUPnPImpl

getBrowseLocations

public Device.browseLocation[] getBrowseLocations()
Specified by:
getBrowseLocations in interface Device
Overrides:
getBrowseLocations in class DeviceUPnPImpl

getDisplayProperties

protected void getDisplayProperties(List<String[]> dp)
Overrides:
getDisplayProperties in class DeviceMediaRendererImpl

getStatus

public String getStatus()
Specified by:
getStatus in interface Device
Overrides:
getStatus in class DeviceImpl

generate

public void generate(IndentWriter writer)
Overrides:
generate in class DeviceMediaRendererImpl