Package com.biglybt.core.devices.impl
Class DeviceMediaRendererImpl
- java.lang.Object
-
- com.biglybt.core.devices.impl.DeviceImpl
-
- com.biglybt.core.devices.impl.DeviceUPnPImpl
-
- com.biglybt.core.devices.impl.DeviceMediaRendererImpl
-
- All Implemented Interfaces:
Device
,DeviceMediaRenderer
,DeviceUPnP
,TranscodeTarget
,TranscodeTargetListener
- Direct Known Subclasses:
DeviceiTunes
,DeviceMediaRendererManual
,DeviceTivo
public class DeviceMediaRendererImpl extends DeviceUPnPImpl implements DeviceMediaRenderer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.core.devices.impl.DeviceImpl
DeviceImpl.browseLocationImpl
-
Nested classes/interfaces inherited from interface com.biglybt.core.devices.Device
Device.browseLocation
-
-
Field Summary
Fields Modifier and Type Field Description private static int
INSTALL_CHECK_PERIOD
private static AsyncDispatcher
share_dispatcher
(package private) static java.util.List<java.lang.Object[]>
share_requests
(package private) static TorrentAttribute
share_ta
private static int
TAG_SHARE_CHECK_TICKS
-
Fields inherited from class com.biglybt.core.devices.impl.DeviceUPnPImpl
MY_ACF_KEY, upnp_manager
-
Fields inherited from class com.biglybt.core.devices.impl.DeviceImpl
device_files, device_files_dirty, device_files_last_mod, 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.biglybt.core.devices.Device
DT_CONTENT_DIRECTORY, DT_DISK_OPS, DT_INTERNET, DT_INTERNET_GATEWAY, DT_MEDIA_RENDERER, DT_UNKNOWN
-
Fields inherited from interface com.biglybt.core.devices.DeviceMediaRenderer
RS_BROWSER, RS_ITUNES, RS_OTHER, RS_PS3, RS_WII, RS_XBOX
-
Fields inherited from interface com.biglybt.core.devices.TranscodeTarget
TRANSCODE_ALWAYS, TRANSCODE_NEVER, TRANSCODE_UNKNOWN, TRANSCODE_WHEN_REQUIRED
-
Fields inherited from interface com.biglybt.core.devices.TranscodeTargetListener
CT_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description DeviceMediaRendererImpl(DeviceManagerImpl _manager, UPnPDevice _device)
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)
protected
DeviceMediaRendererImpl(DeviceManagerImpl _manager, java.util.Map _map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
private void
shareRequestAdded()
protected boolean
updateFrom(DeviceImpl _other, boolean _is_alive)
protected void
updateStatus(int tick_count)
-
Methods inherited from class com.biglybt.core.devices.impl.DeviceUPnPImpl
associate, browseReceived, canAssociate, canFilterFilesView, canRestrictAccess, fileAdded, fileAdded, fileChanged, fileRemoved, getAccessRestriction, getACFKey, getAddress, getBrowseLocations, getDisplayName, getFilterFilesView, getImageID, getImageIDs, getLocation, getMimeType, getPresentationURL, getStreamURL, getStreamURL, getUPnPDevice, getUPnPDeviceManager, isBrowsable, isLivenessDetectable, isVisible, isVisible, resetUPNPAV, setAccessRestriction, setCategories, setFilterFilesView, setTags, setUPnPDevice, setupStreamXCode, syncCategoriesAndTags, UPnPInitialised
-
Methods inherited from class com.biglybt.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.biglybt.core.devices.Device
addListener, alive, canRemove, getBrowseLocations, getClassification, getDirectTranscodeProfiles, getDisplayProperties, getError, getID, getImageID, getImageIDs, 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.biglybt.core.devices.DeviceMediaRenderer
associate, canAssociate, canFilterFilesView, canRestrictAccess, getAccessRestriction, getAddress, getAutoShareToTagID, getFilterFilesView, getRendererSpecies, isRSSPublishEnabled, setAccessRestriction, setAutoShareToTagID, setFilterFilesView, setRSSPublishEnabled
-
Methods inherited from interface com.biglybt.core.devices.TranscodeTarget
addListener, getAlwaysCacheFiles, getBlankProfile, getDefaultTranscodeProfile, getDevice, getFiles, getID, getTranscodeProfiles, getTranscodeRequirement, getWorkingDirectory, isAudioCompatible, isNonSimple, isTranscoding, removeListener, setAlwaysCacheFiles, setDefaultTranscodeProfile, setTranscodeRequirement, setWorkingDirectory
-
-
-
-
Field Detail
-
INSTALL_CHECK_PERIOD
private static final int INSTALL_CHECK_PERIOD
- See Also:
- Constant Field Values
-
TAG_SHARE_CHECK_TICKS
private static final int TAG_SHARE_CHECK_TICKS
- See Also:
- Constant Field Values
-
share_ta
static TorrentAttribute share_ta
-
share_requests
static java.util.List<java.lang.Object[]> share_requests
-
share_dispatcher
private static AsyncDispatcher share_dispatcher
-
-
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 interfaceDevice
- Overrides:
setAddress
in classDeviceUPnPImpl
-
updateFrom
protected boolean updateFrom(DeviceImpl _other, boolean _is_alive)
- Overrides:
updateFrom
in classDeviceUPnPImpl
-
initialise
protected void initialise()
- Overrides:
initialise
in classDeviceUPnPImpl
-
updateStatus
protected void updateStatus(int tick_count)
- Overrides:
updateStatus
in classDeviceImpl
-
shareRequestAdded
private void shareRequestAdded()
-
destroy
protected void destroy()
- Overrides:
destroy
in classDeviceUPnPImpl
-
canCopyToDevice
public boolean canCopyToDevice()
- Specified by:
canCopyToDevice
in interfaceDeviceMediaRenderer
-
getAutoCopyToDevice
public boolean getAutoCopyToDevice()
- Specified by:
getAutoCopyToDevice
in interfaceDeviceMediaRenderer
-
setAutoCopyToDevice
public void setAutoCopyToDevice(boolean auto)
- Specified by:
setAutoCopyToDevice
in interfaceDeviceMediaRenderer
-
getCopyToDevicePending
public int getCopyToDevicePending()
- Specified by:
getCopyToDevicePending
in interfaceDeviceMediaRenderer
-
canAutoStartDevice
public boolean canAutoStartDevice()
- Specified by:
canAutoStartDevice
in interfaceDeviceMediaRenderer
-
getAutoStartDevice
public boolean getAutoStartDevice()
- Specified by:
getAutoStartDevice
in interfaceDeviceMediaRenderer
-
setAutoStartDevice
public void setAutoStartDevice(boolean auto)
- Specified by:
setAutoStartDevice
in interfaceDeviceMediaRenderer
-
canCopyToFolder
public boolean canCopyToFolder()
- Specified by:
canCopyToFolder
in interfaceDeviceMediaRenderer
-
setCanCopyToFolder
public void setCanCopyToFolder(boolean can)
- Specified by:
setCanCopyToFolder
in interfaceDeviceMediaRenderer
-
getCopyToFolder
public java.io.File getCopyToFolder()
- Specified by:
getCopyToFolder
in interfaceDeviceMediaRenderer
-
setCopyToFolder
public void setCopyToFolder(java.io.File file)
- Specified by:
setCopyToFolder
in interfaceDeviceMediaRenderer
-
getCopyToFolderPending
public int getCopyToFolderPending()
- Specified by:
getCopyToFolderPending
in interfaceDeviceMediaRenderer
-
getAutoCopyToFolder
public boolean getAutoCopyToFolder()
- Specified by:
getAutoCopyToFolder
in interfaceDeviceMediaRenderer
-
setAutoCopyToFolder
public void setAutoCopyToFolder(boolean auto)
- Specified by:
setAutoCopyToFolder
in interfaceDeviceMediaRenderer
-
manualCopy
public void manualCopy() throws DeviceManagerException
- Specified by:
manualCopy
in interfaceDeviceMediaRenderer
- Throws:
DeviceManagerException
-
canShowCategories
public boolean canShowCategories()
- Specified by:
canShowCategories
in interfaceDeviceMediaRenderer
-
setShowCategories
public void setShowCategories(boolean b)
- Specified by:
setShowCategories
in interfaceDeviceMediaRenderer
-
getShowCategories
public boolean getShowCategories()
- Specified by:
getShowCategories
in interfaceDeviceMediaRenderer
-
getShowCategoriesDefault
protected boolean getShowCategoriesDefault()
-
getDisplayProperties
protected void getDisplayProperties(java.util.List<java.lang.String[]> dp)
- Overrides:
getDisplayProperties
in classDeviceUPnPImpl
-
generate
public void generate(IndentWriter writer)
- Overrides:
generate
in classDeviceUPnPImpl
-
-