sbMediaItemControllerCleanup Class Reference

#include <sbMediaItemControllerCleanup.h>

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

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< sbEnumerationHelpermListener
 
types_t mAvailableTypes
 
bool mAvailableTypesInitialized
 
bool mIdleServiceRegistered
 
libraries_t mLibraries
 
nsCOMPtr< nsIEventTarget > mBackgroundEventTarget
 
enum
sbMediaItemControllerCleanup:: { ... }  
mState
 
PRLock * mLock
 

Detailed Description

Definition at line 54 of file sbMediaItemControllerCleanup.h.

Member Typedef Documentation

Definition at line 158 of file sbMediaItemControllerCleanup.h.

typedef std::map<std::string, bool> sbMediaItemControllerCleanup::types_t
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.

Member Enumeration Documentation

anonymous enum
protected

The current state of the jobs

Enumerator
STATE_IDLE 
STATE_QUEUED 
STATE_RUNNING 
STATE_STOPPING 

Definition at line 169 of file sbMediaItemControllerCleanup.h.

Constructor & Destructor Documentation

sbMediaItemControllerCleanup::sbMediaItemControllerCleanup ( )
sbMediaItemControllerCleanup::~sbMediaItemControllerCleanup ( )

Definition at line 109 of file sbMediaItemControllerCleanup.cpp.

Member Function Documentation

nsresult sbMediaItemControllerCleanup::EnsureAvailableTypes ( )
protected

Makes sure the mAvailableTypes member is correctly filled out

Definition at line 552 of file sbMediaItemControllerCleanup.cpp.

nsresult sbMediaItemControllerCleanup::ProcessLibraries ( )
protected

Goes through the libraries we need to process and hides items with unavailable track types

Definition at line 597 of file sbMediaItemControllerCleanup.cpp.

Here is the call graph for this function:

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

Definition at line 754 of file sbMediaItemControllerCleanup.cpp.

Member Data Documentation

types_t sbMediaItemControllerCleanup::mAvailableTypes
protected

Definition at line 144 of file sbMediaItemControllerCleanup.h.

bool sbMediaItemControllerCleanup::mAvailableTypesInitialized
protected

Definition at line 145 of file sbMediaItemControllerCleanup.h.

nsCOMPtr<nsIEventTarget> sbMediaItemControllerCleanup::mBackgroundEventTarget
protected

The thread we will run our jobs on

Definition at line 164 of file sbMediaItemControllerCleanup.h.

bool sbMediaItemControllerCleanup::mIdleServiceRegistered
protected

Definition at line 148 of file sbMediaItemControllerCleanup.h.

libraries_t sbMediaItemControllerCleanup::mLibraries
protected

Definition at line 159 of file sbMediaItemControllerCleanup.h.

nsRefPtr<sbEnumerationHelper> sbMediaItemControllerCleanup::mListener
protected

Definition at line 122 of file sbMediaItemControllerCleanup.h.

PRLock* sbMediaItemControllerCleanup::mLock
protected

The lock guards the following variables:

  • mState
  • mLibraries

Definition at line 184 of file sbMediaItemControllerCleanup.h.

enum { ... } sbMediaItemControllerCleanup::mState

The current state of the jobs


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