36 const nsAString & aImportType)
38 NS_ENSURE_ARG_POINTER(aDevice);
39 NS_ENSURE_ARG_POINTER(aMediaItem);
46 aMediaItem->ToString(mi);
48 nsCOMPtr<nsIURI> contentUri;
49 rv = aMediaItem->GetContentSrc(getter_AddRefs(contentUri));
50 NS_ENSURE_SUCCESS(rv, rv);
52 nsCAutoString contentSpec;
53 rv = contentUri->GetSpec(contentSpec);
54 NS_ENSURE_SUCCESS(rv, rv);
58 if (aImportType.IsEmpty()) {
65 nsAutoString importType(aImportType);
68 NS_ENSURE_SUCCESS(rv, rv);
80 nsAutoString genreKey(NS_LITERAL_STRING(
"device.sync.import_type."));
81 genreKey.Append(importType);
82 nsAutoString genre = bundle.
Get(genreKey);
85 NS_ENSURE_SUCCESS(rv, rv);
88 nsAutoString deviceName;
89 rv = aDevice->GetName(deviceName);
90 NS_ENSURE_SUCCESS(rv, rv);
93 NS_ENSURE_SUCCESS(rv, rv);
#define SB_PROPERTY_IMPORTTYPE
#define SB_VALUE_IMPORTTYPE_VIDEO_RECORDING
#define SB_VALUE_IMPORTTYPE_VOICE_RECORDING
nsString Get(const nsAString &aKey, const nsAString &aDefault=SBVoidString())
#define SB_PROPERTY_GENRE
#define SB_PROPERTY_ARTISTNAME
Songbird String Bundle Definitions.
#define SB_VALUE_IMPORTTYPE_FM_RECORDING