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 "nsIObserver.idl" 00028 00029 interface sbIDeviceBase; 00030 00035 [scriptable, uuid(d0b017c4-f388-4e78-abf3-5f48ca616a94)] 00036 interface sbIDeviceManager : nsIObserver 00037 { 00041 readonly attribute PRUint32 deviceCount; 00042 00049 AString getCategoryByIndex(in PRUint32 aIndex); 00050 00057 sbIDeviceBase getDeviceByIndex(in PRUint32 aIndex); 00058 00064 PRBool hasDeviceForCategory(in AString aCategory); 00065 00073 sbIDeviceBase getDeviceByCategory(in AString aCategory); 00074 };