sbDeviceBaseModule.cpp
Go to the documentation of this file.
1 /* vim: set sw=2 :miv */
2 /*
3 //
4 // BEGIN SONGBIRD GPL
5 //
6 // This file is part of the Songbird web player.
7 //
8 // Copyright(c) 2005-2008 POTI, Inc.
9 // http://songbirdnest.com
10 //
11 // This file may be licensed under the terms of of the
12 // GNU General Public License Version 2 (the "GPL").
13 //
14 // Software distributed under the License is distributed
15 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
16 // express or implied. See the GPL for the specific language
17 // governing rights and limitations.
18 //
19 // You should have received a copy of the GPL along with this
20 // program. If not, go to http://www.gnu.org/licenses/gpl.html
21 // or write to the Free Software Foundation, Inc.,
22 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 //
24 // END SONGBIRD GPL
25 //
26 */
27 
33 #include <nsCOMPtr.h>
34 #include <nsServiceManagerUtils.h>
35 #include <nsIAppStartupNotifier.h>
36 #include <nsICategoryManager.h>
37 #include <nsIGenericFactory.h>
38 
39 #include "sbDeviceProperties.h"
40 #include "sbDeviceCapabilities.h"
44 #include "sbDeviceStatus.h"
45 
62 
63 static nsModuleComponentInfo sbDeviceBaseComponents[] =
64 {
65  {
69  sbDevicePropertiesConstructor
70  },
71 
72  {
76  sbDeviceCapabilitiesConstructor
77  },
78 
79  {
83  sbDeviceCapabilitiesUtilsConstructor
84  },
85 
86  {
90  sbDeviceCapsCompatibilityConstructor
91  },
92 
93  {
97  sbDeviceLibrarySyncDiffConstructor
98  },
99 
100  {
104  sbDeviceStatusConstructor
105  },
106 
107  {
111  sbAudioFormatTypeConstructor
112  },
113 
114  {
118  sbVideoFormatTypeConstructor
119  },
120 
121  {
125  sbFormatTypeConstraintConstructor
126  },
127 
128  {
132  sbImageFormatTypeConstructor
133  },
134 
135  {
139  sbImageSizeConstructor
140  },
141 
142  {
146  sbDevCapVideoStreamConstructor
147  },
148 
149  {
153  sbDevCapAudioStreamConstructor
154  },
155 
156  {
160  sbVideoFormatTypeConstructor
161  },
162 
163  {
167  sbDevCapRangeConstructor
168  },
169 
170  {
174  sbPlaylistFormatTypeConstructor
175  },
176 
177  {
181  sbDevCapFractionConstructor
182  },
183 
184 };
185 
186 NS_IMPL_NSGETMODULE(SongbirdDeviceBaseComps, sbDeviceBaseComponents)
187 
#define SONGBIRD_DEVICEPROPERTIES_CLASSNAME
#define SB_IAUDIOFORMATTYPE_CONTRACTID
#define SB_IVIDEOFORMATTYPE_CLASSNAME
#define SONGBIRD_DEVICEPROPERTIES_CID
#define SB_IDEVCAPVIDEOSTREAM_CLASSNAME
#define SB_IMAGESIZE_CONTRACTID
NS_GENERIC_FACTORY_CONSTRUCTOR(sbAudioFormatType)
#define SB_IMAGESIZE_CID
static nsModuleComponentInfo sbDeviceBaseComponents[]
#define SB_IDEVCAPFRACTION_CLASSNAME
#define SB_IVIDEOFORMATTYPE_CID
#define SB_IFORMATTYPECONSTRAINT_CLASSNAME
#define SONGBIRD_DEVICECAPABILITIES_CID
#define SONGBIRD_DEVICECAPABILITIESUTILS_CLASSNAME
#define SONGBIRD_DEVICESTATUS_CONTRACTID
#define SB_IPLAYLISTFORMATTYPE_CLASSNAME
#define SONGBIRD_DEVICECAPSCOMPATIBILITY_CID
#define SB_IIMAGEFORMATTYPE_CLASSNAME
#define SB_IIMAGEFORMATTYPE_CONTRACTID
#define SB_IAUDIOFORMATTYPE_CLASSNAME
#define SB_IDEVCAPAUDIOSTREAM_CONTRACTID
#define SB_IDEVCAPVIDEOSTREAM_CID
#define SONGBIRD_DEVICECAPSCOMPATIBILITY_DESCRIPTION
#define SB_IDEVCAPVIDEOSTREAM_CONTRACTID
#define SB_IAUDIOFORMATTYPE_CID
#define SONGBIRD_DEVICECAPABILITIES_CONTRACTID
#define SB_IDEVCAPAUDIOSTREAM_CLASSNAME
#define SB_IIMAGEFORMATTYPE_CID
#define SB_IDEVCAPFRACTION_CONTRACTID
#define SONGBIRD_DEVICELIBRARYSYNCDIFF_DESCRIPTION
#define SB_IFORMATTYPECONSTRAINT_CONTRACTID
#define SONGBIRD_DEVICELIBRARYSYNCDIFF_CID
#define SONGBIRD_DEVICECAPABILITIESUTILS_CONTRACTID
#define SB_IDEVCAPFRACTION_CID
#define SB_IDEVCAPRANGE_CONTRACTID
#define SONGBIRD_DEVICEPROPERTIES_CONTRACTID
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
#define SB_IDEVCAPAUDIOSTREAM_CID
#define SONGBIRD_DEVICELIBRARYSYNCDIFF_CONTRACTID
#define SB_IVIDEOFORMATTYPE_CONTRACTID
#define SONGBIRD_DEVICECAPABILITIESUTILS_CID
#define SB_IPLAYLISTFORMATTYPE_CONTRACTID
#define SB_IFORMATTYPECONSTRAINT_CID
#define SONGBIRD_DEVICESTATUS_CLASSNAME
#define SONGBIRD_DEVICECAPABILITIES_CLASSNAME
#define SB_IPLAYLISTFORMATTYPE_CID
#define SONGBIRD_DEVICECAPSCOMPATIBILITY_CONTRACTID
#define SB_IMAGESIZE_CLASSNAME
#define SONGBIRD_DEVICESTATUS_CID
#define SB_IDEVCAPRANGE_CID
#define SB_IDEVCAPRANGE_CLASSNAME