31 #include "nsIGenericFactory.h"
35 #define NS_GENERIC_FACTORY_SIMPLETON_CONSTRUCTOR( _Interface ) \
36 static _Interface * m_Simpleton = NULL; \
37 static _Interface * _Interface##SimpletonConstructor( void ) \
39 NS_IF_ADDREF( m_Simpleton ? m_Simpleton : ( NS_IF_ADDREF( m_Simpleton = new _Interface() ), m_Simpleton ) ); \
42 NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR( _Interface, _Interface##SimpletonConstructor )
48 static NS_IMETHODIMP CPlaylistCommandsManagerFactoryDestructor()
60 CPlaylistCommandsManagerConstructor,
63 CPlaylistCommandsManagerFactoryDestructor
69 sbPlaylistCommandsHelperConstructor,
#define SONGBIRD_PlaylistCommandsManager_CONTRACTID
#define SONGBIRD_PLAYLISTCOMMANDSHELPER_CONTRACTID
static CPlaylistCommandsManager * m_Simpleton
static nsModuleComponentInfo components[]
#define SONGBIRD_PlaylistCommandsManager_CID
Songbird PlaylistCommandsManager Component Definition.
#define SONGBIRD_PLAYLISTCOMMANDSHELPER_CLASSNAME
#define SONGBIRD_PLAYLISTCOMMANDSHELPER_CID
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
Songbird PlaylistCommandsHelper Component Definition.
#define SONGBIRD_PlaylistCommandsManager_CLASSNAME
#define NS_GENERIC_FACTORY_SIMPLETON_CONSTRUCTOR(_Interface)