PlaylistCommandsComponent.cpp File Reference

Songbird PlaylistCommands Component Factory and Main Entry Point. More...

#include "nsIGenericFactory.h"
#include "PlaylistCommandsManager.h"
#include "sbPlaylistCommandsHelper.h"
Include dependency graph for PlaylistCommandsComponent.cpp:

Go to the source code of this file.

Macros

#define NS_GENERIC_FACTORY_SIMPLETON_CONSTRUCTOR(_Interface)
 

Functions

static CPlaylistCommandsManagerCPlaylistCommandsManagerSimpletonConstructor (void)
 
 NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR (CPlaylistCommandsManager, CPlaylistCommandsManagerSimpletonConstructor) static NS_IMETHODIMP CPlaylistCommandsManagerFactoryDestructor()
 

Variables

static CPlaylistCommandsManagerm_Simpleton = NULL
 
static nsModuleComponentInfo components []
 

Detailed Description

Songbird PlaylistCommands Component Factory and Main Entry Point.

Definition in file PlaylistCommandsComponent.cpp.

Macro Definition Documentation

#define NS_GENERIC_FACTORY_SIMPLETON_CONSTRUCTOR (   _Interface)
Value:
static _Interface * m_Simpleton = NULL; \
static _Interface * _Interface##SimpletonConstructor( void ) \
{ \
NS_IF_ADDREF( m_Simpleton ? m_Simpleton : ( NS_IF_ADDREF( m_Simpleton = new _Interface() ), m_Simpleton ) ); \
} \
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR( _Interface, _Interface##SimpletonConstructor )
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(CPlaylistCommandsManager, CPlaylistCommandsManagerSimpletonConstructor) static NS_IMETHODIMP CPlaylistCommandsManagerFactoryDestructor()
static CPlaylistCommandsManager * m_Simpleton
return
Definition: FeedWriter.js:850

Definition at line 35 of file PlaylistCommandsComponent.cpp.

Function Documentation

static CPlaylistCommandsManager* CPlaylistCommandsManagerSimpletonConstructor ( void  )
static

Definition at line 44 of file PlaylistCommandsComponent.cpp.

NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR ( CPlaylistCommandsManager  ,
CPlaylistCommandsManagerSimpletonConstructor   
)

Definition at line 44 of file PlaylistCommandsComponent.cpp.

Variable Documentation

nsModuleComponentInfo components[]
static
Initial value:
=
{
{
"Songbird Playlist Commands Manager Component" ,
{ 0xf89d8c28, 0x406d, 0x4d4b, { 0x91, 0x30, 0xec, 0xab, 0xe6, 0x6a, 0x71, 0xe2 } } ,
"@songbirdnest.com/Songbird/PlaylistCommandsManager;1" ,
CPlaylistCommandsManagerConstructor,
nsnull,
nsnull,
CPlaylistCommandsManagerFactoryDestructor
},
{
"Songbird Playlist Commands Manager Simple Component" ,
{ 0xada0a2ac, 0x1dd1, 0x11b2, {0xbb, 0x58, 0xce, 0xfe, 0xff, 0x88, 0x4e, 0xd4} } ,
"@songbirdnest.com/Songbird/PlaylistCommandsHelper;1" ,
sbPlaylistCommandsHelperConstructor,
},
}

Definition at line 54 of file PlaylistCommandsComponent.cpp.

CPlaylistCommandsManager* m_Simpleton = NULL
static

Definition at line 44 of file PlaylistCommandsComponent.cpp.