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

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
All Implemented Interfaces:
Device, DeviceMediaRenderer, DeviceUPnP, TranscodeTarget, TranscodeTargetListener, DownloadManagerListener
Direct Known Subclasses:
DeviceiTunes, DeviceMediaRendererManual, DeviceTivo

public class DeviceMediaRendererImpl
extends DeviceUPnPImpl
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 DeviceMediaRendererImpl(DeviceManagerImpl _manager, java.util.Map _map)
           
  DeviceMediaRendererImpl(DeviceManagerImpl _manager, java.lang.String _classification)
           
  DeviceMediaRendererImpl(DeviceManagerImpl _manager, java.lang.String _uuid, java.lang.String _classification, boolean _manual)
           
  DeviceMediaRendererImpl(DeviceManagerImpl _manager, java.lang.String _uuid, java.lang.String _classification, boolean _manual, java.lang.String _name)
           
  DeviceMediaRendererImpl(DeviceManagerImpl _manager, UPnPDevice _device)
           
 
Method Summary
 boolean canAutoStartDevice()
           
 boolean canCopyToDevice()
           
 boolean canCopyToFolder()
           
 boolean canShowCategories()
           
protected  void destroy()
           
 void generate(IndentWriter writer)
           
 boolean getAutoCopyToDevice()
           
 boolean getAutoCopyToFolder()
           
 boolean getAutoStartDevice()
           
 int getCopyToDevicePending()
           
 java.io.File getCopyToFolder()
           
 int getCopyToFolderPending()
           
protected  void getDisplayProperties(java.util.List<java.lang.String[]> dp)
           
 boolean getShowCategories()
           
protected  boolean getShowCategoriesDefault()
           
protected  void initialise()
           
 void manualCopy()
           
 void setAddress(java.net.InetAddress address)
           
 void setAutoCopyToDevice(boolean auto)
           
 void setAutoCopyToFolder(boolean auto)
           
 void setAutoStartDevice(boolean auto)
           
 void setCanCopyToFolder(boolean can)
           
 void setCopyToFolder(java.io.File file)
           
 void setShowCategories(boolean b)
           
protected  boolean updateFrom(DeviceImpl _other, boolean _is_alive)
           
protected  void updateStatus(int tick_count)
           
 
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceUPnPImpl
addDynamicXCode, associate, browseReceived, canAssociate, canFilterFilesView, canRestrictAccess, downloadAdded, downloadRemoved, fileAdded, fileAdded, fileChanged, fileRemoved, getAccessRestriction, getACFKey, getAddress, getBrowseLocations, getDisplayName, getFilterFilesView, getImageID, getLocation, getMimeType, getPresentationURL, getStreamURL, getStreamURL, getUPnPDevice, getUPnPDeviceManager, isBrowsable, isLivenessDetectable, 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, canRemove, close, dead, deleteFile, exportToBEncodedMap, fileDirty, fireChanged, generateTT, getAlwaysCacheFiles, getAutoShareToTagID, getBlankProfile, getClassification, getDefaultTranscodeProfile, getDevice, getDeviceClassification, getDeviceFile, getDevicesDir, getDirectTranscodeProfiles, getDisplayProperties, getError, getFileCount, getFiles, getID, getInfo, getLastSeen, getManager, getName, getPersistentBooleanProperty, getPersistentIntProperty, getPersistentLongProperty, getPersistentMapProperty, getPersistentStringListProperty, getPersistentStringProperty, getPersistentStringProperty, getRendererSpecies, getSecondaryID, getShortDescription, getStatus, getString, getTranscodeFile, getTranscodeProfiles, getTranscodeProfiles, getTranscodeRequirement, getTransientProperty, getTransientProperty, getTTDisplayProperties, getType, getVuzeFile, getWikiURL, 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
associate, canAssociate, canFilterFilesView, canRestrictAccess, getAccessRestriction, getAddress, getAutoShareToTagID, getFilterFilesView, getRendererSpecies, isRSSPublishEnabled, setAccessRestriction, setAutoShareToTagID, setFilterFilesView, setRSSPublishEnabled
 
