42 #include <nsServiceManagerUtils.h>
45 #include <sbIDeviceEvent.h>
46 #include <sbIDeviceEventTarget.h>
47 #include <sbIDeviceManager.h>
75 PRUint32 aDeviceState,
81 nsCOMPtr<sbIDeviceManager2>
82 manager = do_GetService(
"@songbirdnest.com/Songbird/DeviceManager;2", &rv);
83 NS_ENSURE_SUCCESS(rv, rv);
86 nsCOMPtr<sbIDeviceEventTarget>
eventTarget = do_QueryInterface(manager, &rv);
87 NS_ENSURE_SUCCESS(rv, rv);
90 nsCOMPtr<sbIDeviceEvent>
event;
91 rv = manager->CreateEvent(aType,
96 getter_AddRefs(event));
97 NS_ENSURE_SUCCESS(rv, rv);
101 rv = eventTarget->DispatchEvent(event, aAsync, &dispatched);
102 NS_ENSURE_SUCCESS(rv, rv);
nsresult CreateAndDispatchDeviceManagerEvent(PRUint32 aType, nsIVariant *aData, nsISupports *aOrigin, PRUint32 aDeviceState, PRBool aAsync)
Songbird iPod Device Utility Definitions.
const unsigned long STATE_IDLE
_updateTextAndScrollDataForFrame aData