sbDeviceXMLCapabilities.cpp File Reference
#include "sbDeviceXMLCapabilities.h"
#include <sbIDeviceCapabilities.h>
#include <sbIDeviceProperties.h>
#include <sbMemoryUtils.h>
#include <sbStandardDeviceProperties.h>
#include <sbStringUtils.h>
#include <sbVariantUtils.h>
#include <sbVariantUtilsLib.h>
#include <nsComponentManagerUtils.h>
#include <nsIFile.h>
#include <nsIDOMDocument.h>
#include <nsIDOMElement.h>
#include <nsIDOMNamedNodeMap.h>
#include <nsIDOMNode.h>
#include <nsIDOMNodeList.h>
#include <nsIMutableArray.h>
#include <nsIScriptSecurityManager.h>
#include <nsIPropertyBag2.h>
#include <nsIXMLHttpRequest.h>
#include <nsMemory.h>
#include <nsServiceManagerUtils.h>
#include <nsTArray.h>
#include <nsThreadUtils.h>
Include dependency graph for sbDeviceXMLCapabilities.cpp:

Go to the source code of this file.

Classes

class  sbDOMNodeAttributes
 

Macros

#define SB_DEVICE_CAPS_ELEMENT   "devicecaps"
 
#define SB_DEVICE_CAPS_NS   "http://songbirdnest.com/devicecaps/1.0"
 

Typedefs

typedef
sbAutoFreeXPCOMArrayByRef
< char ** > 
sbAutoStringArray
 

Functions

static nsresult GetNodeValue (nsIDOMNode *aValueNode, nsAString &aValue)
 
static nsresult BuildRange (nsIDOMNode *aRangeNode, sbIDevCapRange **aRange)
 
static nsresult GetStringFractionValues (const nsAString &aString, PRUint32 *aOutNumerator, PRUint32 *aOutDenominator)
 
static nsresult GetFractionRangeValues (nsIDOMNode *aDOMNode, nsIArray **aOutCapRangeArray, PRBool *aOutIsRange)
 

Macro Definition Documentation

#define SB_DEVICE_CAPS_ELEMENT   "devicecaps"

Definition at line 54 of file sbDeviceXMLCapabilities.cpp.

#define SB_DEVICE_CAPS_NS   "http://songbirdnest.com/devicecaps/1.0"

Definition at line 55 of file sbDeviceXMLCapabilities.cpp.

Typedef Documentation

Definition at line 982 of file sbDeviceXMLCapabilities.cpp.

Function Documentation

static nsresult BuildRange ( nsIDOMNode *  aRangeNode,
sbIDevCapRange **  aRange 
)
static

Builds a range object from a range node

Parameters
aRangeNodeThe range node to use to build the range object
aRangeThe returned range

Definition at line 457 of file sbDeviceXMLCapabilities.cpp.

Here is the call graph for this function:

static nsresult GetFractionRangeValues ( nsIDOMNode *  aDOMNode,
nsIArray **  aOutCapRangeArray,
PRBool *  aOutIsRange 
)
static

This method will retrieve a set of values or a min/max value depending on which value type is specified. If the value is a range (i.e. has a min/max value) |aOutIsRange| will be true and the first and second element in |aOutCapRangeArray| will be the min and max values respectively.

Definition at line 564 of file sbDeviceXMLCapabilities.cpp.

Here is the call graph for this function:

static nsresult GetNodeValue ( nsIDOMNode *  aValueNode,
nsAString &  aValue 
)
static

Gets the content value of the node

Parameters
aValueNodeThe DOM node to get the value
aValueReceives the value from the node

Definition at line 429 of file sbDeviceXMLCapabilities.cpp.

Here is the caller graph for this function:

static nsresult GetStringFractionValues ( const nsAString &  aString,
PRUint32 *  aOutNumerator,
PRUint32 *  aOutDenominator 
)
static

This method attempts to split a fraction string in the form of "numerator/denominator" into two out-param unsigned integers.

Definition at line 530 of file sbDeviceXMLCapabilities.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: