C:/projects/songbird/components/devices/usb_mass_storage/public/sbIUSBMassStorageDevice.idl

00001 /*
00002 //
00003 // BEGIN SONGBIRD GPL
00004 // 
00005 // This file is part of the Songbird web player.
00006 //
00007 // Copyright© 2006 POTI, Inc.
00008 // http://songbirdnest.com
00009 // 
00010 // This file may be licensed under the terms of of the
00011 // GNU General Public License Version 2 (the “GPL”).
00012 // 
00013 // Software distributed under the License is distributed 
00014 // on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either 
00015 // express or implied. See the GPL for the specific language 
00016 // governing rights and limitations.
00017 //
00018 // You should have received a copy of the GPL along with this 
00019 // program. If not, go to http://www.gnu.org/licenses/gpl.html
00020 // or write to the Free Software Foundation, Inc., 
00021 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00022 // 
00023 // END SONGBIRD GPL
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 // {4C4E501E-D117-41a6-99A0-59E8AFEFB61D}
00038 //{ 0x4c4e501e, 0xd117, 0x41a6, { 0x99, 0xa0, 0x59, 0xe8, 0xaf, 0xef, 0xb6, 0x1d } };
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 };

Generated on Mon Aug 21 21:01:55 2006 for Songbird by  doxygen 1.4.7