Package com.biglybt.core.devices.impl
Class DeviceMediaRendererManual
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.DeviceMediaRendererManual
- All Implemented Interfaces:
Device
,DeviceMediaRenderer
,DeviceUPnP
,TranscodeTarget
,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 AsyncDispatcher
private boolean
(package private) static final Object
private boolean
private boolean
private static final Object
private AESemaphore
private AEThread2
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
ConstructorsModifierConstructorDescriptionprotected
DeviceMediaRendererManual
(DeviceManagerImpl _manager, String _uid, String _classification, boolean _manual, String _name) protected
DeviceMediaRendererManual
(DeviceManagerImpl _manager, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
protected boolean
doCopy()
void
generate
(IndentWriter writer) boolean
int
protected void
getDisplayProperties
(List<String[]> dp) protected void
boolean
isAudioCompatible
(TranscodeFile transcode_file) boolean
boolean
boolean
void
protected void
void
setAutoCopyToFolder
(boolean auto) void
setCanCopyToFolder
(boolean can) protected void
void
setCopyToFolder
(File file) void
setLivenessDetectable
(boolean b) Methods inherited from class com.biglybt.core.devices.impl.DeviceMediaRendererImpl
canAutoStartDevice, canCopyToDevice, canShowCategories, destroy, getAutoCopyToDevice, getAutoStartDevice, getCopyToDevicePending, getShowCategories, getShowCategoriesDefault, setAddress, setAutoCopyToDevice, setAutoStartDevice, setShowCategories, updateFrom, 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, 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, getString, getTranscodeFile, getTranscodeProfiles, getTranscodeProfiles, getTranscodeRequirement, getTransientProperty, getTransientProperty, getTTDisplayProperties, getType, getVuzeFile, getWikiURL, getWorkingDirectory, getWorkingDirectory, importFromBEncodedMapStatic, isAlive, isAutoHidden, isBusy, 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, getString, getTransientProperty, getType, getVuzeFile, getWikiURL, isAlive, isBusy, isGenericUSB, isHidden, 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, isNonSimple, isTranscoding, removeListener, setAlwaysCacheFiles, setDefaultTranscodeProfile, setTranscodeRequirement, setWorkingDirectory
-
Field Details
-
COPY_ERROR_KEY
-
COPY_PENDING_KEY
-
can_copy_to_folder
private boolean can_copy_to_folder -
copy_outstanding
private boolean copy_outstanding -
copy_outstanding_set
private boolean copy_outstanding_set -
copy_thread
-
copy_sem
-
async_dispatcher
-
-
Constructor Details
-
DeviceMediaRendererManual
protected DeviceMediaRendererManual(DeviceManagerImpl _manager, String _uid, String _classification, boolean _manual, String _name) -
DeviceMediaRendererManual
- Throws:
IOException
-
-
Method Details
-
initialise
protected void initialise()- Overrides:
initialise
in classDeviceMediaRendererImpl
-
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
-
canFilterFilesView
public boolean canFilterFilesView()- Specified by:
canFilterFilesView
in interfaceDeviceMediaRenderer
- Overrides:
canFilterFilesView
in classDeviceUPnPImpl
-
isBrowsable
public boolean isBrowsable()- Specified by:
isBrowsable
in interfaceDevice
- Overrides:
isBrowsable
in classDeviceUPnPImpl
-
canCopyToFolder
public boolean canCopyToFolder()- Specified by:
canCopyToFolder
in interfaceDeviceMediaRenderer
- Overrides:
canCopyToFolder
in classDeviceMediaRendererImpl
-
setCanCopyToFolder
public void setCanCopyToFolder(boolean can) - Specified by:
setCanCopyToFolder
in interfaceDeviceMediaRenderer
- Overrides:
setCanCopyToFolder
in classDeviceMediaRendererImpl
-
getCopyToFolder
- Specified by:
getCopyToFolder
in interfaceDeviceMediaRenderer
- Overrides:
getCopyToFolder
in classDeviceMediaRendererImpl
-
setCopyToFolder
- Specified by:
setCopyToFolder
in interfaceDeviceMediaRenderer
- Overrides:
setCopyToFolder
in classDeviceMediaRendererImpl
-
isLivenessDetectable
public boolean isLivenessDetectable()- Specified by:
isLivenessDetectable
in interfaceDevice
- Overrides:
isLivenessDetectable
in classDeviceUPnPImpl
-
setLivenessDetectable
public void setLivenessDetectable(boolean b) -
getCopyToFolderPending
public int getCopyToFolderPending()- Specified by:
getCopyToFolderPending
in interfaceDeviceMediaRenderer
- Overrides:
getCopyToFolderPending
in classDeviceMediaRendererImpl
-
getAutoCopyToFolder
public boolean getAutoCopyToFolder()- Specified by:
getAutoCopyToFolder
in interfaceDeviceMediaRenderer
- Overrides:
getAutoCopyToFolder
in classDeviceMediaRendererImpl
-
setAutoCopyToFolder
public void setAutoCopyToFolder(boolean auto) - Specified by:
setAutoCopyToFolder
in interfaceDeviceMediaRenderer
- Overrides:
setAutoCopyToFolder
in classDeviceMediaRendererImpl
-
manualCopy
- Specified by:
manualCopy
in interfaceDeviceMediaRenderer
- Overrides:
manualCopy
in classDeviceMediaRendererImpl
- Throws:
DeviceManagerException
-
setCopyOutstanding
protected void setCopyOutstanding() -
isAudioCompatible
- Specified by:
isAudioCompatible
in interfaceTranscodeTarget
- Overrides:
isAudioCompatible
in classDeviceImpl
-
performCopy
protected void performCopy() -
doCopy
protected boolean doCopy() -
isExportable
public boolean isExportable()- Specified by:
isExportable
in interfaceDevice
- Overrides:
isExportable
in classDeviceImpl
-
getDisplayProperties
- Overrides:
getDisplayProperties
in classDeviceMediaRendererImpl
-
generate
- Overrides:
generate
in classDeviceMediaRendererImpl
-
getStatus
- Specified by:
getStatus
in interfaceDevice
- Overrides:
getStatus
in classDeviceImpl
-