sbIPDDevice.h File Reference

Songbird iPod Device Definitions. More...

#include "sbIPDLibrary.h"
#include "sbIPDProperties.h"
#include "sbIPDStatus.h"
#include <sbBaseDevice.h>
#include <sbDeviceCapabilities.h>
#include <sbIDatabaseQuery.h>
#include <sbIDeviceContent.h>
#include <sbIDeviceLibrary.h>
#include <sbILibraryManager.h>
#include <sbIPropertyArray.h>
#include <sbIPropertyManager.h>
#include <sbLibraryListenerHelpers.h>
#include <nsIClassInfo.h>
#include <nsIFileProtocolHandler.h>
#include <nsIRunnable.h>
#include <nsIStringBundle.h>
#include <nsIThread.h>
#include <nsTArray.h>
#include <prrwlock.h>
#include <map>
#include <vector>
#include <itdb.h>
Include dependency graph for sbIPDDevice.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sbIPDDevice
 
class  sbIPDReqAddedEvent
 

Macros

#define IPOD_LOCALE_BUNDLE_PATH   "chrome://ipod/locale/IPodDevice.properties"
 
#define IPOD_STATS_UPDATE_PERIOD   500
 
#define SB_IPD_DEVICE_AUTO_INVOKE(aName, aMethod)   SB_AUTO_CLASS(aName, sbIPDDevice*, mValue, mValue->aMethod, mValue = nsnull)
 

Functions

 SB_AUTO_CLASS (sbIPDAutoDBFlush, sbIPDDevice *, mValue, mValue->DBFlush(), mValue=nsnull)
 
 SB_AUTO_CLASS (sbIPDAutoIdle, sbIPDDevice *, mValue, mValue->mIPDStatus->Idle(), mValue=nsnull)
 
 SB_AUTO_CLASS2 (sbIPDAutoTrack, Itdb_Track *, sbIPDDevice *, mValue, mValue2->DeleteTrack(mValue), mValue=NULL)
 
 SB_AUTO_CLASS (sbIPDAutoStopIgnoreLibrary, sbBaseDeviceLibraryListener *, mValue, mValue->SetIgnoreListener(PR_FALSE), mValue=nsnull)
 
 SB_AUTO_CLASS (sbIPDAutoStopIgnoreMediaLists, sbIPDDevice *, mValue, mValue->SetIgnoreMediaListListeners(PR_FALSE), mValue=nsnull)
 
 SB_AUTO_CLASS (sbIPDAutoFalse, PRBool *, mValue,*mValue=PR_FALSE, mValue=nsnull)
 

Variables

const char * sbIPDSupportedMediaList []
 
PRUint32 sbIPDSupportedMediaListLength
 
const char * sbIPDSupportedAudioMediaList []
 
PRUint32 sbIPDSupportedAudioMediaListLength
 

Detailed Description

Songbird iPod Device Definitions.

Definition in file sbIPDDevice.h.

Macro Definition Documentation

#define IPOD_LOCALE_BUNDLE_PATH   "chrome://ipod/locale/IPodDevice.properties"

Definition at line 210 of file sbIPDDevice.h.

#define IPOD_STATS_UPDATE_PERIOD   500

Definition at line 211 of file sbIPDDevice.h.

#define SB_IPD_DEVICE_AUTO_INVOKE (   aName,
  aMethod 
)    SB_AUTO_CLASS(aName, sbIPDDevice*, mValue, mValue->aMethod, mValue = nsnull)

Define a class with the name specified by aName to automatically invoke the sbIPDDevice method specified by aMethod upon scope exit.

Parameters
aNameName of class.
aMethodMethod invocation.

Example: SB_IPD_DEVICE_AUTO_INVOKE(AutoDisconnect, PrefDisconnect()) autoDisconnect(this);

This example will call PrefDisconnect() when exiting the scope. This may be cancelled by calling autoDisconnect.forget().

Definition at line 1179 of file sbIPDDevice.h.

Function Documentation

SB_AUTO_CLASS ( sbIPDAutoDBFlush  ,
sbIPDDevice ,
mValue  ,
mValue->  DBFlush(),
mValue  = nsnull 
)

Auto-disposal class wrappers.

sbIPDAutoDBFlush Wrapper to auto-flush the iPod database. sbIPDAutoIdle Wrapper to auto idle the iPod device. sbIPDAutoTrack Wrapper to auto delete track from the iPod device. First constructor parameter is track and the second is the iPod device object. sbIPDAutoStopIgnoreLibrary Wrapper to auto stop ignoring library changes. sbIPDAutoStopIgnoreMediaLists Wrapper to auto stop ignoring media list changes. sbIPDAutoFalse Wrapper to automatically set a boolean to false.

SB_AUTO_CLASS ( sbIPDAutoIdle  ,
sbIPDDevice ,
mValue  ,
mValue->mIPDStatus->  Idle(),
mValue  = nsnull 
)
SB_AUTO_CLASS ( sbIPDAutoStopIgnoreLibrary  ,
sbBaseDeviceLibraryListener ,
mValue  ,
mValue->  SetIgnoreListenerPR_FALSE,
mValue  = nsnull 
)
SB_AUTO_CLASS ( sbIPDAutoStopIgnoreMediaLists  ,
sbIPDDevice ,
mValue  ,
mValue->  SetIgnoreMediaListListenersPR_FALSE,
mValue  = nsnull 
)
SB_AUTO_CLASS ( sbIPDAutoFalse  ,
PRBool *  ,
mValue  ,
mValue = PR_FALSE,
mValue  = nsnull 
)
SB_AUTO_CLASS2 ( sbIPDAutoTrack  ,
Itdb_Track *  ,
sbIPDDevice ,
mValue  ,
mValue2->  DeleteTrackmValue,
mValue  = NULL 
)

Variable Documentation

const char* sbIPDSupportedAudioMediaList[]

Definition at line 111 of file sbIPDDevice.cpp.

PRUint32 sbIPDSupportedAudioMediaListLength

Definition at line 122 of file sbIPDDevice.cpp.

const char* sbIPDSupportedMediaList[]

Definition at line 93 of file sbIPDDevice.cpp.

PRUint32 sbIPDSupportedMediaListLength

Definition at line 109 of file sbIPDDevice.cpp.