25 #include "nsISupports.idl"
37 [scriptable,
uuid(3d8c5686-26b7-47a9-a18d-2254b77a6c9a)]
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 } }
65 [scriptable,
uuid(8A62D336-9489-46f3-BB16-AED90DA7F775)]
80 long GetValue(in
unsigned long aIndex);
93 readonly attribute
long min;
96 readonly attribute
long max;
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 } }
124 [scriptable,
uuid(0168409c-1dd2-11b2-a064-b25ec073dc48)]
131 in
unsigned long aDenominator);
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}}
152 [scriptable,
uuid(eb46c4ab-1842-4e0b-ba69-e60b3dd9c792)]
156 in nsIVariant aMinValue,
157 in nsIVariant aMaxValue);
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 } }
182 [scriptable,
uuid(3dac965e-be7b-4792-ba4d-2af3f683caad)]
186 in nsIArray aSupportedExplicitSizes,
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 } }
233 [scriptable,
uuid(5ec50372-7137-4671-8e75-e8f8dc237dd7)]
241 in nsIArray aFormatSpecificConstraints);
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 } }
289 [scriptable,
uuid(7062120
d-eb8b-469c-9606-bbe86502735c)]
301 in nsIArray aExplicitSizes,
304 in nsIArray aSupportedPARs,
305 in
boolean aSupportedPARsIsRange,
306 in nsIArray aSupportedFrameRates,
307 in
boolean aSupportedFrameRatesIsRange,
313 readonly attribute ACString
type;
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}}
405 [scriptable,
uuid(5651ca06-284a-457f-8dd8-9e60da4471f0)]
423 readonly attribute ACString
type;
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}}
456 [scriptable,
uuid(39fe77d1-f46d-4ca8-acff-435ccec8af1b)]
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}}
496 [scriptable,
uuid(1042b7ea-eb3f-4b82-b730-b0a3d0b8e2ec)]
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}}
526 [scriptable,
uuid(7ce2a138-d1b4-4980-9c36-04c0389c6ce2)]
541 in PRUint32 aFunctionTypes,
542 in
unsigned long aFunctionTypesCount);
550 in
unsigned long aEventTypes,
551 in
unsigned long aEventTypesCount);
560 [
array, size_is(aContentTypesCount)]
561 in
unsigned long aContentTypes,
562 in
unsigned long aContentTypesCount);
571 [
array, size_is(aMimeTypesCount)] in
string aMimeTypes,
572 in
unsigned long aMimeTypesCount);
584 in AString aMimeType,
598 in AString aMimeType,
635 [retval,
array, size_is(aArrayCount)]
636 out PRUint32 aFunctionTypes);
660 out
unsigned long aArrayCount,
661 [retval,
array, size_is(aArrayCount)]
662 out PRUint32 aContentTypes);
668 out
unsigned long aArrayCount,
669 [retval,
array, size_is(aArrayCount)]
670 out
string aSupportedMimeTypes);
678 in AString aMimeType,
679 out
unsigned long aArrayCount,
680 [retval,
array, size_is(aArrayCount)]
695 in AString aMimeType,
696 out
unsigned long aArrayCount,
697 [retval,
array, size_is(aArrayCount)]
705 [retval,
array, size_is(aArrayCount)]
706 out
unsigned long aSupportedEvents);
714 boolean supportsContent(in PRUint32 aFunctionType, in PRUint32 aContentType);
725 in PRUint32 aContentType);
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 \
740 {0x99, 0x1e, 0xe6, 0x6f, 0x49, 0x16, 0xa9, 0x0b} \
749 [scriptable,
uuid(9e1f9988-1dd1-11b2-a7fc-80bbd1fa9089)]
756 in PRUint32 aContentType);
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 \
771 {0xa4, 0xa6, 0xb9, 0x8b, 0xb9, 0xa0, 0xaa, 0x47} \
const PRUint32 FUNCTION_VIDEO_CAPTURE
readonly attribute sbIDevCapRange supportedWidths
const PRUint32 FUNCTION_CLIENT_DEFINED
const PRUint32 FUNCTION_AUDIO_PLAYBACK
nsIStringEnumerator mapContentTypeToFileExtensions(in AString aMimeType, in PRUint32 aContentType)
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)
const PRUint32 CONTENT_IMAGE
readonly attribute sbIDevCapFraction maximumSupportedFrameRate
readonly attribute sbIDevCapRange supportedSampleRates
readonly attribute long max
readonly attribute sbIDevCapRange supportedBitRates
const PRUint32 CONTENT_UNKNOWN
void addCapabilities(in sbIDeviceCapabilities aCapabilities)
Add the capabilities specified by aCapabilities.
readonly attribute long height
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...
void Initialize(in long width, in long height)
const PRUint32 CONTENT_PLAYLIST
void AddFormatType(in PRUint32 aContentType, in AString aMimeType, in nsISupports aFormatType)
Add a constraint to a mime type.
const PRUint32 FUNCTION_AUDIO_CAPTURE
const PRUint32 FUNCTION_DEVICE
readonly attribute long step
const PRUint32 CONTENT_VIDEO
readonly attribute sbIDevCapRange supportedChannels
const PRUint32 CONTENT_FILE
void getSupportedContentTypes(in PRUint32 aFunctionType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out PRUint32 aContentTypes)
readonly attribute ACString type
const PRUint32 CONTENT_FOLDER
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.
const PRUint32 CONTENT_MAX_TYPES
const PRUint32 CONTENT_ALBUM
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)
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)
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)
const PRUint32 FUNCTION_UNKNOWN
boolean supportsContent(in PRUint32 aFunctionType, in PRUint32 aContentType)
const PRUint32 FUNCTION_IMAGE_DISPLAY
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.
const PRUint32 CONTENT_AUDIO
boolean IsValueInRange(in long aValue)
void AddValue(in long aValue)
void setFunctionTypes([array, size_is(aFunctionTypesCount)] in PRUint32 aFunctionTypes, in unsigned long aFunctionTypesCount)
Sets an array of function types.
const PRUint32 FUNCTION_IMAGE_CAPTURE
void initialize(in unsigned long aNumerator, in unsigned long aDenominator)
long GetValue(in unsigned long aIndex)
const PRUint32 CONTENT_CLIENT_DEFINED
readonly attribute sbIDevCapRange supportedHeights
readonly attribute unsigned long valueCount
readonly attribute sbIDevCapFraction minimumSupportedFrameRate
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.