import"sbIDeviceHelper.idl";
Public Member Functions | |
boolean | hasSpaceForWrite (in unsigned long long aSpaceNeeded, in sbIDeviceLibrary aLibrary, [optional] in sbIDevice aDevice, [optional] out unsigned long long aSpaceRemaining) |
boolean | queryUserSpaceExceeded (in nsIDOMWindow aParent, in sbIDevice aDevice, in sbIDeviceLibrary aLibrary, in unsigned long long aSpaceNeeded, in unsigned long long aSpaceAvailable) |
Helper routines for device implementations
Definition at line 45 of file sbIDeviceHelper.idl.
boolean sbIDeviceHelper::hasSpaceForWrite | ( | in unsigned long long | aSpaceNeeded, |
in sbIDeviceLibrary | aLibrary, | ||
[optional] in sbIDevice | aDevice, | ||
[optional] out unsigned long long | aSpaceRemaining | ||
) |
Check if a given device library has space for a write request Will prompt the user for a partial write if not enough
aSpaceNeeded | the amount of space required, in bytes |
aLibrary | the device library to write to |
aDevice | the device to write to; if not supplied, will attempt to determine based on the library (slow) |
aSpaceRemaining | [optional] the amount of space available |
boolean sbIDeviceHelper::queryUserSpaceExceeded | ( | in nsIDOMWindow | aParent, |
in sbIDevice | aDevice, | ||
in sbIDeviceLibrary | aLibrary, | ||
in unsigned long long | aSpaceNeeded, | ||
in unsigned long long | aSpaceAvailable | ||
) |
Ask the user what action to take in response to an operation space exceeded event for the device specified by aDevice and device library specified by aLibrary. Use the window specified by aParent as a dialog parent. The amount of space needed for the operation is specified by aSpaceNeeded and the amount available by aSpaceAvailable. Return true if user chooses to proceed with operation.
aParent | the parent window for dialogs |
aDevice | target device of operation |
aLibrary | target device library of operation |
aSpaceNeeded | Space needed by operation |
aSpaceAvailable | Space available to operation |