sbIPDUtils.h File Reference

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>
Include dependency graph for sbIPDUtils.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Songbird iPod Device Utility Definitions.

Definition in file sbIPDUtils.h.

Function Documentation

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.

Parameters
aTypeType of event.
aDataEvent data.
aOriginOrigin of event.
aDeviceStateState of the device
aAsyncIf 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 
)