This class is used to specify information that can be used to setup multiple HDevice instances.
More...
#include <HDevicesSetupData>
List of all members.
Detailed Description
- See also:
- HDeviceSetup, HDevice
Constructor & Destructor Documentation
Creates a new, empty instance.
- See also:
- isEmpty()
Member Function Documentation
Indicates if the instance contains an item with the specified device type.
- Parameters:
-
| deviceType | specifies the device type of the searched item. |
- Returns:
- true when the instance contains an item with the specified device type.
- See also:
- get()
Returns the device types of the contained items.
- Returns:
- the device types of the contained items.
Retrieves an item.
- Parameters:
-
| type | specifies the device type of the item. |
- Returns:
- the item with the specified device type. A null pointer is returned in case no item with the specified device type was found.
- See also:
- take(), contains()
Indicates if the object is empty.
- Returns:
- true in case the instance has no items.
Returns the number of contained items.
- Returns:
- the number of contained items.
Inserts a new item.
- Parameters:
-
| newItem | specifies the item to be added. |
- Returns:
- true in case the item was added. The
newItem
will not be added if the instance already contains an item that has the same HDeviceSetup::deviceType() as the newItem
or the newItem
is null.
Removes an existing item.
- Parameters:
-
| type | specifies the device type of the item to be removed. |
- Returns:
- true in case the item was found and removed.
Associates an HDevice pointer with an item.
- Parameters:
-
| type | specifies the device type of the item. |
| device | specifies the device to be associated. This instance takes the ownership of the HDevice. |
- Returns:
- true when an item with the specified service ID was found and the provided HDevice pointer was associated with it. Note also that the pointer can be null.
Retrieves an item and removes it from the instance.
- Parameters:
-
| type | specifies the device type of the item. |
- Returns:
- the item with the specified device type. A null pointer is returned in case no item with the specified device type was found.
- See also:
- get()