Package com.biglybt.core.devices.impl
Class DeviceTivo
- java.lang.Object
-
- com.biglybt.core.devices.impl.DeviceImpl
-
- com.biglybt.core.devices.impl.DeviceUPnPImpl
-
- com.biglybt.core.devices.impl.DeviceMediaRendererImpl
-
- com.biglybt.core.devices.impl.DeviceTivo
-
- All Implemented Interfaces:
Device
,DeviceMediaRenderer
,DeviceUPnP
,TranscodeTarget
,TranscodeTargetListener
public class DeviceTivo extends DeviceMediaRendererImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DeviceTivo.ContainerInfo
protected static class
DeviceTivo.FileInfo
protected static class
DeviceTivo.ItemInfo
-
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 java.lang.String
NL
private java.lang.String
server_name
private static java.util.Map<java.lang.String,java.util.Comparator<DeviceTivo.ItemInfo>>
sort_comparators
private static boolean
TRACE
private boolean
tried_tcp_beacon
-
Fields inherited from class com.biglybt.core.devices.impl.DeviceMediaRendererImpl
share_requests, share_ta
-
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 protected
DeviceTivo(DeviceManagerImpl _manager, java.lang.String _uid, java.lang.String _classification)
protected
DeviceTivo(DeviceManagerImpl _manager, java.util.Map _map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAssociate()
boolean
canFilterFilesView()
boolean
canRestrictAccess()
boolean
canShowCategories()
protected static java.lang.String
escape(java.lang.String str)
protected void
found(DeviceTivoManager _tivo_manager, java.net.InetAddress _address, java.lang.String _server_name, java.lang.String _machine)
void
generate(IndentWriter writer)
protected boolean
generate(TrackerWebPageRequest request, TrackerWebPageResponse response)
protected void
getDisplayProperties(java.util.List<java.lang.String[]> dp)
protected java.lang.String
getMachineName()
protected boolean
getShowCategoriesDefault()
protected void
initialise()
protected boolean
updateFrom(DeviceImpl _other, boolean _is_alive)
protected static java.lang.String
urlencode(java.lang.String str)
-
Methods inherited from class com.biglybt.core.devices.impl.DeviceMediaRendererImpl
canAutoStartDevice, canCopyToDevice, canCopyToFolder, destroy, getAutoCopyToDevice, getAutoCopyToFolder, getAutoStartDevice, getCopyToDevicePending, getCopyToFolder, getCopyToFolderPending, getShowCategories, manualCopy, setAddress, setAutoCopyToDevice, setAutoCopyToFolder, setAutoStartDevice, setCanCopyToFolder, setCopyToFolder, setShowCategories, updateStatus
-
Methods inherited from class com.biglybt.core.devices.impl.DeviceUPnPImpl
associate, browseReceived, 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, 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
-
TRACE
private static final boolean TRACE
- See Also:
- Constant Field Values
-
NL
private static final java.lang.String NL
- See Also:
- Constant Field Values
-
sort_comparators
private static java.util.Map<java.lang.String,java.util.Comparator<DeviceTivo.ItemInfo>> sort_comparators
-
server_name
private java.lang.String server_name
-
tried_tcp_beacon
private boolean tried_tcp_beacon
-
-
Constructor Detail
-
DeviceTivo
protected DeviceTivo(DeviceManagerImpl _manager, java.lang.String _uid, java.lang.String _classification)
-
DeviceTivo
protected DeviceTivo(DeviceManagerImpl _manager, java.util.Map _map) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
updateFrom
protected boolean updateFrom(DeviceImpl _other, boolean _is_alive)
- Overrides:
updateFrom
in classDeviceMediaRendererImpl
-
initialise
protected void initialise()
- Overrides:
initialise
in classDeviceMediaRendererImpl
-
canFilterFilesView
public boolean canFilterFilesView()
- Specified by:
canFilterFilesView
in interfaceDeviceMediaRenderer
- Overrides:
canFilterFilesView
in classDeviceUPnPImpl
-
canAssociate
public boolean canAssociate()
- Specified by:
canAssociate
in interfaceDeviceMediaRenderer
- Overrides:
canAssociate
in classDeviceUPnPImpl
-
canRestrictAccess
public boolean canRestrictAccess()
- Specified by:
canRestrictAccess
in interfaceDeviceMediaRenderer
- Overrides:
canRestrictAccess
in classDeviceUPnPImpl
-
canShowCategories
public boolean canShowCategories()
- Specified by:
canShowCategories
in interfaceDeviceMediaRenderer
- Overrides:
canShowCategories
in classDeviceMediaRendererImpl
-
getShowCategoriesDefault
protected boolean getShowCategoriesDefault()
- Overrides:
getShowCategoriesDefault
in classDeviceMediaRendererImpl
-
getMachineName
protected java.lang.String getMachineName()
-
found
protected void found(DeviceTivoManager _tivo_manager, java.net.InetAddress _address, java.lang.String _server_name, java.lang.String _machine)
-
generate
protected boolean generate(TrackerWebPageRequest request, TrackerWebPageResponse response) throws java.io.IOException
- Throws:
java.io.IOException
-
urlencode
protected static java.lang.String urlencode(java.lang.String str)
-
escape
protected static java.lang.String escape(java.lang.String str)
-
getDisplayProperties
protected void getDisplayProperties(java.util.List<java.lang.String[]> dp)
- Overrides:
getDisplayProperties
in classDeviceMediaRendererImpl
-
generate
public void generate(IndentWriter writer)
- Overrides:
generate
in classDeviceMediaRendererImpl
-
-