sbPlayQueueService Class Reference

#include <sbPlayQueueService.h>

Inheritance diagram for sbPlayQueueService:
[legend]
Collaboration diagram for sbPlayQueueService:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIPLAYQUEUESERVICE
NS_DECL_SBIMEDIALISTLISTENER
NS_DECL_SBIMEDIACOREEVENTLISTENER
NS_DECL_SBILOCALDATABASELIBRARYCOPYLISTENER
NS_DECL_NSIOBSERVER 
sbPlayQueueService ()
 
virtual ~sbPlayQueueService ()
 
nsresult Init ()
 
void SetIgnoreListListener (PRBool aIgnore)
 
- Public Member Functions inherited from sbIPlayQueueService
void queueNext (in sbIMediaItem aMediaItem)
 Adds a media item to the next slot in the Play Queue. More...
 
void queueLast (in sbIMediaItem aMediaItem)
 Adds a media item to the end of the Play Queue. More...
 
void queueSomeBefore (in unsigned long aIndex, in nsISimpleEnumerator aMediaItems)
 Adds an enumerator of media items before the slot specified by aIndex in the Play Queue asynchronously. Items are not actually in the queue until the onQueueOperationCompleted notification is sent, and callers should not attempt to add or remove items from the queue while the operation is in progress. More...
 
void queueSomeNext (in nsISimpleEnumerator aMediaItems)
 Adds an enumerator of media items to the next slot in the Play Queue asynchronously. Items are not actually in the queue until the onQueueOperationCompleted notification is sent, and callers should not attempt to add or remove items from the queue while the operation is in progress. More...
 
void queueSomeLast (in nsISimpleEnumerator aMediaItems)
 Adds an enumerator of media items to the end of the Play Queue asynchronously. Items are not actually in the queue until the onQueueOperationCompleted notification is sent, and callers should not attempt to add or remove items from the queue while the operation is in progress. More...
 
void clearHistory ()
 Clear the Play Queue's history. More...
 
void clearAll ()
 Clear the Play Queue's contents. More...
 
void addListener (in sbIPlayQueueServiceListener aListener)
 Add a listener for the service. More...
 
void removeListener (in sbIPlayQueueServiceListener aListener)
 Remove a listener for the service. More...
 
- Public Member Functions inherited from sbIMediaListListener
boolean onItemAdded (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called when a media item is added to the list. More...
 
boolean onBeforeItemRemoved (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called before a media item is removed from the list. More...
 
boolean onAfterItemRemoved (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called after a media item is removed from the list. More...
 
boolean onItemUpdated (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in sbIPropertyArray aProperties)
 Called when a media item is changed. More...
 
boolean onItemMoved (in sbIMediaList aMediaList, in unsigned long aFromIndex, in unsigned long aToIndex)
 Called when a media item is moved. More...
 
boolean onBeforeListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
boolean onListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
void onBatchBegin (in sbIMediaList aMediaList)
 Called when the library is about to perform multiple operations at once. More...
 
void onBatchEnd (in sbIMediaList aMediaList)
 Called when the library has finished performing multiple operations at once. More...
 
- Public Member Functions inherited from sbIMediacoreEventListener
void onMediacoreEvent (in sbIMediacoreEvent aEvent)
 
- Public Member Functions inherited from sbILocalDatabaseLibraryCopyListener
void onItemCopied (in sbIMediaItem aSourceItem, in sbIMediaItem aDestinationItem)
 

Static Public Member Functions

static NS_METHOD RegisterSelf (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
 

Friends

class sbPlayQueueAsyncListener
 

Additional Inherited Members

- Public Attributes inherited from sbIPlayQueueService
readonly attribute sbIMediaList mediaList
 The underlying MediaList for the Play Queue. More...
 
attribute unsigned long index
 Index of the current track in the Play Queue. More...
 
readonly attribute boolean operationInProgress
 Whether a queue operation is in progress. More...
 

Detailed Description

Definition at line 60 of file sbPlayQueueService.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_SBIPLAYQUEUESERVICE NS_DECL_SBIMEDIALISTLISTENER NS_DECL_SBIMEDIACOREEVENTLISTENER NS_DECL_SBILOCALDATABASELIBRARYCOPYLISTENER NS_DECL_NSIOBSERVER sbPlayQueueService::sbPlayQueueService ( )
sbPlayQueueService::~sbPlayQueueService ( )
virtual

Definition at line 227 of file sbPlayQueueService.cpp.

Member Function Documentation

nsresult sbPlayQueueService::Init ( )

Definition at line 234 of file sbPlayQueueService.cpp.

NS_METHOD sbPlayQueueService::RegisterSelf ( nsIComponentManager *  aCompMgr,
nsIFile *  aPath,
const char *  aLoaderStr,
const char *  aType,
const nsModuleComponentInfo *  aInfo 
)
static

Definition at line 1586 of file sbPlayQueueService.cpp.

void sbPlayQueueService::SetIgnoreListListener ( PRBool  aIgnore)
inline

Definition at line 87 of file sbPlayQueueService.h.

Friends And Related Function Documentation

friend class sbPlayQueueAsyncListener
friend

Definition at line 66 of file sbPlayQueueService.h.


The documentation for this class was generated from the following files: