51 #include <nsIPropertyBag.h>
52 #include <nsIPropertyBag2.h>
53 #include <nsIWritablePropertyBag.h>
75 NS_ENSURE_SUCCESS(rv, rv);
81 osErr = FSEjectVolumeSync(mVolumeRefNum, 0, &dissenterPID);
82 NS_ENSURE_TRUE(osErr == noErr, NS_ERROR_FAILURE);
102 nsIPropertyBag* aProperties) :
107 NS_ASSERTION(aProperties,
"aProperties is null");
112 LOG(
"Enter: sbIPDSysDevice::sbIPDSysDevice\n");
123 LOG(
"Enter: sbIPDSysDevice::~sbIPDSysDevice\n");
140 nsCOMPtr<nsIPropertyBag2>
properties = do_QueryInterface(mProperties, &rv);
141 NS_ENSURE_SUCCESS(rv, rv);
142 nsCOMPtr<nsIWritablePropertyBag> writeProperties =
143 do_QueryInterface(mProperties, &rv);
144 NS_ENSURE_SUCCESS(rv, rv);
147 rv = writeProperties->SetProperty
150 NS_ENSURE_SUCCESS(rv, rv);
153 NS_ENSURE_SUCCESS(rv, rv);
156 nsAutoString firewireGUID;
157 NS_ENSURE_SUCCESS(rv, rv);
158 rv = properties->GetPropertyAsAString(NS_LITERAL_STRING(
"FirewireGUID"),
160 NS_ENSURE_SUCCESS(rv, rv);
163 nsCOMPtr<nsIVariant> propVariant;
164 rv = properties->Get(NS_LITERAL_STRING(
"VolumeRefNum"),
165 getter_AddRefs(propVariant));
166 NS_ENSURE_SUCCESS(rv, rv);
168 NS_ENSURE_SUCCESS(rv, rv);
172 rv = writeProperties->SetProperty
175 NS_ENSURE_SUCCESS(rv, rv);
179 NS_ENSURE_SUCCESS(rv, rv);
#define SB_PRLOG_SETUP(x)
nsCOMPtr< nsIArray > mProperties
#define SB_DEVICE_PROPERTY_MANUFACTURER
sbIPDSysDevice(const nsID &aControllerID, nsIPropertyBag *aProperties)
Songbird iPod Device Logging Definitions.
readonly attribute sbIDeviceProperties properties
#define SB_DEVICE_PROPERTY_SERIAL_NUMBER
#define SB_DEVICE_PROPERTY_MODEL
static nsresult GetValue(nsIVariant *aVariant, PRInt16 *aValue)