32 #ifndef __SB_DEVICEMANAGER_H__
33 #define __SB_DEVICEMANAGER_H__
35 #include "sbIDeviceManager.h"
37 #include <nsCOMArray.h>
38 #include <nsIObserver.h>
39 #include <nsStringGlue.h>
43 #define SONGBIRD_OBSOLETE_DEVICEMANAGER_DESCRIPTION \
44 "Songbird Obsolete DeviceManager Service"
45 #define SONGBIRD_OBSOLETE_DEVICEMANAGER_CONTRACTID \
46 "@songbirdnest.com/Songbird/DeviceManager;1"
47 #define SONGBIRD_OBSOLETE_DEVICEMANAGER_CLASSNAME \
48 "Songbird Obsolete Device Manager"
49 #define SONGBIRD_OBSOLETE_DEVICEMANAGER_CID \
54 { 0xab, 0xf3, 0x5f, 0x48, 0xca, 0x61, 0x6a, 0x94 } \
63 NS_DECL_SBIDEVICEMANAGER
72 ~sbDeviceManagerObsolete();
75 NS_IMETHOD LoadSupportedDevices();
78 NS_IMETHOD Finalize();
81 NS_IMETHOD GetIndexForCategory(
const nsAString& aCategory,
87 static PRBool sServiceInitialized;
90 static PRBool sDevicesLoaded;
93 static PRBool sServiceFinalized;
99 nsCOMArray<sbIDeviceBase> mSupportedDevices;
103 PRUint32 mLastRequestedIndex;
104 nsString mLastRequestedCategory;
NS_DECL_ISUPPORTS NS_DECL_NSIOBSERVER NS_DECL_SBIDEVICEMANAGER sbDeviceManagerObsolete()