sbRemoteAPIModule.cpp
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25  */
26 
27 #include "sbRemoteAPIService.h"
28 #include "sbRemotePlayer.h"
29 #include "sbRemotePlayerFactory.h"
30 #include "sbSecurityMixin.h"
31 #include "sbRemoteSecurityEvent.h"
32 
33 #include <nsIClassInfoImpl.h>
34 
36 
38 
40 NS_DECL_CI_INTERFACE_GETTER(sbSecurityMixin)
41 
43 NS_DECL_CI_INTERFACE_GETTER(sbRemoteSecurityEvent)
44 
46 NS_DECL_CI_INTERFACE_GETTER(sbRemotePlayer)
47 
48 // fill out data struct to register with component system
49 static const nsModuleComponentInfo components[] =
50 {
51  {
55  sbRemoteAPIServiceConstructor
56  },
57  {
61  sbRemotePlayerFactoryConstructor
62  },
63  {
67  sbRemotePlayerConstructor,
70  NULL,
71  NS_CI_INTERFACE_GETTER_NAME(sbRemotePlayer)
72  },
73  {
77  sbSecurityMixinConstructor,
78  NULL,
79  NULL,
80  NULL,
81  NS_CI_INTERFACE_GETTER_NAME(sbSecurityMixin)
82  },
83  {
87  sbRemoteSecurityEventConstructor,
88  NULL,
89  NULL,
90  NULL,
91  NS_CI_INTERFACE_GETTER_NAME(sbRemoteSecurityEvent)
92  }
93 };
94 
95 // create the module info struct that is used to regsiter
96 NS_IMPL_NSGETMODULE(SongbirdRemoteAPIModule, components)
97 
#define SONGBIRD_SECURITYMIXIN_CLASSNAME
#define SONGBIRD_REMOTEPLAYERFACTORY_CONTRACTID
#define SONGBIRD_REMOTEPLAYER_CLASSNAME
#define SONGBIRD_REMOTEPLAYERFACTORY_CID
#define SONGBIRD_SECURITYEVENT_CONTRACTID
#define SONGBIRD_REMOTEPLAYER_CONTRACTID
#define SONGBIRD_SECURITYMIXIN_CONTRACTID
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(sbMockDeviceFirmwareHandler, Init)
#define SONGBIRD_REMOTEPLAYER_CID
static NS_METHOD Register(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
#define SONGBIRD_REMOTEPLAYERFACTORY_CLASSNAME
#define SONGBIRD_SECURITYEVENT_CLASSNAME
static const nsModuleComponentInfo components[]
function Init()
#define SONGBIRD_SECURITYEVENT_CID
#define SONGBIRD_REMOTEAPI_SERVICE_CID
#define SONGBIRD_REMOTEAPI_SERVICE_CONTRACTID
#define SONGBIRD_REMOTEAPI_SERVICE_CLASSNAME
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
static NS_METHOD Unregister(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const nsModuleComponentInfo *aInfo)
NS_GENERIC_FACTORY_CONSTRUCTOR(sbMediaSniffer)
#define SONGBIRD_SECURITYMIXIN_CID