#include <sbDeviceXMLCapabilities.h>
|
static nsresult | GetCapabilities (sbIDeviceCapabilities **aCapabilities, nsIDOMDocument *aDocument, sbIDevice *aDevice=nsnull) |
|
static nsresult | GetCapabilities (sbIDeviceCapabilities **aCapabilities, nsIDOMNode *aDeviceCapsRootNode, sbIDevice *aDevice=nsnull) |
|
static nsresult | AddCapabilities (sbIDeviceCapabilities *aCapabilities, const char *aXMLCapabilitiesSpec, PRBool *aAddedCapabilities=nsnull, sbIDevice *aDevice=nsnull) |
|
static nsresult | AddCapabilities (sbIDeviceCapabilities *aCapabilities, nsIDOMNode *aDeviceCapsRootNode, PRBool *aAddedCapabilities=nsnull, sbIDevice *aDevice=nsnull) |
|
This class reads an DOM document and adds capabilities based on the content of the document
Definition at line 46 of file sbDeviceXMLCapabilities.h.
sbDeviceXMLCapabilities::sbDeviceXMLCapabilities |
( |
nsIDOMElement * |
aRootElement, |
|
|
sbIDevice * |
aDevice = nsnull |
|
) |
| |
sbDeviceXMLCapabilities::~sbDeviceXMLCapabilities |
( |
| ) |
|
nsresult sbDeviceXMLCapabilities::AddCapabilities |
( |
sbIDeviceCapabilities * |
aCapabilities, |
|
|
const char * |
aXMLCapabilitiesSpec, |
|
|
PRBool * |
aAddedCapabilities = nsnull , |
|
|
sbIDevice * |
aDevice = nsnull |
|
) |
| |
|
static |
Read the capabilities matching the device specified by aDevice from the file with the URI spec specified by aXMLCapabilitiesSpec and add them to the device capabilities object specified by aCapabilities. If any capabilities were added, return true in aAddedCapabilities; if no capabilities were added (e.g., device didn't match), return false.
- Parameters
-
aCapabilities | The capabilities object to which to add capabilities. |
aXMLCapabilitiesSpec | URI spec of capabilities file. |
aAddedCapabilities | Returned true if capabilities added. |
aDevice | Device to match against capabilities. |
Definition at line 179 of file sbDeviceXMLCapabilities.cpp.
nsresult sbDeviceXMLCapabilities::AddCapabilities |
( |
sbIDeviceCapabilities * |
aCapabilities, |
|
|
nsIDOMNode * |
aDeviceCapsRootNode, |
|
|
PRBool * |
aAddedCapabilities = nsnull , |
|
|
sbIDevice * |
aDevice = nsnull |
|
) |
| |
|
static |
Read the capabilities matching the device specified by aDevice from the root DOM node specified by aDeviceCapsRootNode and add them to the device capabilities object specified by aCapabilities. If any capabilities were added, return true in aAddedCapabilities; if no capabilities were added (e.g., device didn't match), return false.
- Parameters
-
aCapabilities | The capabilities object to which to add capabilities. |
aDeviceCapsRootNode | Root DOM node from which to get capabilities. |
aAddedCapabilities | Returned true if capabilities added. |
aDevice | Device to match against capabilities. |
Definition at line 240 of file sbDeviceXMLCapabilities.cpp.
nsresult sbDeviceXMLCapabilities::GetCapabilities |
( |
sbIDeviceCapabilities ** |
aCapabilities, |
|
|
nsIDOMDocument * |
aDocument, |
|
|
sbIDevice * |
aDevice = nsnull |
|
) |
| |
|
static |
Read the capabilities matching the device specified by aDevice from the document specified by aDocument and return them in aCapabilities. If no matching capabilities are present, return null in aCapabilities.
- Parameters
-
aCapabilities | Returned device capabilities. |
aDocument | Document from which to get capabilities. |
aDevice | Device to match against capabilities. |
Definition at line 109 of file sbDeviceXMLCapabilities.cpp.
nsresult sbDeviceXMLCapabilities::GetCapabilities |
( |
sbIDeviceCapabilities ** |
aCapabilities, |
|
|
nsIDOMNode * |
aDeviceCapsRootNode, |
|
|
sbIDevice * |
aDevice = nsnull |
|
) |
| |
|
static |
Read the capabilities matching the device specified by aDevice from the root DOM noded specified by aDeviceCapsRootNode and return them in aCapabilities. If no matching capabilities are present, return null in aCapabilities.
- Parameters
-
aCapabilities | Returned device capabilities. |
aDeviceCapsRootNode | Root DOM node from which to get capabilities. |
aDevice | Device to match against capabilities. |
Definition at line 137 of file sbDeviceXMLCapabilities.cpp.
PRBool sbDeviceXMLCapabilities::HasCapabilities |
( |
| ) |
|
|
inline |
Return true if DOM document contains device capabilities.
- Returns
- true if DOM document contains device capabilities.
Definition at line 67 of file sbDeviceXMLCapabilities.h.
Reads in the capabilities and sets them on aCapabilities
- Parameters
-
aCapabilities | The capabilities object to update |
Definition at line 94 of file sbDeviceXMLCapabilities.cpp.
The documentation for this class was generated from the following files: