sbDeviceCapabilities Class Reference

#include <sbDeviceCapabilities.h>

Inheritance diagram for sbDeviceCapabilities:
[legend]
Collaboration diagram for sbDeviceCapabilities:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIDEVICECAPABILITIES
NS_DECL_NSICLASSINFO 
sbDeviceCapabilities ()
 
- Public Member Functions inherited from sbIDeviceCapabilities
void init ()
 Initialize the device capabilities, sets up to be able to accept the set and add functions below. More...
 
void setFunctionTypes ([array, size_is(aFunctionTypesCount)] in PRUint32 aFunctionTypes, in unsigned long aFunctionTypesCount)
 Sets an array of function types. More...
 
void setEventTypes ([array, size_is(aEventTypesCount)] in unsigned long aEventTypes, in unsigned long aEventTypesCount)
 Sets an array of event types. More...
 
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. More...
 
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. More...
 
void AddFormatType (in PRUint32 aContentType, in AString aMimeType, in nsISupports aFormatType)
 Add a constraint to a mime type. More...
 
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. More...
 
void addCapabilities (in sbIDeviceCapabilities aCapabilities)
 Add the capabilities specified by aCapabilities. More...
 
void configureDone ()
 Indicates that the configuration is complete, the add and set functions above will no longer affect the data. More...
 
void getSupportedFunctionTypes (out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out PRUint32 aFunctionTypes)
 
void getSupportedContentTypes (in PRUint32 aFunctionType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out PRUint32 aContentTypes)
 
void getSupportedMimeTypes (in PRUint32 aContentType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out string aSupportedMimeTypes)
 
void getFormatTypes (in PRUint32 aContentType, in AString aMimeType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out nsISupports aSupportedFormats)
 
void getPreferredFormatTypes (in PRUint32 aContentType, in AString aMimeType, out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out nsISupports aPreferredFormats)
 
void getSupportedEvents (out unsigned long aArrayCount, [retval, array, size_is(aArrayCount)] out unsigned long aSupportedEvents)
 
boolean supportsContent (in PRUint32 aFunctionType, in PRUint32 aContentType)
 
nsIStringEnumerator getSupportedFileExtensions (in sbIDevice aDevice, in PRUint32 aContentType)
 

Protected Types

typedef nsClassHashtable
< nsUint32HashKey, nsTArray
< PRUint32 > > 
ContentTypes
 
typedef nsClassHashtable
< nsUint32HashKey, nsTArray
< nsCString > > 
SupportedMimeTypes
 
typedef nsClassHashtable
< nsStringHashKey, nsTArray
< nsCOMPtr< nsISupports > > > 
FormatTypes
 

Protected Attributes

PRBool isInitialized
 
PRBool isConfigured
 
nsTArray< PRUint32 > mFunctionTypes
 
ContentTypes mContentTypes
 
SupportedMimeTypes mSupportedMimeTypes
 
nsVoidArray mContentFormatTypes
 
nsVoidArray mContentPreferredFormatTypes
 
nsTArray< PRUint32 > mSupportedEvents
 

Additional Inherited Members

- Public Attributes inherited from sbIDeviceCapabilities
const PRUint32 FUNCTION_UNKNOWN = 0x00
 
const PRUint32 FUNCTION_DEVICE = 0x01
 
const PRUint32 FUNCTION_AUDIO_PLAYBACK = 0x02
 
const PRUint32 FUNCTION_AUDIO_CAPTURE = 0x03
 
const PRUint32 FUNCTION_IMAGE_DISPLAY = 0x04
 
const PRUint32 FUNCTION_IMAGE_CAPTURE = 0x05
 
const PRUint32 FUNCTION_VIDEO_PLAYBACK = 0x06
 
const PRUint32 FUNCTION_VIDEO_CAPTURE = 0x07
 
const PRUint32 FUNCTION_CLIENT_DEFINED = 0x80000000
 
const PRUint32 CONTENT_UNKNOWN = 0x00
 
const PRUint32 CONTENT_FILE = 0x01
 
const PRUint32 CONTENT_FOLDER = 0x02
 
const PRUint32 CONTENT_AUDIO = 0x03
 
const PRUint32 CONTENT_IMAGE = 0x04
 
const PRUint32 CONTENT_VIDEO = 0x05
 
const PRUint32 CONTENT_PLAYLIST = 0x06
 
const PRUint32 CONTENT_ALBUM = 0x07
 
const PRUint32 CONTENT_MAX_TYPES = 0x08
 
const PRUint32 CONTENT_CLIENT_DEFINED = 0x80000000
 

Detailed Description

Definition at line 44 of file sbDeviceCapabilities.h.

Member Typedef Documentation

typedef nsClassHashtable<nsUint32HashKey, nsTArray<PRUint32> > sbDeviceCapabilities::ContentTypes
protected

Definition at line 59 of file sbDeviceCapabilities.h.

typedef nsClassHashtable<nsStringHashKey, nsTArray<nsCOMPtr<nsISupports> > > sbDeviceCapabilities::FormatTypes
protected

Definition at line 61 of file sbDeviceCapabilities.h.

typedef nsClassHashtable<nsUint32HashKey, nsTArray<nsCString> > sbDeviceCapabilities::SupportedMimeTypes
protected

Definition at line 60 of file sbDeviceCapabilities.h.

Constructor & Destructor Documentation

sbDeviceCapabilities::sbDeviceCapabilities ( )

Definition at line 68 of file sbDeviceCapabilities.cpp.

Member Data Documentation

PRBool sbDeviceCapabilities::isConfigured
protected

Definition at line 58 of file sbDeviceCapabilities.h.

PRBool sbDeviceCapabilities::isInitialized
protected

Definition at line 57 of file sbDeviceCapabilities.h.

nsVoidArray sbDeviceCapabilities::mContentFormatTypes
protected

Definition at line 65 of file sbDeviceCapabilities.h.

nsVoidArray sbDeviceCapabilities::mContentPreferredFormatTypes
protected

Definition at line 66 of file sbDeviceCapabilities.h.

ContentTypes sbDeviceCapabilities::mContentTypes
protected

Definition at line 63 of file sbDeviceCapabilities.h.

nsTArray<PRUint32> sbDeviceCapabilities::mFunctionTypes
protected

Definition at line 62 of file sbDeviceCapabilities.h.

nsTArray<PRUint32> sbDeviceCapabilities::mSupportedEvents
protected

Definition at line 67 of file sbDeviceCapabilities.h.

SupportedMimeTypes sbDeviceCapabilities::mSupportedMimeTypes
protected

Definition at line 64 of file sbDeviceCapabilities.h.


The documentation for this class was generated from the following files: