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
-
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 intprivate static AsyncDispatcher(package private) static TorrentAttributeprivate static final intFields inherited from class DeviceUPnPImpl
MY_ACF_KEY, upnp_managerFields 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 DeviceMediaRenderer
RS_BROWSER, RS_ITUNES, RS_OTHER, RS_PS3, RS_WII, RS_XBOXFields inherited from interface TranscodeTarget
TRANSCODE_ALWAYS, TRANSCODE_NEVER, TRANSCODE_UNKNOWN, TRANSCODE_WHEN_REQUIREDFields inherited from interface TranscodeTargetListener
CT_PROPERTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeviceMediaRendererImpl(DeviceManagerImpl _manager, UPnPDevice _device) DeviceMediaRendererImpl(DeviceManagerImpl _manager, String _classification) DeviceMediaRendererImpl(DeviceManagerImpl _manager, String _uuid, String _classification, boolean _manual) DeviceMediaRendererImpl(DeviceManagerImpl _manager, String _uuid, String _classification, boolean _manual, String _name) protectedDeviceMediaRendererImpl(DeviceManagerImpl _manager, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanprotected voiddestroy()voidgenerate(IndentWriter writer) booleanbooleanbooleanintintprotected voidgetDisplayProperties(List<String[]> dp) booleanprotected booleanprotected voidvoidvoidsetAddress(InetAddress address) voidsetAutoCopyToDevice(boolean auto) voidsetAutoCopyToFolder(boolean auto) voidsetAutoStartDevice(boolean auto) voidsetCanCopyToFolder(boolean can) voidsetCopyToFolder(File file) voidsetShowCategories(boolean b) private voidprotected booleanupdateFrom(DeviceImpl _other, boolean _is_alive) protected voidupdateStatus(int tick_count) Methods inherited from class 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, UPnPInitialisedMethods 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, setWorkingDirectoryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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, setTransientPropertyMethods inherited from interface DeviceMediaRenderer
associate, canAssociate, canFilterFilesView, canRestrictAccess, getAccessRestriction, getAddress, getAutoShareToTagID, getFilterFilesView, getRendererSpecies, isRSSPublishEnabled, setAccessRestriction, setAutoShareToTagID, setFilterFilesView, setRSSPublishEnabledMethods inherited from interface TranscodeTarget
addListener, getAlwaysCacheFiles, getBlankProfile, getDefaultTranscodeProfile, getDevice, getFiles, getID, getTranscodeProfiles, getTranscodeRequirement, getWorkingDirectory, isAudioCompatible, isNonSimple, isTranscoding, removeListener, setAlwaysCacheFiles, setDefaultTranscodeProfile, setTranscodeRequirement, setWorkingDirectory
-
Field Details
-
INSTALL_CHECK_PERIOD
private static final int INSTALL_CHECK_PERIOD- See Also:
-
TAG_SHARE_CHECK_TICKS
private static final int TAG_SHARE_CHECK_TICKS- See Also:
-
-
Constructor Details
-
DeviceMediaRendererImpl
-
DeviceMediaRendererImpl
-
DeviceMediaRendererImpl
public DeviceMediaRendererImpl(DeviceManagerImpl _manager, String _uuid, String _classification, boolean _manual, String _name) -
DeviceMediaRendererImpl
public DeviceMediaRendererImpl(DeviceManagerImpl _manager, String _uuid, String _classification, boolean _manual) -
DeviceMediaRendererImpl
- Throws:
IOException
-
-
Method Details
-
setAddress
- Specified by:
setAddressin interfaceDevice- Overrides:
setAddressin classDeviceUPnPImpl
-
updateFrom
- Overrides:
updateFromin classDeviceUPnPImpl
-
initialise
protected void initialise()- Overrides:
initialisein classDeviceUPnPImpl
-
updateStatus
protected void updateStatus(int tick_count) - Overrides:
updateStatusin classDeviceImpl
-
destroy
protected void destroy()- Overrides:
destroyin classDeviceUPnPImpl
-
canCopyToDevice
public boolean canCopyToDevice()- Specified by:
canCopyToDevicein interfaceDeviceMediaRenderer
-
getAutoCopyToDevice
public boolean getAutoCopyToDevice()- Specified by:
getAutoCopyToDevicein interfaceDeviceMediaRenderer
-
setAutoCopyToDevice
public void setAutoCopyToDevice(boolean auto) - Specified by:
setAutoCopyToDevicein interfaceDeviceMediaRenderer
-
getCopyToDevicePending
public int getCopyToDevicePending()- Specified by:
getCopyToDevicePendingin interfaceDeviceMediaRenderer
-
canAutoStartDevice
public boolean canAutoStartDevice()- Specified by:
canAutoStartDevicein interfaceDeviceMediaRenderer
-
getAutoStartDevice
public boolean getAutoStartDevice()- Specified by:
getAutoStartDevicein interfaceDeviceMediaRenderer
-
setAutoStartDevice
public void setAutoStartDevice(boolean auto) - Specified by:
setAutoStartDevicein interfaceDeviceMediaRenderer
-
canCopyToFolder
public boolean canCopyToFolder()- Specified by:
canCopyToFolderin interfaceDeviceMediaRenderer
-
setCanCopyToFolder
public void setCanCopyToFolder(boolean can) - Specified by:
setCanCopyToFolderin interfaceDeviceMediaRenderer
-
getCopyToFolder
- Specified by:
getCopyToFolderin interfaceDeviceMediaRenderer
-
setCopyToFolder
- Specified by:
setCopyToFolderin interfaceDeviceMediaRenderer
-
getCopyToFolderPending
public int getCopyToFolderPending()- Specified by:
getCopyToFolderPendingin interfaceDeviceMediaRenderer
-
getAutoCopyToFolder
public boolean getAutoCopyToFolder()- Specified by:
getAutoCopyToFolderin interfaceDeviceMediaRenderer
-
setAutoCopyToFolder
public void setAutoCopyToFolder(boolean auto) - Specified by:
setAutoCopyToFolderin interfaceDeviceMediaRenderer
-
manualCopy
- Specified by:
manualCopyin interfaceDeviceMediaRenderer- Throws:
DeviceManagerException
-
canShowCategories
public boolean canShowCategories()- Specified by:
canShowCategoriesin interfaceDeviceMediaRenderer
-
setShowCategories
public void setShowCategories(boolean b) - Specified by:
setShowCategoriesin interfaceDeviceMediaRenderer
-
getShowCategories
public boolean getShowCategories()- Specified by:
getShowCategoriesin interfaceDeviceMediaRenderer
-
getShowCategoriesDefault
protected boolean getShowCategoriesDefault() -
getDisplayProperties
- Overrides:
getDisplayPropertiesin classDeviceUPnPImpl
-
generate
- Overrides:
generatein classDeviceUPnPImpl
-