Class DeviceiTunes
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.DeviceiTunes
- All Implemented Interfaces:
Device, DeviceMediaRenderer, DeviceUPnP, TranscodeTarget, 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 AsyncDispatcherprivate int(package private) static final Objectprivate booleanprivate booleanprivate static final Object(package private) AESemaphoreprivate AEThread2private static final intprivate static final intprivate static final Objectprivate static final intprivate static final intprivate booleanprivate booleanprivate PluginInterfaceprivate longprivate booleanprivate static final intprivate static final intprivate static final StringFields inherited from class DeviceMediaRendererImpl
share_requests, share_taFields 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
ConstructorsModifierConstructorDescriptionprotectedDeviceiTunes(DeviceManagerImpl _manager, PluginInterface _itunes) protectedDeviceiTunes(DeviceManagerImpl _manager, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanbooleanbooleanbooleanprotected voiddestroy()voidgenerate(IndentWriter writer) booleanbooleanintprotected Stringprotected voidgetDisplayProperties(List<String[]> dp) intTHIS WILL CHANGE!!!protected voidbooleanbooleanvoidprotected voidvoidsetAutoCopyToDevice(boolean auto) voidsetAutoStartDevice(boolean auto) protected voidprotected booleanupdateFrom(DeviceImpl _other, boolean _is_alive) protected voidprotected voidupdateStatus(int tick_count) protected voidupdateStatusSupport(int tick_count) Methods inherited from class DeviceMediaRendererImpl
canCopyToFolder, canShowCategories, getAutoCopyToFolder, getCopyToFolder, getCopyToFolderPending, getShowCategories, getShowCategoriesDefault, setAddress, setAutoCopyToFolder, setCanCopyToFolder, setCopyToFolder, setShowCategoriesMethods inherited from class DeviceUPnPImpl
browseReceived, canFilterFilesView, fileAdded, fileAdded, fileChanged, fileRemoved, getAccessRestriction, getACFKey, getDisplayName, getFilterFilesView, getImageID, getImageIDs, getLocation, getMimeType, getPresentationURL, getStreamURL, getStreamURL, getUPnPDevice, getUPnPDeviceManager, 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, close, dead, deleteFile, exportToBEncodedMap, fileDirty, fireChanged, generateTT, getAlwaysCacheFiles, getAutoShareToTagID, getBlankProfile, getClassification, getDefaultTranscodeProfile, getDevice, getDeviceFile, getDevicesDir, getDirectTranscodeProfiles, getDisplayProperties, getError, getFileCount, getFiles, getID, getInfo, getLastSeen, getManager, getName, getPersistentBooleanProperty, getPersistentIntProperty, getPersistentLongProperty, getPersistentMapProperty, getPersistentStringListProperty, getPersistentStringProperty, getPersistentStringProperty, getSecondaryID, getShortDescription, getString, getTranscodeFile, getTranscodeProfiles, getTranscodeProfiles, getTranscodeRequirement, getTransientProperty, getTransientProperty, getTTDisplayProperties, getType, getVuzeFile, 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, getClassification, getDirectTranscodeProfiles, getDisplayProperties, getError, getID, getImageID, getImageIDs, getInfo, getName, getShortDescription, getString, getTransientProperty, getType, getVuzeFile, isAlive, isBusy, isExportable, isGenericUSB, isHidden, isManual, isNameAutomatic, isTagged, remove, removeListener, requestAttention, setAddress, setCanRemove, setExportable, setGenericUSB, setHidden, setImageID, setName, setTagged, setTransientPropertyMethods inherited from interface DeviceMediaRenderer
canCopyToFolder, canFilterFilesView, canShowCategories, getAccessRestriction, getAutoCopyToFolder, getAutoShareToTagID, getCopyToFolder, getCopyToFolderPending, getFilterFilesView, getShowCategories, isRSSPublishEnabled, setAccessRestriction, setAutoCopyToFolder, setAutoShareToTagID, setCanCopyToFolder, setCopyToFolder, setFilterFilesView, setRSSPublishEnabled, setShowCategoriesMethods inherited from interface TranscodeTarget
addListener, getAlwaysCacheFiles, getBlankProfile, getDefaultTranscodeProfile, getDevice, getFiles, getID, getTranscodeProfiles, getTranscodeRequirement, getWorkingDirectory, isAudioCompatible, isNonSimple, isTranscoding, removeListener, setAlwaysCacheFiles, setDefaultTranscodeProfile, setTranscodeRequirement, setWorkingDirectory
-
Field Details
-
UID
- See Also:
-
ERRROR_KEY_ITUNES
-
COPY_PENDING_KEY
-
INSTALL_CHECK_PERIOD
private static final int INSTALL_CHECK_PERIOD- See Also:
-
RUNNING_CHECK_PERIOD
private static final int RUNNING_CHECK_PERIOD- See Also:
-
DEVICE_CHECK_PERIOD
private static final int DEVICE_CHECK_PERIOD- See Also:
-
INSTALL_CHECK_TICKS
private static final int INSTALL_CHECK_TICKS- See Also:
-
RUNNING_CHECK_TICKS
private static final int RUNNING_CHECK_TICKS- See Also:
-
DEVICE_CHECK_TICKS
private static final int DEVICE_CHECK_TICKS- See Also:
-
COPY_ERROR_KEY
-
itunes
-
is_installed
private volatile boolean is_installed -
is_running
private volatile boolean is_running -
copy_outstanding
private boolean copy_outstanding -
copy_outstanding_set
private boolean copy_outstanding_set -
copy_thread
-
copy_sem
AESemaphore copy_sem -
async_dispatcher
-
last_update_fail
private long last_update_fail -
consec_fails
private int consec_fails -
manual_copy_activated
private volatile boolean manual_copy_activated
-
-
Constructor Details
-
DeviceiTunes
-
DeviceiTunes
- Throws:
IOException
-
-
Method Details
-
updateFrom
- Overrides:
updateFromin classDeviceMediaRendererImpl
-
initialise
protected void initialise()- Overrides:
initialisein classDeviceMediaRendererImpl
-
getDeviceClassification
- Overrides:
getDeviceClassificationin classDeviceImpl
-
getRendererSpecies
public int getRendererSpecies()Description copied from interface:DeviceMediaRendererTHIS WILL CHANGE!!!- Specified by:
getRendererSpeciesin interfaceDeviceMediaRenderer- Overrides:
getRendererSpeciesin classDeviceImpl- Returns:
- RS_
-
getAddress
- Specified by:
getAddressin interfaceDevice- Specified by:
getAddressin interfaceDeviceMediaRenderer- Overrides:
getAddressin classDeviceUPnPImpl
-
canRemove
public boolean canRemove()- Specified by:
canRemovein interfaceDevice- Overrides:
canRemovein classDeviceImpl
-
isLivenessDetectable
public boolean isLivenessDetectable()- Specified by:
isLivenessDetectablein interfaceDevice- Overrides:
isLivenessDetectablein classDeviceUPnPImpl
-
getWikiURL
- Specified by:
getWikiURLin interfaceDevice- Overrides:
getWikiURLin classDeviceImpl
-
destroy
protected void destroy()- Overrides:
destroyin classDeviceMediaRendererImpl
-
updateStatus
protected void updateStatus(int tick_count) - Overrides:
updateStatusin classDeviceMediaRendererImpl
-
updateStatusSupport
protected void updateStatusSupport(int tick_count) -
updateiTunesStatus
protected void updateiTunesStatus() -
canCopyToDevice
public boolean canCopyToDevice()- Specified by:
canCopyToDevicein interfaceDeviceMediaRenderer- Overrides:
canCopyToDevicein classDeviceMediaRendererImpl
-
getAutoCopyToDevice
public boolean getAutoCopyToDevice()- Specified by:
getAutoCopyToDevicein interfaceDeviceMediaRenderer- Overrides:
getAutoCopyToDevicein classDeviceMediaRendererImpl
-
setAutoCopyToDevice
public void setAutoCopyToDevice(boolean auto) - Specified by:
setAutoCopyToDevicein interfaceDeviceMediaRenderer- Overrides:
setAutoCopyToDevicein classDeviceMediaRendererImpl
-
getCopyToDevicePending
public int getCopyToDevicePending()- Specified by:
getCopyToDevicePendingin interfaceDeviceMediaRenderer- Overrides:
getCopyToDevicePendingin classDeviceMediaRendererImpl
-
manualCopy
- Specified by:
manualCopyin interfaceDeviceMediaRenderer- Overrides:
manualCopyin classDeviceMediaRendererImpl- Throws:
DeviceManagerException
-
setCopyOutstanding
protected void setCopyOutstanding() -
canAutoStartDevice
public boolean canAutoStartDevice()- Specified by:
canAutoStartDevicein interfaceDeviceMediaRenderer- Overrides:
canAutoStartDevicein classDeviceMediaRendererImpl
-
getAutoStartDevice
public boolean getAutoStartDevice()- Specified by:
getAutoStartDevicein interfaceDeviceMediaRenderer- Overrides:
getAutoStartDevicein classDeviceMediaRendererImpl
-
setAutoStartDevice
public void setAutoStartDevice(boolean auto) - Specified by:
setAutoStartDevicein interfaceDeviceMediaRenderer- Overrides:
setAutoStartDevicein classDeviceMediaRendererImpl
-
canAssociate
public boolean canAssociate()- Specified by:
canAssociatein interfaceDeviceMediaRenderer- Overrides:
canAssociatein classDeviceUPnPImpl
-
canRestrictAccess
public boolean canRestrictAccess()- Specified by:
canRestrictAccessin interfaceDeviceMediaRenderer- Overrides:
canRestrictAccessin classDeviceUPnPImpl
-
associate
- Specified by:
associatein interfaceDeviceMediaRenderer- Overrides:
associatein classDeviceUPnPImpl
-
performCopy
protected void performCopy() -
isBrowsable
public boolean isBrowsable()- Specified by:
isBrowsablein interfaceDevice- Overrides:
isBrowsablein classDeviceUPnPImpl
-
getBrowseLocations
- Specified by:
getBrowseLocationsin interfaceDevice- Overrides:
getBrowseLocationsin classDeviceUPnPImpl
-
getDisplayProperties
- Overrides:
getDisplayPropertiesin classDeviceMediaRendererImpl
-
getStatus
- Specified by:
getStatusin interfaceDevice- Overrides:
getStatusin classDeviceImpl
-
generate
- Overrides:
generatein classDeviceMediaRendererImpl
-