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

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.DeviceMediaRendererManual
All Implemented Interfaces:
Device, DeviceMediaRenderer, DeviceUPnP, TranscodeTarget, TranscodeTargetListener, DownloadManagerListener

public class DeviceMediaRendererManual
extends DeviceMediaRendererImpl


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 DeviceMediaRendererManual(DeviceManagerImpl _manager, Map _map)
           
protected DeviceMediaRendererManual(DeviceManagerImpl _manager, String _uid, String _classification, boolean _manual, String _name)
           
 
Method Summary
 boolean canAssociate()
           
 boolean canCopyToFolder()
           
 boolean canFilterFilesView()
           
 boolean canRestrictAccess()
           
protected  boolean doCopy()
           
 void generate(IndentWriter writer)
           
 boolean getAutoCopyToFolder()
           
 File getCopyToFolder()
           
 int getCopyToFolderPending()
           
protected  void getDisplayProperties(List<String[]> dp)
           
 String getStatus()
           
protected  void initialise()
           
 boolean isAudioCompatible(TranscodeFile transcode_file)
           
 boolean isBrowsable()
           
 boolean isExportable()
           
 boolean isLivenessDetectable()
           
 void manualCopy()
           
protected  void performCopy()
           
 void setAutoCopyToFolder(boolean auto)
           
 void setCanCopyToFolder(boolean can)
           
protected  void setCopyOutstanding()
           
 void setCopyToFolder(File file)
           
 void setLivenessDetectable(boolean b)
           
 
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceMediaRendererImpl
canAutoStartDevice, canCopyToDevice, canShowCategories, destroy, getAutoCopyToDevice, getAutoStartDevice, getCopyToDevicePending, getShowCategories, getShowCategoriesDefault, setAddress, setAutoCopyToDevice, setAutoStartDevice, setShowCategories, updateFrom, updateStatus
 
Methods inherited from class com.aelitis.azureus.core.devices.impl.DeviceUPnPImpl
addDynamicXCode, associate, browseReceived, downloadAdded, downloadRemoved, fileAdded, fileAdded, fileChanged, fileRemoved, getAccessRestriction, getACFKey, getAddress, getBrowseLocations, 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, 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, getString, getTranscodeFile, getTranscodeProfiles, getTranscodeProfiles, getTranscodeRequirement, getTransientProperty, getTransientProperty, getTTDisplayProperties, getType, getVuzeFile, getWikiURL, getWorkingDirectory, getWorkingDirectory, importFromBEncodedMapStatic, isAlive, isAutoHidden, isBusy, 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, 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, getString, getTransientProperty, getType, getVuzeFile, getWikiURL, isAlive, isBusy, isGenericUSB, isHidden, 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, isNonSimple, isTranscoding, removeListener, setAlwaysCacheFiles, setDefaultTranscodeProfile, setTranscodeRequirement, setWorkingDirectory
 

Constructor Detail

DeviceMediaRendererManual

protected DeviceMediaRendererManual(DeviceManagerImpl _manager,
                                    String _uid,
                                    String _classification,
                                    boolean _manual,
                                    String _name)

DeviceMediaRendererManual

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

initialise

protected void initialise()
Overrides:
initialise 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

canFilterFilesView

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

isBrowsable

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

canCopyToFolder

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

setCanCopyToFolder

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

getCopyToFolder

public File getCopyToFolder()
Specified by:
getCopyToFolder in interface DeviceMediaRenderer
Overrides:
getCopyToFolder in class DeviceMediaRendererImpl

setCopyToFolder

public void setCopyToFolder(File file)
Specified by:
setCopyToFolder in interface DeviceMediaRenderer
Overrides:
setCopyToFolder in class DeviceMediaRendererImpl

isLivenessDetectable

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

setLivenessDetectable

public void setLivenessDetectable(boolean b)

getCopyToFolderPending

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

getAutoCopyToFolder

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

setAutoCopyToFolder

public void setAutoCopyToFolder(boolean auto)
Specified by:
setAutoCopyToFolder in interface DeviceMediaRenderer
Overrides:
setAutoCopyToFolder 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()

isAudioCompatible

public boolean isAudioCompatible(TranscodeFile transcode_file)
Specified by:
isAudioCompatible in interface TranscodeTarget
Overrides:
isAudioCompatible in class DeviceImpl

performCopy

protected void performCopy()

doCopy

protected boolean doCopy()

isExportable

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

getDisplayProperties

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

generate

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

getStatus

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