sbMediaItemControllerCleanup.cpp File Reference
#include "sbMediaItemControllerCleanup.h"
#include <nsIAppStartupNotifier.h>
#include <nsICategoryManager.h>
#include <nsIComponentManager.h>
#include <nsIComponentRegistrar.h>
#include <nsIEventTarget.h>
#include <nsIFile.h>
#include <nsIIdleService.h>
#include <nsILocalFile.h>
#include <nsIObserverService.h>
#include <nsIPropertyBag2.h>
#include <nsISimpleEnumerator.h>
#include <nsISupportsPrimitives.h>
#include <nsIURI.h>
#include <nsIURL.h>
#include <sbILibrary.h>
#include <sbILibraryManager.h>
#include <sbIMediaItemController.h>
#include <nsAutoLock.h>
#include <nsCOMPtr.h>
#include <nsServiceManagerUtils.h>
#include <nsStringAPI.h>
#include <nsTextFormatter.h>
#include <nsThreadUtils.h>
#include <sbDebugUtils.h>
#include <sbStandardProperties.h>
#include <sbStringUtils.h>
#include <sbProxiedComponentManager.h>
#include <algorithm>
Include dependency graph for sbMediaItemControllerCleanup.cpp:

Go to the source code of this file.

Macros

#define K_LAST_SEEN_TYPES_PROPERTY   "http://songbirdnest.com/data/1.0#libraryItemControllerLastSeenTypes"
 
#define K_LAST_SEEN_TYPES_SEPARATOR   '\x7F'
 
#define K_HIDDEN_FOR_CONTROLLER_PROPERTY   "http://songbirdnest.com/data/1.0#libraryItemControllerTypeDisappeared"
 
#define K_CLEANUP_COMPLETE_OBSERVER_TOPIC   "songbird-media-item-controller-cleanup-complete"
 
#define K_CLEANUP_INTERRUPTED_OBSERVER_TOPIC   "songbird-media-item-controller-cleanup-interrupted"
 
#define K_CLEANUP_IDLE_OBSERVER_TOPIC   "songbird-media-item-controller-cleanup-idle"
 
#define K_QUIT_APP_OBSERVER_TOPIC   "quit-application"
 
#define SB_THREADPOOLSERVICE_CONTRACTID   "@songbirdnest.com/Songbird/ThreadPoolService;1"
 

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS3 (sbMediaItemControllerCleanup, nsIObserver, nsIRunnable, sbILibraryManagerListener) sbMediaItemControllerCleanup
 
 NS_IMPL_THREADSAFE_ISUPPORTS2 (sbMediaItemControllerCleanup::sbEnumerationHelper, sbIMediaListEnumerationListener, sbIMediaListBatchCallback) sbMediaItemControllerCleanup
 

Variables

const PRUint32 K_IDLE_TIMEOUT = 5
 

Macro Definition Documentation

#define K_CLEANUP_COMPLETE_OBSERVER_TOPIC   "songbird-media-item-controller-cleanup-complete"

Definition at line 77 of file sbMediaItemControllerCleanup.cpp.

#define K_CLEANUP_IDLE_OBSERVER_TOPIC   "songbird-media-item-controller-cleanup-idle"

Definition at line 81 of file sbMediaItemControllerCleanup.cpp.

#define K_CLEANUP_INTERRUPTED_OBSERVER_TOPIC   "songbird-media-item-controller-cleanup-interrupted"

Definition at line 79 of file sbMediaItemControllerCleanup.cpp.

#define K_HIDDEN_FOR_CONTROLLER_PROPERTY   "http://songbirdnest.com/data/1.0#libraryItemControllerTypeDisappeared"

Definition at line 73 of file sbMediaItemControllerCleanup.cpp.

#define K_LAST_SEEN_TYPES_PROPERTY   "http://songbirdnest.com/data/1.0#libraryItemControllerLastSeenTypes"

To log this module, set the following environment variable: NSPR_LOG_MODULES=sbMediaItemControllerCleanup:5

Definition at line 68 of file sbMediaItemControllerCleanup.cpp.

#define K_LAST_SEEN_TYPES_SEPARATOR   '\x7F'

Definition at line 70 of file sbMediaItemControllerCleanup.cpp.

#define K_QUIT_APP_OBSERVER_TOPIC   "quit-application"

Definition at line 83 of file sbMediaItemControllerCleanup.cpp.

#define SB_THREADPOOLSERVICE_CONTRACTID   "@songbirdnest.com/Songbird/ThreadPoolService;1"

Definition at line 88 of file sbMediaItemControllerCleanup.cpp.

Function Documentation

NS_IMPL_THREADSAFE_ISUPPORTS3 ( sbMediaItemControllerCleanup  ,
nsIObserver  ,
nsIRunnable  ,
sbILibraryManagerListener   
)

Definition at line 92 of file sbMediaItemControllerCleanup.cpp.

Variable Documentation

const PRUint32 K_IDLE_TIMEOUT = 5

Definition at line 86 of file sbMediaItemControllerCleanup.cpp.