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 DeviceImpl
DeviceImpl.browseLocationImplNested classes/interfaces inherited from interface Device
Device.browseLocation -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String, ContentFile> private UPnPDeviceprivate TranscodeProfileprivate Map<String, ContentFile> (package private) final String(package private) final DeviceManagerUPnPImplprivate static final Objectprivate IPCInterfaceFields inherited from class 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_ADDRESSFields inherited from interface Device
DT_CONTENT_DIRECTORY, DT_DISK_OPS, DT_INTERNET, DT_INTERNET_GATEWAY, DT_MEDIA_RENDERER, DT_UNKNOWNFields inherited from interface TranscodeTargetListener
CT_PROPERTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeviceUPnPImpl(DeviceManagerImpl _manager, int _type, String _classification) protectedDeviceUPnPImpl(DeviceManagerImpl _manager, int _type, String _uuid, String _classification, boolean _manual) protectedDeviceUPnPImpl(DeviceManagerImpl _manager, int _type, String _uuid, String _classification, boolean _manual, String _name) protectedDeviceUPnPImpl(DeviceManagerImpl _manager, UPnPDevice _device, int _type) protectedDeviceUPnPImpl(DeviceManagerImpl _manager, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidbooleanbooleanbooleanprotected voiddestroy()voidfileAdded(TranscodeFile _transcode_file) voidfileAdded(TranscodeFile _transcode_file, boolean _new_file) voidfileChanged(TranscodeFile file, int type, Object data) voidfileRemoved(TranscodeFile file) voidgenerate(IndentWriter writer) protected Stringprotected static StringgetDisplayName(UPnPDevice device) protected voidgetDisplayProperties(List<String[]> dp) booleanprotected URLprotected StringgetMimeType(TranscodeFileImpl file) protected URLgetPresentationURL(UPnPDevice device) protected URLprotected URLgetStreamURL(TranscodeFileImpl file, String host) protected DeviceManagerUPnPImplprotected voidbooleanbooleanprotected booleanisVisible(ContentDownload file) protected booleanisVisible(ContentFile file) protected voidvoidvoidsetAddress(InetAddress address) protected voidsetCategories(TranscodeFileImpl tf, Download dl) voidsetFilterFilesView(boolean filter) protected voidsetTags(TranscodeFileImpl tf, Download dl) protected voidsetUPnPDevice(UPnPDevice device) protected booleansetupStreamXCode(TranscodeFileImpl transcode_file) protected voidsyncCategoriesAndTags(TranscodeFileImpl tf, boolean inherit_from_download) protected booleanupdateFrom(DeviceImpl _other, boolean _is_alive) protected voidMethods inherited from class 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, updateStatusMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
updateFromin classDeviceImpl
-
initialise
protected void initialise()- Overrides:
initialisein classDeviceImpl
-
UPnPInitialised
protected void UPnPInitialised() -
destroy
protected void destroy()- Overrides:
destroyin classDeviceImpl
-
getUPnPDeviceManager
-
getUPnPDevice
- Specified by:
getUPnPDevicein interfaceDeviceUPnP
-
setUPnPDevice
-
isBrowsable
public boolean isBrowsable()- Specified by:
isBrowsablein interfaceDevice
-
getBrowseLocations
- Specified by:
getBrowseLocationsin interfaceDevice
-
canFilterFilesView
public boolean canFilterFilesView() -
setFilterFilesView
public void setFilterFilesView(boolean filter) -
getFilterFilesView
public boolean getFilterFilesView() -
isLivenessDetectable
public boolean isLivenessDetectable()- Specified by:
isLivenessDetectablein interfaceDevice- Overrides:
isLivenessDetectablein classDeviceImpl
-
getLocation
-
canAssociate
public boolean canAssociate() -
associate
-
getAddress
- Specified by:
getAddressin interfaceDevice
-
setAddress
- Specified by:
setAddressin interfaceDevice
-
canRestrictAccess
public boolean canRestrictAccess() -
getAccessRestriction
-
setAccessRestriction
-
getStreamURL
-
getStreamURL
- Overrides:
getStreamURLin classDeviceImpl
-
getMimeType
- Overrides:
getMimeTypein classDeviceImpl
-
browseReceived
protected void browseReceived() -
resetUPNPAV
protected void resetUPNPAV() -
setupStreamXCode
-
isVisible
-
isVisible
-
fileAdded
- Specified by:
fileAddedin interfaceTranscodeTargetListener
-
fileAdded
-
syncCategoriesAndTags
-
setCategories
-
setTags
-
fileChanged
- Specified by:
fileChangedin interfaceTranscodeTargetListener
-
fileRemoved
- Specified by:
fileRemovedin interfaceTranscodeTargetListener
-
getPresentationURL
-
getDisplayProperties
- Overrides:
getDisplayPropertiesin classDeviceImpl
-
generate
- Overrides:
generatein classDeviceImpl
-
getImageID
- Specified by:
getImageIDin interfaceDevice- Overrides:
getImageIDin classDeviceImpl
-
getImageIDs
- Specified by:
getImageIDsin interfaceDevice- Overrides:
getImageIDsin classDeviceImpl
-