Methods inherited from interface com.aelitis.azureus.core.devices.Device
addListener, alive, canRemove, getBrowseLocations, getClassification, getDirectTranscodeProfiles, getDisplayProperties, getError, getID, getImageID, getInfo, getName, getShortDescription, getStatus, getString, getTransientProperty, getType, getVuzeFile, getWikiURL, isAlive, isBrowsable, isBusy, isExportable, isGenericUSB, isHidden, isLivenessDetectable, isManual, isNameAutomatic, isTagged, remove, removeListener, requestAttention, 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

DeviceMediaRendererImpl

public DeviceMediaRendererImpl(DeviceManagerImpl _manager,
                               UPnPDevice _device)

DeviceMediaRendererImpl

public DeviceMediaRendererImpl(DeviceManagerImpl _manager,
                               java.lang.String _classification)

DeviceMediaRendererImpl

public DeviceMediaRendererImpl(DeviceManagerImpl _manager,
                               java.lang.String _uuid,
                               java.lang.String _classification,
                               boolean _manual,
                               java.lang.String _name)

DeviceMediaRendererImpl

public DeviceMediaRendererImpl(DeviceManagerImpl _manager,
                               java.lang.String _uuid,
                               java.lang.String _classification,
                               boolean _manual)

DeviceMediaRendererImpl

protected DeviceMediaRendererImpl(DeviceManagerImpl _manager,
                                  java.util.Map _map)
                           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setAddress

public void setAddress(java.net.InetAddress address)
Specified by:
setAddress in interface Device
Overrides:
setAddress in class DeviceUPnPImpl

updateFrom

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

initialise

protected void initialise()
Overrides:
initialise in class DeviceUPnPImpl

updateStatus

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

destroy

protected void destroy()
Overrides:
destroy in class DeviceUPnPImpl

canCopyToDevice

public boolean canCopyToDevice()
Specified by:
canCopyToDevice in interface DeviceMediaRenderer

getAutoCopyToDevice

public boolean getAutoCopyToDevice()
Specified by:
getAutoCopyToDevice in interface DeviceMediaRenderer

setAutoCopyToDevice

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

getCopyToDevicePending

public int getCopyToDevicePending()
Specified by:
getCopyToDevicePending in interface DeviceMediaRenderer

canAutoStartDevice

public boolean canAutoStartDevice()
Specified by:
canAutoStartDevice in interface DeviceMediaRenderer

getAutoStartDevice

public boolean getAutoStartDevice()
Specified by:
getAutoStartDevice in interface DeviceMediaRenderer

setAutoStartDevice

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

canCopyToFolder

public boolean canCopyToFolder()
Specified by:
canCopyToFolder in interface DeviceMediaRenderer

setCanCopyToFolder

public void setCanCopyToFolder(boolean can)
Specified by:
setCanCopyToFolder in interface DeviceMediaRenderer

getCopyToFolder

public java.io.File getCopyToFolder()
Specified by:
getCopyToFolder in interface DeviceMediaRenderer

setCopyToFolder

public void setCopyToFolder(java.io.File file)
Specified by:
setCopyToFolder in interface DeviceMediaRenderer

getCopyToFolderPending

public int getCopyToFolderPending()
Specified by:
getCopyToFolderPending in interface DeviceMediaRenderer

getAutoCopyToFolder

public boolean getAutoCopyToFolder()
Specified by:
getAutoCopyToFolder in interface DeviceMediaRenderer

setAutoCopyToFolder

public void setAutoCopyToFolder(boolean auto)
Specified by:
setAutoCopyToFolder in interface DeviceMediaRenderer

manualCopy

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

canShowCategories

public boolean canShowCategories()
Specified by:
canShowCategories in interface DeviceMediaRenderer

setShowCategories

public void setShowCategories(boolean b)
Specified by:
setShowCategories in interface DeviceMediaRenderer

getShowCategories

public boolean getShowCategories()
Specified by:
getShowCategories in interface DeviceMediaRenderer

getShowCategoriesDefault

protected boolean getShowCategoriesDefault()

getDisplayProperties

protected void getDisplayProperties(java.util.List<java.lang.String[]> dp)
Overrides:
getDisplayProperties in class DeviceUPnPImpl

generate

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