00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "nsISupports.idl"
00028 #include "sbIDeviceBase.idl"
00029
00030 [scriptable, uuid(a20bf454-673b-4308-8898-93f2b001d4e9)]
00031 interface sbIUSBMassStorageDevice : sbIDeviceBase
00032 {
00033 PRBool OnUSBDeviceEvent(in PRBool deviceAdded, in AString deviceName, in AString deviceIdentifier);
00034 };
00035
00036
00037
00038
00039
00040 [scriptable, uuid(4C4E501E-D117-41a6-99A0-59E8AFEFB61D)]
00041 interface sbIUSBMassStorageDeviceHandler : nsISupports
00042 {
00043 PRInt32 OnDeviceConnect(in AString deviceIdentifier, in AString devicePath);
00044 PRInt32 OnDeviceDisconnect(in AString deviceIdentifier, in AString devicePath);
00045
00046 PRInt32 OnPrepareUpload(in AString deviceIdentifier, in AString devicePath, in AString strSourceURL, out AString strDefaultDestURL);
00047 PRInt32 OnCompleteUpload(in AString deviceIdentifier, in AString devicePath, in AString strSourceURL, in AString strDestURL);
00048
00049 PRInt32 OnPrepareDownload(in AString deviceIdentifier, in AString devicePath, in AString strSourceURL, out AString strDefaultDestURL);
00050 PRInt32 OnCompleteDownload(in AString deviceIdentifier, in AString devicePath, in AString strSourceURL, out AString strDefaultDestURL);
00051
00052 PRBool CanHandleDevice(in AString deviceIdentifier, in AString devicePath);
00053 };