Package com.biglybt.core.devices.impl
Class DeviceUPnPImpl
java.lang.Object
com.biglybt.core.devices.impl.DeviceImpl
com.biglybt.core.devices.impl.DeviceUPnPImpl
- All Implemented Interfaces:
Device
,DeviceUPnP
,TranscodeTargetListener
- Direct Known Subclasses:
DeviceContentDirectoryImpl
,DeviceInternetGatewayImpl
,DeviceMediaRendererImpl
public abstract class DeviceUPnPImpl
extends DeviceImpl
implements DeviceUPnP, TranscodeTargetListener
-
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
FieldsModifier and TypeFieldDescriptionprivate static final Map<String,
ContentFile> private UPnPDevice
private TranscodeProfile
private Map<String,
ContentFile> (package private) final String
(package private) final DeviceManagerUPnPImpl
private static final Object
private IPCInterface
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.TranscodeTargetListener
CT_PROPERTY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DeviceUPnPImpl
(DeviceManagerImpl _manager, int _type, String _classification) protected
DeviceUPnPImpl
(DeviceManagerImpl _manager, int _type, String _uuid, String _classification, boolean _manual) protected
DeviceUPnPImpl
(DeviceManagerImpl _manager, int _type, String _uuid, String _classification, boolean _manual, String _name) protected
DeviceUPnPImpl
(DeviceManagerImpl _manager, UPnPDevice _device, int _type) protected
DeviceUPnPImpl
(DeviceManagerImpl _manager, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
boolean
boolean
boolean
protected void
destroy()
void
fileAdded
(TranscodeFile _transcode_file) void
fileAdded
(TranscodeFile _transcode_file, boolean _new_file) void
fileChanged
(TranscodeFile file, int type, Object data) void
fileRemoved
(TranscodeFile file) void
generate
(IndentWriter writer) protected String
protected static String
getDisplayName
(UPnPDevice device) protected void
getDisplayProperties
(List<String[]> dp) boolean
protected URL
protected String
getMimeType
(TranscodeFileImpl file) protected URL
getPresentationURL
(UPnPDevice device) protected URL
protected URL
getStreamURL
(TranscodeFileImpl file, String host) protected DeviceManagerUPnPImpl
protected void
boolean
boolean
protected boolean
isVisible
(ContentDownload file) protected boolean
isVisible
(ContentFile file) protected void
void
void
setAddress
(InetAddress address) protected void
setCategories
(TranscodeFileImpl tf, Download dl) void
setFilterFilesView
(boolean filter) protected void
setTags
(TranscodeFileImpl tf, Download dl) protected void
setUPnPDevice
(UPnPDevice device) protected boolean
setupStreamXCode
(TranscodeFileImpl transcode_file) protected void
syncCategoriesAndTags
(TranscodeFileImpl tf, boolean inherit_from_download) protected boolean
updateFrom
(DeviceImpl _other, boolean _is_alive) protected void
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, updateStatus
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, getClassification, getDirectTranscodeProfiles, getDisplayProperties, getError, getID, getInfo, getName, getShortDescription, getStatus, getString, getTransientProperty, getType, getVuzeFile, getWikiURL, isAlive, isBusy, isExportable, isGenericUSB, isHidden, isManual, isNameAutomatic, isTagged, remove, removeListener, requestAttention, setCanRemove, setExportable, setGenericUSB, setHidden, setImageID, setName, setTagged, setTransientProperty
-
Field Details
-
UPNPAV_FILE_KEY
-
acf_map
-
MY_ACF_KEY
-
upnp_manager
-
device_may_be_null
-
upnpav_ipc
-
dynamic_transcode_profile
-
dynamic_xcode_map
-
-
Constructor Details
-
DeviceUPnPImpl
-
DeviceUPnPImpl
-
DeviceUPnPImpl
protected DeviceUPnPImpl(DeviceManagerImpl _manager, int _type, String _uuid, String _classification, boolean _manual, String _name) -
DeviceUPnPImpl
protected DeviceUPnPImpl(DeviceManagerImpl _manager, int _type, String _uuid, String _classification, boolean _manual) -
DeviceUPnPImpl
- Throws:
IOException
-
-
Method Details
-
getDisplayName
-
getACFKey
-
updateFrom
- Overrides:
updateFrom
in classDeviceImpl
-
initialise
protected void initialise()- Overrides:
initialise
in classDeviceImpl
-
UPnPInitialised
protected void UPnPInitialised() -
destroy
protected void destroy()- Overrides:
destroy
in classDeviceImpl
-
getUPnPDeviceManager
-
getUPnPDevice
- Specified by:
getUPnPDevice
in interfaceDeviceUPnP
-
setUPnPDevice
-
isBrowsable
public boolean isBrowsable()- Specified by:
isBrowsable
in interfaceDevice
-
getBrowseLocations
- Specified by:
getBrowseLocations
in interfaceDevice
-
canFilterFilesView
public boolean canFilterFilesView() -
setFilterFilesView
public void setFilterFilesView(boolean filter) -
getFilterFilesView
public boolean getFilterFilesView() -
isLivenessDetectable
public boolean isLivenessDetectable()- Specified by:
isLivenessDetectable
in interfaceDevice
- Overrides:
isLivenessDetectable
in classDeviceImpl
-
getLocation
-
canAssociate
public boolean canAssociate() -
associate
-
getAddress
- Specified by:
getAddress
in interfaceDevice
-
setAddress
- Specified by:
setAddress
in interfaceDevice
-
canRestrictAccess
public boolean canRestrictAccess() -
getAccessRestriction
-
setAccessRestriction
-
getStreamURL
-
getStreamURL
- Overrides:
getStreamURL
in classDeviceImpl
-
getMimeType
- Overrides:
getMimeType
in classDeviceImpl
-
browseReceived
protected void browseReceived() -
resetUPNPAV
protected void resetUPNPAV() -
setupStreamXCode
-
isVisible
-
isVisible
-
fileAdded
- Specified by:
fileAdded
in interfaceTranscodeTargetListener
-
fileAdded
-
syncCategoriesAndTags
-
setCategories
-
setTags
-
fileChanged
- Specified by:
fileChanged
in interfaceTranscodeTargetListener
-
fileRemoved
- Specified by:
fileRemoved
in interfaceTranscodeTargetListener
-
getPresentationURL
-
getDisplayProperties
- Overrides:
getDisplayProperties
in classDeviceImpl
-
generate
- Overrides:
generate
in classDeviceImpl
-
getImageID
- Specified by:
getImageID
in interfaceDevice
- Overrides:
getImageID
in classDeviceImpl
-
getImageIDs
- Specified by:
getImageIDs
in interfaceDevice
- Overrides:
getImageIDs
in classDeviceImpl
-