Songbird iPod Device Utility Definitions. More...
#include <sbMemoryUtils.h>
#include <sbIDevice.h>
#include <nsComponentManagerUtils.h>
#include <nsIIOService.h>
#include <nsIURI.h>
#include <nsIVariant.h>
#include <nsServiceManagerUtils.h>
#include <nsStringAPI.h>
#include <itdb.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
class | sbIPDVariant |
class | sbIPDURI |
Functions | |
SB_AUTO_CLASS (sbAutoGMemPtr, void *, mValue, g_free(mValue), mValue=NULL) | |
SB_AUTO_CLASS (sbAutoITDBTrackPtr, Itdb_Track *, mValue, itdb_track_free(mValue), mValue=NULL) | |
nsresult | CreateAndDispatchDeviceManagerEvent (PRUint32 aType, nsIVariant *aData=nsnull, nsISupports *aOrigin=nsnull, PRUint32 aDeviceState=sbIDevice::STATE_IDLE, PRBool aAsync=PR_FALSE) |
Songbird iPod Device Utility Definitions.
Definition in file sbIPDUtils.h.
nsresult CreateAndDispatchDeviceManagerEvent | ( | PRUint32 | aType, |
nsIVariant * | aData, | ||
nsISupports * | aOrigin, | ||
PRUint32 | aDeviceState, | ||
PRBool | aAsync | ||
) |
Create and dispatch an event through the device manager of the type specified by aType with the data specified by aData, originating from the object specified by aOrigin. If aAsync is true, dispatch and return immediately; otherwise, wait for the event handling to complete. aData, aOrigin, and aAsync are all optional. Default is to dispatch synchronously.
aType | Type of event. |
aData | Event data. |
aOrigin | Origin of event. |
aDeviceState | State of the device |
aAsync | If true, dispatch asynchronously. |
Definition at line 72 of file sbIPDUtils.cpp.
SB_AUTO_CLASS | ( | sbAutoGMemPtr | , |
void * | , | ||
mValue | , | ||
g_free(mValue) | , | ||
mValue | = NULL |
||
) |
SB_AUTO_CLASS | ( | sbAutoITDBTrackPtr | , |
Itdb_Track * | , | ||
mValue | , | ||
itdb_track_free(mValue) | , | ||
mValue | = NULL |
||
) |