This class is used to specify information that can be used to setup multiple HService instances.
More...
#include <HServicesSetupData>
List of all members.
Detailed Description
Constructor & Destructor Documentation
Creates a new, empty instance.
- See also:
- isEmpty()
Member Function Documentation
Retrieves a service setup object.
- Parameters:
-
| id | specifies the service ID of the item. |
- Returns:
- the item with the specified service ID. A null pointer is returned in case no item with the specified service ID was found.
- See also:
- take(), contains()
Indicates if the instance contains a service setup item that has the specified service ID.
- Parameters:
-
| id | specifies the service ID of the item. |
- Returns:
- true when the instance contains an item with the specified service ID.
- See also:
- get()
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.
Returns the service IDs of the contained items.
- Returns:
- the service IDs of the 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:
-
| id | specifies the service ID of the item to be removed. |
- Returns:
- true in case the item was found and removed.
Associates an HService pointer with an item.
- Parameters:
-
| id | specifies the service ID of the item. |
| service | specifies a heap-allocated pointer to an HService to be associated with the item. Note that the item takes the ownership of the HService. |
- Returns:
- true when an item with the specified service ID was found and the provided HService pointer was associated with it.
Retrieves a service setup object and removes it from the instance.
- Parameters:
-
| id | specifies the service ID of the item. |
- Returns:
- the item with the specified service ID. A null pointer is returned in case no item with the specified service ID was found.
- See also:
- get()