#include <sbMediaItemControllerCleanup.h>
Classes | |
struct | nsCOMPtrComp |
class | sbEnumerationHelper |
Public Member Functions | |
sbMediaItemControllerCleanup () | |
~sbMediaItemControllerCleanup () | |
Public Member Functions inherited from sbILibraryManagerListener | |
void | onLibraryRegistered (in sbILibrary aLibrary) |
Called when a library is registered with the Library Manager. More... | |
void | onLibraryUnregistered (in sbILibrary aLibrary) |
Called when a library is unregistered from the Library Manager. More... | |
Static Public Member Functions | |
static NS_METHOD | RegisterSelf (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo) |
Protected Types | |
enum | { STATE_IDLE, STATE_QUEUED, STATE_RUNNING, STATE_STOPPING } |
typedef std::map< std::string, bool > | types_t |
typedef std::map< nsCOMPtr < sbILibrary >, types_t, nsCOMPtrComp< sbILibrary > > | libraries_t |
Protected Member Functions | |
nsresult | EnsureAvailableTypes () |
nsresult | ProcessLibraries () |
Protected Attributes | |
nsRefPtr< sbEnumerationHelper > | mListener |
types_t | mAvailableTypes |
bool | mAvailableTypesInitialized |
bool | mIdleServiceRegistered |
libraries_t | mLibraries |
nsCOMPtr< nsIEventTarget > | mBackgroundEventTarget |
enum sbMediaItemControllerCleanup:: { ... } | mState |
PRLock * | mLock |
Definition at line 54 of file sbMediaItemControllerCleanup.h.
|
protected |
Definition at line 158 of file sbMediaItemControllerCleanup.h.
|
protected |
Map of types that are interesting The key is the type name The value is true if the type has been added, and false if it has been removed. This means the types which didn't change are not listed.
Definition at line 131 of file sbMediaItemControllerCleanup.h.
|
protected |
The current state of the jobs
Enumerator | |
---|---|
STATE_IDLE | |
STATE_QUEUED | |
STATE_RUNNING | |
STATE_STOPPING |
Definition at line 169 of file sbMediaItemControllerCleanup.h.
sbMediaItemControllerCleanup::sbMediaItemControllerCleanup | ( | ) |
sbMediaItemControllerCleanup::~sbMediaItemControllerCleanup | ( | ) |
Definition at line 109 of file sbMediaItemControllerCleanup.cpp.
|
protected |
Makes sure the mAvailableTypes member is correctly filled out
Definition at line 552 of file sbMediaItemControllerCleanup.cpp.
|
protected |
Goes through the libraries we need to process and hides items with unavailable track types
Definition at line 597 of file sbMediaItemControllerCleanup.cpp.
|
static |
Definition at line 754 of file sbMediaItemControllerCleanup.cpp.
|
protected |
Definition at line 144 of file sbMediaItemControllerCleanup.h.
|
protected |
Definition at line 145 of file sbMediaItemControllerCleanup.h.
|
protected |
The thread we will run our jobs on
Definition at line 164 of file sbMediaItemControllerCleanup.h.
|
protected |
Definition at line 148 of file sbMediaItemControllerCleanup.h.
|
protected |
Definition at line 159 of file sbMediaItemControllerCleanup.h.
|
protected |
Definition at line 122 of file sbMediaItemControllerCleanup.h.
|
protected |
The lock guards the following variables:
Definition at line 184 of file sbMediaItemControllerCleanup.h.
enum { ... } sbMediaItemControllerCleanup::mState |
The current state of the jobs