32 #ifndef __METADATA_MANAGER_H__
33 #define __METADATA_MANAGER_H__
39 #include "sbIMetadataManager.h"
40 #include "sbIMetadataHandler.h"
42 #include <nsStringGlue.h>
48 #define SONGBIRD_METADATAMANAGER_CONTRACTID \
49 "@songbirdnest.com/Songbird/MetadataManager;1"
50 #define SONGBIRD_METADATAMANAGER_CLASSNAME \
51 "Songbird Metadata Manager Interface"
52 #define SONGBIRD_METADATAMANAGER_CID \
57 {0xba, 0xda, 0x7a, 0x3b, 0x4b, 0x19, 0x20, 0x34} \
65 NS_DECL_SBIMETADATAMANAGER
68 virtual ~sbMetadataManager();
70 static sbMetadataManager *GetSingleton();
71 static void DestroySingleton();
73 struct sbMetadataHandlerItem
75 nsCOMPtr<sbIMetadataHandler> m_Handler;
77 bool operator < (
const sbMetadataManager::sbMetadataHandlerItem &T )
const
79 return m_Vote < T.m_Vote;
81 bool operator == (
const sbMetadataManager::sbMetadataHandlerItem &T )
const
83 return m_Vote == T.m_Vote;
86 nsCString m_ContractID;
89 class handlerlist_t :
public std::set< sbMetadataHandlerItem > {};
90 class contractlist_t :
public std::list< nsCString > {};
91 contractlist_t m_ContractList;
92 PRLock *m_pContractListLock;
95 const nsAString &strURL,
101 #endif // __METADATA_MANAGER_H__
bool operator==(sbFraction const &aLeft, sbFraction const &aRight)
bool operator<(sbFraction const &aLeft, sbFraction const &aRight)