25 #include "nsISupports.idl"
42 [scriptable,
uuid(280ea825-00bd-4e02-910b-5fd7291903c2)]
66 readonly attribute PRUint32
type;
97 in
unsigned long aContentType);
181 #include "nsCOMPtr.h"
182 #include "nsIComponentManager.h"
183 #include "nsICategoryManager.h"
184 #include "nsIServiceManager.h"
185 #include "nsStringGlue.h"
186 #include "nsXPCOMCID.h"
189 struct nsModuleComponentInfo;
191 #define SB_DEVICE_INFO_REGISTRAR_CATEGORY "songbird-device-info-registrar"
215 #define SB_DEVICE_INFO_REGISTRAR_REGISTERSELF(_name) \
217 NS_METHOD _name##RegisterSelf(nsIComponentManager* aCompMgr, \
219 const char* registryLocation, \
220 const char* componentType, \
221 const nsModuleComponentInfo* info); \
223 NS_METHOD _name##UnregisterSelf(nsIComponentManager* aCompMgr, \
225 const char* registryLocation, \
226 const nsModuleComponentInfo* info)
231 #define SB_DEVICE_INFO_REGISTRAR_REGISTERSELF_IMPL(_name, _desc) \
234 _name##RegisterSelf(nsIComponentManager* aCompMgr, \
236 const char* registryLocation, \
237 const char* componentType, \
238 const nsModuleComponentInfo* info) \
241 nsCOMPtr<nsICategoryManager> catMan = \
242 do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv); \
243 NS_ENSURE_SUCCESS(rv, rv); \
244 nsCAutoString prevEntry; \
245 rv = catMan->AddCategoryEntry(SB_DEVICE_INFO_REGISTRAR_CATEGORY, \
249 getter_Copies(prevEntry)); \
250 NS_ENSURE_SUCCESS(rv, rv); \
251 NS_WARN_IF_FALSE(prevEntry.IsEmpty(), \
252 "Another controller was registered with that id!"); \
257 _name##UnregisterSelf(nsIComponentManager* aCompMgr, \
259 const char* registryLocation, \
260 const nsModuleComponentInfo* info) \
263 nsCOMPtr<nsICategoryManager> catMan = \
264 do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv); \
265 NS_ENSURE_SUCCESS(rv, rv); \
266 rv = catMan->DeleteCategoryEntry(SB_DEVICE_INFO_REGISTRAR_CATEGORY, \
269 NS_ENSURE_SUCCESS(rv, rv); \
const PRUint32 DEVICE_SPECIFIC
[UNIMPLEMENTED UNTIL AFTER 0.3]
AString getDeviceFolder(in sbIDevice aDevice, in unsigned long aContentType)
Return the device folder URL for the device and content type specified by aDevice and aContentType...
AString getExcludedFolders(in sbIDevice aDevice)
Return the excluded folder list as a comma separate string.
An object defining a transcoding profile.
nsIArray getImportRules(in sbIDevice aDevice)
Return a list of "rules" to apply to files imported from aDevice. Each rule is itself an nsIArray of ...
boolean getOnlyMountMediaFolders(in sbIDevice aDevice)
Return true if only the media folders should be mounted rather than the entire storage volume...
boolean getDoesDeviceSupportReformat(in sbIDevice aDevice)
Returns true if the device supports reformat.
unsigned long getMountTimeout(in sbIDevice aDevice)
Return the mount timeout value in seconds for the device specified by aDevice.
nsIArray getStorageDeviceInfoList(in sbIDevice aDevice)
Return the storage device info list as an nsIArray of nsIPropertyBag elements.
AString getDefaultName(in sbIDevice aDevice)
Return the default name for the device.
boolean interestedInDevice(in sbIDevice aDevice)
Determines if the registrar is interested in this device.
readonly attribute PRUint32 type
void addCapabilities(in sbIDevice aDevice, in sbIDeviceCapabilities aDeviceCapabilities)
Allows a third party to augment the device capabilities.
AString getDeviceIcon(in sbIDevice aDevice)
Return the device icon file URL for the device specified by aDevice.