sbIDeviceCapabilities.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-2010 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 
25 #include "nsISupports.idl"
26 
27 interface nsIArray;
28 interface sbIDevice;
29 interface nsIVariant;
30 interface nsIStringEnumerator;
31 
37 [scriptable, uuid(3d8c5686-26b7-47a9-a18d-2254b77a6c9a)]
39 {
40  void Initialize(in long width, in long height);
41 
42  /* \brief The supported width */
43  readonly attribute long width;
44 
45  /* \brief The supported height */
46  readonly attribute long height;
47 };
48 
49 %{C++
50 #define SB_IMAGESIZE_DESCRIPTION \
51  "Songbird Device Capabilities Image Size Component"
52 #define SB_IMAGESIZE_CONTRACTID \
53  "@songbirdnest.com/Songbird/Device/sbimagesize;1"
54 #define SB_IMAGESIZE_CLASSNAME \
55  "Songbird Device Capabilities Image Size"
56 #define SB_IMAGESIZE_CID \
57 { 0xf2915d0, 0xf43, 0x46fd, { 0x90, 0xbd, 0x84, 0x22, 0x48, 0x43, 0xb, 0xf } }
58 %}
59 
65 [scriptable, uuid(8A62D336-9489-46f3-BB16-AED90DA7F775)]
67 {
68  void Initialize(in long aMin,
69  in long aMax,
70  in long aStep);
80  long GetValue(in unsigned long aIndex);
81 
86  void AddValue(in long aValue);
90  readonly attribute unsigned long valueCount;
91 
92  /* \brief The minimum supported value */
93  readonly attribute long min;
94 
95  /* \brief The maximum supported value */
96  readonly attribute long max;
97 
98  /* \brief If non-zero, the range is not continuous, but instead only
99  increments of 'step' are permitted */
100  readonly attribute long step;
101 
102  /* \brief Determine whether the value is in range. The range could be
103  * discrete values, or value array.
104  * \returns true if the value is in range.
105  */
106  boolean IsValueInRange(in long aValue);
107 };
108 
109 %{C++
110 #define SB_IDEVCAPRANGE_DESCRIPTION \
111  "Songbird Device Capabilities Range Component"
112 #define SB_IDEVCAPRANGE_CONTRACTID \
113  "@songbirdnest.com/Songbird/Device/sbrange;1"
114 #define SB_IDEVCAPRANGE_CLASSNAME \
115  "Songbird Device Capabilities Range"
116 #define SB_IDEVCAPRANGE_CID \
117 { 0x491604ba, 0x51e1, 0x45e4, { 0x9d, 0x11, 0xce, 0x1e, 0xc6, 0x3d, 0xe, 0xae } }
118 %}
119 
124 [scriptable, uuid(0168409c-1dd2-11b2-a064-b25ec073dc48)]
126 {
127  readonly attribute unsigned long numerator;
128  readonly attribute unsigned long denominator;
129 
130  void initialize(in unsigned long aNumerator,
131  in unsigned long aDenominator);
132 };
133 
134 %{C++
135 #define SB_IDEVCAPFRACTION_DESCRIPTION \
136  "Songbird Device Capabilities Fraction Component"
137 #define SB_IDEVCAPFRACTION_CONTRACTID \
138  "@songbirdnest.com/Songbird/Device/sbfraction;1"
139 #define SB_IDEVCAPFRACTION_CLASSNAME \
140  "Songbird Device Capabilities Fraction"
141 #define SB_IDEVCAPFRACTION_CID \
142 {0xb8b158a2, 0x1dd1, 0x11b2, {0x9f, 0x1d, 0xb9, 0x56, 0x08, 0x79, 0x0a, 0xb8}}
143 %}
144 
152 [scriptable, uuid(eb46c4ab-1842-4e0b-ba69-e60b3dd9c792)]
154 {
155  void Initialize(in AString aConstraintName,
156  in nsIVariant aMinValue,
157  in nsIVariant aMaxValue);
158 
159  readonly attribute AString constraintName;
160 
161  readonly attribute nsIVariant constraintMinValue;
162 
163  readonly attribute nsIVariant constraintMaxValue;
164 };
165 
166 %{C++
167 #define SB_IFORMATTYPECONSTRAINT_DESCRIPTION \
168  "Songbird Device Capabilities Format Type Constraint Component"
169 #define SB_IFORMATTYPECONSTRAINT_CONTRACTID \
170  "@songbirdnest.com/Songbird/Device/sbformattypeconstraint;1"
171 #define SB_IFORMATTYPECONSTRAINT_CLASSNAME \
172  "Songbird Device Capabilities Format Type Constraint"
173 #define SB_IFORMATTYPECONSTRAINT_CID \
174 { 0x5d73ba28, 0xf460, 0x48bd, { 0x92, 0x3b, 0x68, 0xd4, 0xa8, 0x8e, 0x92, 0xda } }
175 %}
176 
182 [scriptable, uuid(3dac965e-be7b-4792-ba4d-2af3f683caad)]
184 {
185  void Initialize(in ACString aImageFormat,
186  in nsIArray aSupportedExplicitSizes,
187  in sbIDevCapRange aSupportedWidths,
188  in sbIDevCapRange aSupportedHeights);
194  readonly attribute ACString imageFormat;
195 
196  /* Array of supported sizes. Each item in the array is an sbIImageSize giving
197  an explicit width and height.
198 
199  The array MUST NOT be empty; if arbitrary dimensions are supported then
200  this array should contain a single 'recommended' size
201  */
202  readonly attribute nsIArray supportedExplicitSizes;
203 
204  /* Range of supported widths.
205 
206  May be null, in which case only the explicit sizes are permitted.
207  */
208  readonly attribute sbIDevCapRange supportedWidths;
209 
210  /* Range of supported heights.
211 
212  May be null, in which case only the explicit sizes are permitted.
213  */
214  readonly attribute sbIDevCapRange supportedHeights;
215 };
216 
217 %{C++
218 #define SB_IIMAGEFORMATTYPE_DESCRIPTION \
219  "Songbird Device Capabilities Image Format Type Component"
220 #define SB_IIMAGEFORMATTYPE_CONTRACTID \
221  "@songbirdnest.com/Songbird/Device/sbimageformattype;1"
222 #define SB_IIMAGEFORMATTYPE_CLASSNAME \
223  "Songbird Device Capabilities Image Format Type"
224 #define SB_IIMAGEFORMATTYPE_CID \
225 { 0x496881cb, 0xed03, 0x435f, { 0x9d, 0xa5, 0xdf, 0x99, 0x63, 0x6f, 0x9e, 0xe3 } }
226 %}
227 
233 [scriptable, uuid(5ec50372-7137-4671-8e75-e8f8dc237dd7)]
235 {
236  void Initialize(in ACString aFormat,
237  in ACString aCodec,
238  in sbIDevCapRange aBitRates,
239  in sbIDevCapRange aSampleRates,
240  in sbIDevCapRange aChannels,
241  in nsIArray aFormatSpecificConstraints);
242  /* Mime type of the container format.
243  *
244  * May be empty if there is no container format (e.g. a raw FLAC bitstream)
245  */
246  readonly attribute ACString containerFormat;
247 
248  /* Mime type of the audio codec in use.
249  */
250  readonly attribute ACString audioCodec;
251 
252  /* The supported bitrates.
253  */
254  readonly attribute sbIDevCapRange supportedBitrates;
255 
256  /* The supported sample rates.
257  */
259 
260  /* The supported numbers of channels
261  */
262  readonly attribute sbIDevCapRange supportedChannels;
263 
264  /* An array of sbIFormatTypeConstraint specific to this content type.
265  *
266  * For example, if audioCodec is audio/aac, this might have a constraint
267  * profile=LC
268  * to indicate that only the low complexity profile is supported (as is the
269  * case for ipods, for example).
270  */
271  readonly attribute nsIArray formatSpecificConstraints;
272 };
273 
274 %{C++
275 #define SB_IAUDIOFORMATTYPE_DESCRIPTION \
276  "Songbird Device Capabilities Audio Format Type Component"
277 #define SB_IAUDIOFORMATTYPE_CONTRACTID \
278  "@songbirdnest.com/Songbird/Device/sbaudioformattype;1"
279 #define SB_IAUDIOFORMATTYPE_CLASSNAME \
280  "Songbird Device Capabilities Audio Format Type"
281 #define SB_IAUDIOFORMATTYPE_CID \
282 { 0xfbfadb32, 0xb95b, 0x49cb, { 0xb5, 0xf0, 0x8, 0xf9, 0xa8, 0x70, 0x57, 0xe5 } }
283 %}
284 
289 [scriptable, uuid(7062120d-eb8b-469c-9606-bbe86502735c)]
291 {
300  void initialize(in ACString aType,
301  in nsIArray aExplicitSizes,
302  in sbIDevCapRange aWidths,
303  in sbIDevCapRange aHeights,
304  in nsIArray aSupportedPARs,
305  in boolean aSupportedPARsIsRange,
306  in nsIArray aSupportedFrameRates,
307  in boolean aSupportedFrameRatesIsRange,
308  in sbIDevCapRange aBitRates);
309 
313  readonly attribute ACString type;
314 
322  readonly attribute nsIArray supportedExplicitSizes;
323 
329  readonly attribute sbIDevCapRange supportedWidths;
330 
336  readonly attribute sbIDevCapRange supportedHeights;
337 
346  readonly attribute boolean doesSupportPARRange;
347 
353  readonly attribute nsIArray supportedPARs;
354 
361 
371  readonly attribute boolean doesSupportFrameRateRange;
372 
378  readonly attribute nsIArray supportedFrameRates;
379 
387 
391  readonly attribute sbIDevCapRange supportedBitRates;
392 };
393 
394 %{C++
395 #define SB_IDEVCAPVIDEOSTREAM_DESCRIPTION \
396  "Songbird Device Capabilities Video Stream Component"
397 #define SB_IDEVCAPVIDEOSTREAM_CONTRACTID \
398  "@songbirdnest.com/Songbird/Device/sbdevcapvideostream;1"
399 #define SB_IDEVCAPVIDEOSTREAM_CLASSNAME \
400  "Songbird Device Capabilities Video Stream"
401 #define SB_IDEVCAPVIDEOSTREAM_CID \
402  {0x1eb66418, 0x11bd, 0x493c, {0x93, 0x29, 0x29, 0x0d, 0x0e, 0x4f, 0xb7, 0x8a}}
403 %}
404 
405 [scriptable, uuid(5651ca06-284a-457f-8dd8-9e60da4471f0)]
407 {
416  void initialize(in ACString aType,
417  in sbIDevCapRange aBitRates,
418  in sbIDevCapRange aSampleRates,
419  in sbIDevCapRange aChannels);
423  readonly attribute ACString type;
424 
428  readonly attribute sbIDevCapRange supportedBitRates;
429 
434 
438  readonly attribute sbIDevCapRange supportedChannels;
439 };
440 
441 %{C++
442 #define SB_IDEVCAPAUDIOSTREAM_DESCRIPTION \
443  "Songbird Device Capabilities Audio Stream Component"
444 #define SB_IDEVCAPAUDIOSTREAM_CONTRACTID \
445  "@songbirdnest.com/Songbird/Device/sbdevcapaudiostream;1"
446 #define SB_IDEVCAPAUDIOSTREAM_CLASSNAME \
447  "Songbird Device Capabilities Audio Stream"
448 #define SB_IDEVCAPAUDIOSTREAM_CID \
449  {0xa8e9d2f7, 0x6640, 0x41a1, {0x9b, 0xd7, 0xb6, 0xce, 0xf2, 0x84, 0xb9, 0x47}}
450 %}
451 
456 [scriptable, uuid(39fe77d1-f46d-4ca8-acff-435ccec8af1b)]
458 {
462  void initialize(in ACString aContainerType,
463  in sbIDevCapVideoStream aVideoStream,
464  in sbIDevCapAudioStream aAudioStream);
468  readonly attribute ACString containerType;
469 
473  readonly attribute sbIDevCapVideoStream videoStream;
474 
478  readonly attribute sbIDevCapAudioStream audioStream;
479 };
480 
481 %{C++
482 #define SB_IVIDEOORMATTYPE_DESCRIPTION \
483  "Songbird Device Capabilities Video Format Type Component"
484 #define SB_IVIDEOFORMATTYPE_CONTRACTID \
485  "@songbirdnest.com/Songbird/Device/sbvideoformattype;1"
486 #define SB_IVIDEOFORMATTYPE_CLASSNAME \
487  "Songbird Device Capabilities Video Format Type"
488 #define SB_IVIDEOFORMATTYPE_CID \
489  {0x87cced11, 0x258e, 0x4131, {0xae, 0x51, 0xa5, 0x2a, 0xf7, 0x6d, 0xaa, 0xbc}}
490 %}
491 
496 [scriptable, uuid(1042b7ea-eb3f-4b82-b730-b0a3d0b8e2ec)]
498 {
502  void initialize(in ACString aPathSeparator);
503 
507  readonly attribute ACString pathSeparator;
508 };
509 
510 %{C++
511 #define SB_IPLAYLISTFORMATTYPE_DESCRIPTION \
512  "Songbird Device Capabilities Playlist Format Type Component"
513 #define SB_IPLAYLISTFORMATTYPE_CONTRACTID \
514  "@songbirdnest.com/Songbird/Device/sbplaylistformattype;1"
515 #define SB_IPLAYLISTFORMATTYPE_CLASSNAME \
516  "Songbird Device Capabilities Playlist Format Type"
517 #define SB_IPLAYLISTFORMATTYPE_CID \
518  {0xdc2b0702, 0xb8d7, 0x4ef5, {0x83, 0xb6, 0x64, 0x85, 0xe5, 0xef, 0xd5, 0xf1}}
519 %}
520 
526 [scriptable, uuid(7ce2a138-d1b4-4980-9c36-04c0389c6ce2)]
528 {
533  void init();
534 
540  void setFunctionTypes([array, size_is(aFunctionTypesCount)]
541  in PRUint32 aFunctionTypes,
542  in unsigned long aFunctionTypesCount);
543 
549  void setEventTypes([array, size_is(aEventTypesCount)]
550  in unsigned long aEventTypes,
551  in unsigned long aEventTypesCount);
552 
559  void addContentTypes(in PRUint32 aFunctionType,
560  [array, size_is(aContentTypesCount)]
561  in unsigned long aContentTypes,
562  in unsigned long aContentTypesCount);
563 
570  void addMimeTypes(in PRUint32 aContentType,
571  [array, size_is(aMimeTypesCount)] in string aMimeTypes,
572  in unsigned long aMimeTypesCount);
573 
583  void AddFormatType(in PRUint32 aContentType,
584  in AString aMimeType,
585  in nsISupports aFormatType);
586 
597  void AddPreferredFormatType(in PRUint32 aContentType,
598  in AString aMimeType,
599  in nsISupports aFormatType);
600 
605  void addCapabilities(in sbIDeviceCapabilities aCapabilities);
606 
611  void configureDone();
612 
616  const PRUint32 FUNCTION_UNKNOWN = 0x00;
617  const PRUint32 FUNCTION_DEVICE = 0x01;
618  const PRUint32 FUNCTION_AUDIO_PLAYBACK = 0x02;
619  const PRUint32 FUNCTION_AUDIO_CAPTURE = 0x03;
620  const PRUint32 FUNCTION_IMAGE_DISPLAY = 0x04;
621  const PRUint32 FUNCTION_IMAGE_CAPTURE = 0x05;
622  const PRUint32 FUNCTION_VIDEO_PLAYBACK = 0x06;
623  const PRUint32 FUNCTION_VIDEO_CAPTURE = 0x07;
624 
628  const PRUint32 FUNCTION_CLIENT_DEFINED = 0x80000000;
629 
633  //
634  void getSupportedFunctionTypes(out unsigned long aArrayCount,
635  [retval, array, size_is(aArrayCount)]
636  out PRUint32 aFunctionTypes);
637 
641  const PRUint32 CONTENT_UNKNOWN = 0x00;
642  const PRUint32 CONTENT_FILE = 0x01;
643  const PRUint32 CONTENT_FOLDER = 0x02;
644  const PRUint32 CONTENT_AUDIO = 0x03;
645  const PRUint32 CONTENT_IMAGE = 0x04;
646  const PRUint32 CONTENT_VIDEO = 0x05;
647  const PRUint32 CONTENT_PLAYLIST = 0x06;
648  const PRUint32 CONTENT_ALBUM = 0x07;
649  const PRUint32 CONTENT_MAX_TYPES= 0x08; // Must be last
650 
654  const PRUint32 CONTENT_CLIENT_DEFINED = 0x80000000;
655 
659  void getSupportedContentTypes(in PRUint32 aFunctionType,
660  out unsigned long aArrayCount,
661  [retval, array, size_is(aArrayCount)]
662  out PRUint32 aContentTypes);
663 
667  void getSupportedMimeTypes(in PRUint32 aContentType,
668  out unsigned long aArrayCount,
669  [retval, array, size_is(aArrayCount)]
670  out string aSupportedMimeTypes);
671 
677  void getFormatTypes(in PRUint32 aContentType,
678  in AString aMimeType,
679  out unsigned long aArrayCount,
680  [retval, array, size_is(aArrayCount)]
681  out nsISupports aSupportedFormats);
682 
694  void getPreferredFormatTypes(in PRUint32 aContentType,
695  in AString aMimeType,
696  out unsigned long aArrayCount,
697  [retval, array, size_is(aArrayCount)]
698  out nsISupports aPreferredFormats);
699 
704  void getSupportedEvents(out unsigned long aArrayCount,
705  [retval, array, size_is(aArrayCount)]
706  out unsigned long aSupportedEvents);
707 
714  boolean supportsContent(in PRUint32 aFunctionType, in PRUint32 aContentType);
715 
725  in PRUint32 aContentType);
726 };
727 
728 %{C++
729 #define SONGBIRD_DEVICECAPABILITIES_DESCRIPTION \
730  "Songbird Device Capabilities Component"
731 #define SONGBIRD_DEVICECAPABILITIES_CONTRACTID \
732  "@songbirdnest.com/Songbird/Device/DeviceCapabilities;1"
733 #define SONGBIRD_DEVICECAPABILITIES_CLASSNAME \
734  "Songbird Device Capabilities"
735 #define SONGBIRD_DEVICECAPABILITIES_CID \
736 { /* 54d42a87-9031-4928-991e-e66f4916a90b */ \
737  0x54d42a87, \
738  0x9031, \
739  0x4928, \
740  {0x99, 0x1e, 0xe6, 0x6f, 0x49, 0x16, 0xa9, 0x0b} \
741 }
742 %}
743 
749 [scriptable, uuid(9e1f9988-1dd1-11b2-a7fc-80bbd1fa9089)]
751 {
756  in PRUint32 aContentType);
757 };
758 
759 %{C++
760 #define SONGBIRD_DEVICECAPABILITIESUTILS_DESCRIPTION \
761  "Songbird Device Capabilities Utils Component"
762 #define SONGBIRD_DEVICECAPABILITIESUTILS_CONTRACTID \
763  "@songbirdnest.com/Songbird/Device/DeviceCapabilitiesUtils;1"
764 #define SONGBIRD_DEVICECAPABILITIESUTILS_CLASSNAME \
765  "Songbird Device Capabilities Utils"
766 #define SONGBIRD_DEVICECAPABILITIESUTILS_CID \
767 { /* 9e1f9988-1dd1-11b2-a7fc-80bbd1fa9089 */ \
768  0xc20c7dfa, \
769  0x1dd1, \
770  0x11b2, \
771  {0xa4, 0xa6, 0xb9, 0x8b, 0xb9, 0xa0, 0xaa, 0x47} \
772 }
773 %}
readonly attribute sbIDevCapRange supportedWidths
const PRUint32 FUNCTION_CLIENT_DEFINED
const PRUint32 FUNCTION_AUDIO_PLAYBACK
nsIStringEnumerator mapContentTypeToFileExtensions(in AString aMimeType, in PRUint32 aContentType)
void Initialize(in ACString aFormat, in ACString aCodec, in sbIDevCapRange aBitRates, in sbIDevCapRange aSampleRates, in sbIDevCapRange aChannels, in nsIArray aFormatSpecificConstraints)
readonly attribute unsigned long denominator
void getSupportedFunctionTypes(out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out PRUint32 aFunctionTypes)
const PRUint32 FUNCTION_VIDEO_PLAYBACK
readonly attribute nsIArray supportedPARs
[UNIMPLEMENTED UNTIL AFTER 0.3]
nsIStringEnumerator getSupportedFileExtensions(in sbIDevice aDevice, in PRUint32 aContentType)
readonly attribute sbIDevCapFraction maximumSupportedPAR
readonly attribute sbIDevCapRange supportedBitRates
void initialize(in ACString aType, in sbIDevCapRange aBitRates, in sbIDevCapRange aSampleRates, in sbIDevCapRange aChannels)
void Initialize(in long aMin, in long aMax, in long aStep)
onPageChanged aValue
Definition: FeedWriter.js:1395
readonly attribute sbIDevCapRange supportedChannels
readonly attribute sbIDevCapRange supportedSampleRates
readonly attribute sbIDevCapVideoStream videoStream
inArray array
readonly attribute sbIDevCapFraction maximumSupportedFrameRate
readonly attribute ACString pathSeparator
readonly attribute sbIDevCapRange supportedSampleRates
readonly attribute long max
readonly attribute sbIDevCapRange supportedBitRates
void initialize(in ACString aPathSeparator)
void addCapabilities(in sbIDeviceCapabilities aCapabilities)
Add the capabilities specified by aCapabilities.
void Initialize(in AString aConstraintName, in nsIVariant aMinValue, in nsIVariant aMaxValue)
readonly attribute long height
readonly attribute AString constraintName
void initialize(in ACString aContainerType, in sbIDevCapVideoStream aVideoStream, in sbIDevCapAudioStream aAudioStream)
readonly attribute ACString type
readonly attribute long width
void AddPreferredFormatType(in PRUint32 aContentType, in AString aMimeType, in nsISupports aFormatType)
Add a preferred constraint to a mime type (these are used for target formats when transcoding...
var uuid
readonly attribute nsIVariant constraintMinValue
void Initialize(in long width, in long height)
void AddFormatType(in PRUint32 aContentType, in AString aMimeType, in nsISupports aFormatType)
Add a constraint to a mime type.
readonly attribute ACString containerFormat
function C(H)
readonly attribute long step
function d(s)
readonly attribute sbIDevCapRange supportedChannels
void getSupportedContentTypes(in PRUint32 aFunctionType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out PRUint32 aContentTypes)
readonly attribute sbIDevCapRange supportedHeights
readonly attribute ACString type
readonly attribute boolean doesSupportPARRange
void addMimeTypes(in PRUint32 aContentType, [array, size_is(aMimeTypesCount)] in string aMimeTypes, in unsigned long aMimeTypesCount)
Add an array of mime types for a content type.
readonly attribute unsigned long numerator
readonly attribute sbIDevCapFraction minimumSupportedPAR
void getPreferredFormatTypes(in PRUint32 aContentType, in AString aMimeType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out nsISupports aPreferredFormats)
readonly attribute ACString containerType
void Initialize(in ACString aImageFormat, in nsIArray aSupportedExplicitSizes, in sbIDevCapRange aSupportedWidths, in sbIDevCapRange aSupportedHeights)
void initialize(in ACString aType, in nsIArray aExplicitSizes, in sbIDevCapRange aWidths, in sbIDevCapRange aHeights, in nsIArray aSupportedPARs, in boolean aSupportedPARsIsRange, in nsIArray aSupportedFrameRates, in boolean aSupportedFrameRatesIsRange, in sbIDevCapRange aBitRates)
readonly attribute ACString audioCodec
void getSupportedEvents(out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out unsigned long aSupportedEvents)
void getFormatTypes(in PRUint32 aContentType, in AString aMimeType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out nsISupports aSupportedFormats)
void getSupportedMimeTypes(in PRUint32 aContentType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out string aSupportedMimeTypes)
boolean supportsContent(in PRUint32 aFunctionType, in PRUint32 aContentType)
void init()
Initialize the device capabilities, sets up to be able to accept the set and add functions below...
void addContentTypes(in PRUint32 aFunctionType, [array, size_is(aContentTypesCount)] in unsigned long aContentTypes, in unsigned long aContentTypesCount)
Add an array of content types for a function type.
readonly attribute nsIArray supportedExplicitSizes
boolean IsValueInRange(in long aValue)
readonly attribute nsIArray formatSpecificConstraints
void AddValue(in long aValue)
void setFunctionTypes([array, size_is(aFunctionTypesCount)] in PRUint32 aFunctionTypes, in unsigned long aFunctionTypesCount)
Sets an array of function types.
void initialize(in unsigned long aNumerator, in unsigned long aDenominator)
long GetValue(in unsigned long aIndex)
readonly attribute sbIDevCapRange supportedHeights
readonly attribute unsigned long valueCount
readonly attribute sbIDevCapRange supportedWidths
readonly attribute ACString imageFormat
readonly attribute sbIDevCapAudioStream audioStream
readonly attribute sbIDevCapFraction minimumSupportedFrameRate
readonly attribute nsIVariant constraintMaxValue
readonly attribute long min
Temporary interface to allow us to access the mime-type -> file extension mappings in sbDeviceUtils...
readonly attribute nsIArray supportedFrameRates
readonly attribute boolean doesSupportFrameRateRange
void setEventTypes([array, size_is(aEventTypesCount)] in unsigned long aEventTypes, in unsigned long aEventTypesCount)
Sets an array of event types.
void configureDone()
Indicates that the configuration is complete, the add and set functions above will no longer affect t...
readonly attribute nsIArray supportedExplicitSizes
Interface for storing a fractional value.
readonly attribute sbIDevCapRange supportedBitrates