27 #include <nsComponentManagerUtils.h>
28 #include <sbIMediaList.h>
29 #include <sbIMediaItem.h>
37 nsresult rv = helper->
Init(aArray);
38 NS_ENSURE_SUCCESS(rv, nsnull);
56 NS_ENSURE_SUCCESS(rv, rv);
60 do_CreateInstance(
"@songbirdnest.com/moz/xpcom/threadsafe-array;1", &rv);
61 NS_ENSURE_SUCCESS(rv, rv);
69 NS_ENSURE_ARG_POINTER(aOutArray);
78 sbMediaListEnumArrayHelper::OnEnumerationBegin(
sbIMediaList *aMediaList,
81 NS_ENSURE_ARG_POINTER(_retval);
87 sbMediaListEnumArrayHelper::OnEnumeratedItem(
sbIMediaList *aMediaList,
91 NS_ENSURE_ARG_POINTER(_retval);
97 NS_ENSURE_SUCCESS(rv, rv);
100 rv =
mItemsArray->AppendElement(aMediaItem, PR_FALSE);
101 NS_ENSURE_SUCCESS(rv, rv);
106 sbMediaListEnumArrayHelper::OnEnumerationEnd(
sbIMediaList *aMediaList,
107 nsresult aStatusCode)
NS_IMPL_ISUPPORTS1(sbDeviceCapabilitiesUtils, sbIDeviceCapabilitiesUtils) sbDeviceCapabilitiesUtils