26 #ifndef _SB_MEDIAITEMCONTROLLERCLEANUP_H_
27 #define _SB_MEDIAITEMCONTROLLERCLEANUP_H_
35 #include <nsIGenericFactory.h>
36 #include <nsIObserver.h>
37 #include <nsIRunnable.h>
39 #include <sbILibrary.h>
40 #include <sbILibraryManagerListener.h>
41 #include <sbIMediaListListener.h>
42 #include <sbIPropertyArray.h>
44 #include <nsAutoPtr.h>
61 NS_DECL_SBILIBRARYMANAGERLISTENER
67 static NS_METHOD
RegisterSelf(nsIComponentManager* aCompMgr,
69 const char* aLoaderStr,
71 const nsModuleComponentInfo *aInfo);
79 NS_DECL_SBIMEDIALISTENUMERATIONLISTENER
80 NS_DECL_SBIMEDIALISTBATCHCALLBACK
152 bool operator()(
const nsCOMPtr<T> l,
const nsCOMPtr<T> r)
const {
153 return l.get() < r.get();
156 typedef std::map<nsCOMPtr<sbILibrary>,
187 #define SONGBIRD_MEDIAITEMCONTROLLERCLEANUP_CONTRACTID \
188 "@songbirdnest.com/Songbird/Library/MediaItemControllerCleanup;1"
189 #define SONGBIRD_MEDIAITEMCONTROLLERCLEANUP_CLASSNAME "sbMediaItemControllerCleanup"
190 #define SONGBIRD_MEDIAITEMCONTROLLERCLEANUP_CID \
195 { 0x8f, 0x86, 0x31, 0x45, 0xa3, 0xde, 0xff, 0x88 } \
Manages the lifecycle of libraries in the system.
An interface to carry around arrays of nsIProperty instances. Users of this interface should only QI ...