sbIMockDevice Interface Reference

import"sbIMockDevice.idl";

Inheritance diagram for sbIMockDevice:
[legend]
Collaboration diagram for sbIMockDevice:
[legend]

Public Member Functions

nsIPropertyBag2 popRequest ()
 
- Public Member Functions inherited from sbIDevice
void connect ()
 
void disconnect ()
 
nsIVariant getPreference (in AString aPrefName)
 
void setPreference (in AString aPrefName, in nsIVariant aPrefValue)
 
void submitRequest (in unsigned long aRequest, in nsIPropertyBag2 aRequestParameters)
 
void cancelRequests ()
 
void syncLibraries ()
 
void supportsMediaItem (in sbIMediaItem aMediaItem, in sbIDeviceSupportsItemCallback aCallback)
 
void eject ()
 
void format ()
 
void setWarningDialogEnabled (in AString aWarning, in boolean aEnabled)
 
boolean getWarningDialogEnabled (in AString aWarning)
 
void resetWarningDialogs ()
 
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 "x-device:///<device-guid>/<device-library-guid>/path/to/file". Such URI's specify the target device with <device-guid> and the storage volume using the volume's device library with the guid <device-library-guid>. Different device types may also accept device type specific URI's. More...
 
void importFromDevice (in sbILibrary aImportToLibrary, in sbILibraryChangeset aImportChangeset)
 
void exportToDevice (in sbIDeviceLibrary aDevLibrary, in sbILibraryChangeset aExportChangeset)
 

Additional Inherited Members

- Public Attributes inherited from sbIDevice
readonly attribute AString name
 
readonly attribute AString productName
 
readonly attribute nsIDPtr controllerId
 
readonly attribute nsIDPtr id
 
readonly attribute boolean connected
 
readonly attribute boolean threaded
 
readonly attribute
sbIDeviceCapabilities 
capabilities
 
readonly attribute sbIDeviceContent content
 
attribute sbIDeviceLibrary defaultLibrary
 
readonly attribute sbIDeviceLibrary primaryLibrary
 
readonly attribute nsIPropertyBag2 parameters
 
readonly attribute
sbIDeviceProperties 
properties
 
readonly attribute boolean isDirectTranscoding
 
readonly attribute boolean isBusy
 
readonly attribute boolean canDisconnect
 
readonly attribute sbIDeviceStatus currentStatus
 
readonly attribute boolean supportsReformat
 
attribute unsigned long state
 
readonly attribute unsigned long previousState
 
const unsigned long STATE_IDLE = 0
 
const unsigned long STATE_SYNCING = 1
 
const unsigned long STATE_COPYING = 2
 
const unsigned long STATE_DELETING = 3
 
const unsigned long STATE_UPDATING = 4
 
const unsigned long STATE_MOUNTING = 5
 
const unsigned long STATE_DOWNLOADING = 6
 
const unsigned long STATE_UPLOADING = 7
 
const unsigned long STATE_DOWNLOAD_PAUSED = 8
 
const unsigned long STATE_UPLOAD_PAUSED = 9
 
const unsigned long STATE_DISCONNECTED = 10
 
const unsigned long STATE_BUSY = 11
 
const unsigned long STATE_CANCEL = 12
 
const unsigned long STATE_TRANSCODE = 13
 
const unsigned long STATE_FORMATTING = 14
 
const unsigned long STATE_SYNC_PREPARING = 15
 
const unsigned long STATE_SYNC_PLAYLIST = 16
 
const unsigned long STATE_COPY_PREPARING = 17
 
const unsigned long STATE_SYNCING_TYPE = 18
 
const unsigned long STATE_COPYING_MUSIC = 19
 
const unsigned long STATE_COPYING_VIDEO = 20
 
const unsigned long STATE_IMAGESYNC_PREPARING = 21
 
const unsigned long STATE_COPYING_IMAGE = 22
 
const unsigned long STATE_USER = 0x20000000
 
const unsigned long REQUEST_FLAG_USER = 0x80000000
 
const unsigned long REQUEST_FLAG_WRITE = 0x40000000
 
const unsigned long REQUEST_FLAG_READ = 0x20000000
 
const unsigned long REQUEST_MOUNT = REQUEST_FLAG_READ + 1
 
const unsigned long REQUEST_READ = REQUEST_FLAG_READ + 2
 
const unsigned long REQUEST_EJECT = REQUEST_FLAG_READ + 3
 
const unsigned long REQUEST_SUSPEND = REQUEST_FLAG_READ + 4
 
const unsigned long REQUEST_WRITE = REQUEST_FLAG_WRITE + 1
 
const unsigned long REQUEST_DELETE = REQUEST_FLAG_WRITE + 2
 
const unsigned long REQUEST_SYNC = REQUEST_FLAG_WRITE + 3
 
const unsigned long REQUEST_WIPE = REQUEST_FLAG_WRITE + 4
 
const unsigned long REQUEST_MOVE = REQUEST_FLAG_WRITE + 5
 
const unsigned long REQUEST_UPDATE = REQUEST_FLAG_WRITE + 6
 
const unsigned long REQUEST_NEW_PLAYLIST = REQUEST_FLAG_WRITE + 7
 
const unsigned long REQUEST_FACTORY_RESET = REQUEST_FLAG_WRITE + 8
 
const unsigned long REQUEST_FORMAT = REQUEST_FLAG_WRITE + 9
 
const unsigned long REQUEST_IMAGESYNC = REQUEST_FLAG_WRITE + 10
 
const unsigned long REQUEST_WRITE_FILE = REQUEST_FLAG_WRITE + 11
 
const unsigned long REQUEST_DELETE_FILE = REQUEST_FLAG_WRITE + 12
 
const unsigned long REQUEST_SYNC_COMPLETE = REQUEST_FLAG_WRITE + 13
 

Detailed Description

Definition at line 38 of file sbIMockDevice.idl.

Member Function Documentation

nsIPropertyBag2 sbIMockDevice::popRequest ( )

Fetch and peek the next request


The documentation for this interface was generated from the following file: