sbIDeviceCapsCompatibility.idl
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2009 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
30 #include "nsISupports.idl"
31 
32 interface sbIDeviceCapabilities;
33 interface sbIMediaFormat;
34 
40 [scriptable, uuid(82bf1267-7a96-4f83-97b6-32faa64f3325)]
42 {
51  void initialize(in sbIDeviceCapabilities aDeviceCapabilities,
52  in sbIMediaFormat aMediaFormat,
53  in unsigned long aContentType);
54 
61  boolean compare();
62 };
63 
64 %{C++
65 #define SONGBIRD_DEVICECAPSCOMPATIBILITY_DESCRIPTION \
66  "Songbird Device Capabilities Compatibility Component"
67 #define SONGBIRD_DEVICECAPSCOMPATIBILITY_CONTRACTID \
68  "@songbirdnest.com/Songbird/Device/DeviceCapsCompatibility;1"
69 #define SONGBIRD_DEVICECAPSCOMPATIBILITY_CLASSNAME \
70  "Songbird Device Capabilities"
71 #define SONGBIRD_DEVICECAPSCOMPATIBILITY_CID \
72 { /* e8717123-1bb2-4ca5-a442-7e8424fbdb49 */ \
73  0xe8717123, \
74  0x1bb2, \
75  0x4ca5, \
76  {0xa4, 0x42, 0x7e, 0x84, 0x24, 0xfb, 0xdb, 0x49} \
77 }
78 %}
[UNIMPLEMENTED UNTIL AFTER 0.3]
var uuid
function C(H)
void initialize(in sbIDeviceCapabilities aDeviceCapabilities, in sbIMediaFormat aMediaFormat, in unsigned long aContentType)
Initializes the device capabilities, media format and media content type of the form sbIDeviceCapabil...
This service determines if a media file is compatible with a particular device.
boolean compare()
Compare the media file format with device capabilities to determine whether they are compatible...