import "sbIDeviceManager.idl";
Public Member Functions | |
AString | getCategoryByIndex (in PRUint32 aIndex) |
sbIDeviceBase | getDeviceByIndex (in PRUint32 aIndex) |
PRBool | hasDeviceForCategory (in AString aCategory) |
sbIDeviceBase | getDeviceByCategory (in AString aCategory) |
Public Attributes | |
readonly attribute PRUint32 | deviceCount |
Definition at line 36 of file sbIDeviceManager.idl.
AString sbIDeviceManager::getCategoryByIndex | ( | in PRUint32 | aIndex | ) |
Gets the category of the device at the specified index
aIndex | - the index of the device |
NS_ERROR_INVALID_INDEX | if the index is > deviceCount |
sbIDeviceBase sbIDeviceManager::getDeviceByCategory | ( | in AString | aCategory | ) |
Returns a registered and initialized device.
aCategory | - a category string identifying the device |
NS_ERROR_NOT_AVAILABLE | if no device exists to handle the category. | |
NS_ERROR_UNEXPECTED | if the internal array returns garbage |
sbIDeviceBase sbIDeviceManager::getDeviceByIndex | ( | in PRUint32 | aIndex | ) |
Returns a registered and initialized device at the specified index
aIndex | - the index of the device |
NS_ERROR_INVALID_INDEX | if the index is > deviceCount |
PRBool sbIDeviceManager::hasDeviceForCategory | ( | in AString | aCategory | ) |
Determines whether or not a device exists for the given category.
aCategory | - a category string to test |
readonly attribute PRUint32 sbIDeviceManager::deviceCount |
The number of devices currently registered
Definition at line 41 of file sbIDeviceManager.idl.