29 #include "nsISupports.idl"
31 interface nsIInputStream;
32 interface nsIPropertyBag2;
40 interface sbIDeviceParameters;
51 #define SB_ERROR_MEDIA_TYPE_NOT_SUPPORTED \
52 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_GENERAL, 1 )
53 #define SB_ERROR_DOWNLOAD_SIZE_UNAVAILABLE \
54 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_GENERAL, 2 )
55 #define SB_ERROR_DEVICE_DRM_FAILURE \
56 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_GENERAL, 3 )
57 #define SB_ERROR_DEVICE_DRM_CERT_FAIL \
58 NS_ERROR_GENERATE_FAILURE( NS_ERROR_MODULE_GENERAL, 4 )
67 [scriptable,
function,
uuid(cf163566-24b2-4ecd-4b9f-2a69725e22ad)]
79 [scriptable,
uuid(fd0d4015-20e1-45b1-bd8a-a8f81d2bdfd2)]
85 readonly attribute AString
name;
101 readonly attribute nsIDPtr
id;
135 in nsIVariant aPrefValue);
292 void submitRequest(in
unsigned long aRequest, in nsIPropertyBag2 aRequestParameters);
const unsigned long REQUEST_FACTORY_RESET
void exportToDevice(in sbIDeviceLibrary aDevLibrary, in sbILibraryChangeset aExportChangeset)
readonly attribute boolean supportsReformat
readonly attribute unsigned long previousState
const unsigned long STATE_DELETING
void supportsMediaItem(in sbIMediaItem aMediaItem, in sbIDeviceSupportsItemCallback aCallback)
const unsigned long REQUEST_SYNC
[UNIMPLEMENTED UNTIL AFTER 0.3]
readonly attribute boolean canDisconnect
readonly attribute sbIDeviceContent content
const unsigned long STATE_SYNC_PREPARING
const unsigned long STATE_SYNCING_TYPE
const unsigned long REQUEST_WIPE
const unsigned long STATE_UPDATING
readonly attribute sbIDeviceStatus currentStatus
[UNIMPLEMENTED UNTIL AFTER 0.3]
const unsigned long STATE_IMAGESYNC_PREPARING
readonly attribute boolean isBusy
const unsigned long REQUEST_SUSPEND
const unsigned long REQUEST_FLAG_READ
const unsigned long REQUEST_READ
const unsigned long STATE_UPLOAD_PAUSED
readonly attribute sbIDeviceCapabilities capabilities
const unsigned long STATE_COPY_PREPARING
readonly attribute nsIPropertyBag2 parameters
const unsigned long STATE_UPLOADING
const unsigned long REQUEST_FLAG_USER
const unsigned long REQUEST_WRITE
const unsigned long STATE_DOWNLOADING
const unsigned long REQUEST_DELETE
const unsigned long REQUEST_EJECT
readonly attribute AString name
const unsigned long STATE_CANCEL
void submitRequest(in unsigned long aRequest, in nsIPropertyBag2 aRequestParameters)
const unsigned long REQUEST_WRITE_FILE
const unsigned long STATE_USER
const unsigned long STATE_COPYING
const unsigned long REQUEST_SYNC_COMPLETE
nsIInputStream openInputStream(in nsIURI aURI)
Open an input stream for the URI specified by aURI. The URI may be a generic device URI of the form "...
const unsigned long STATE_FORMATTING
const unsigned long STATE_IDLE
boolean getWarningDialogEnabled(in AString aWarning)
Media library abstraction.
attribute unsigned long state
const unsigned long STATE_MOUNTING
const unsigned long REQUEST_FLAG_WRITE
readonly attribute sbIDeviceProperties properties
const unsigned long REQUEST_DELETE_FILE
nsIVariant getPreference(in AString aPrefName)
void importFromDevice(in sbILibrary aImportToLibrary, in sbILibraryChangeset aImportChangeset)
const unsigned long STATE_TRANSCODE
const unsigned long REQUEST_MOVE
const unsigned long STATE_SYNCING
const unsigned long REQUEST_IMAGESYNC
readonly attribute nsIDPtr controllerId
const unsigned long REQUEST_FORMAT
const unsigned long STATE_SYNC_PLAYLIST
readonly attribute boolean threaded
void onSupportsMediaItem(in sbIMediaItem aMediaItem, in boolean aIsSupported)
readonly attribute boolean isDirectTranscoding
const unsigned long STATE_DOWNLOAD_PAUSED
const unsigned long STATE_COPYING_MUSIC
readonly attribute nsIDPtr id
void setPreference(in AString aPrefName, in nsIVariant aPrefValue)
const unsigned long REQUEST_NEW_PLAYLIST
attribute sbIDeviceLibrary defaultLibrary
const unsigned long STATE_COPYING_VIDEO
void resetWarningDialogs()
readonly attribute sbIDeviceLibrary primaryLibrary
const unsigned long STATE_BUSY
void setWarningDialogEnabled(in AString aWarning, in boolean aEnabled)
readonly attribute boolean connected
const unsigned long REQUEST_MOUNT
const unsigned long REQUEST_UPDATE
readonly attribute AString productName
const unsigned long STATE_DISCONNECTED
const unsigned long STATE_COPYING_IMAGE