This class is used to specify information that can be used to validate UPnP services.
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. Note that the returned item is invalid, i.e. HServiceSetup::isValid() returns false in case no item with the specified service ID was found.
- See also:
- 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 if 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.
bool insert |
( |
const HServiceSetup & |
newItem, |
|
|
bool |
overWrite = false |
|
) |
| |
Inserts a new item.
- Parameters:
-
newItem | specifies the item to be added. |
overWrite | specifies whether to replace an already existing item with the same service ID. The default is false . |
- 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 HServiceSetup::serviceId() as the newItem and the overWrite is
false
, or the newItem is invalid.
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.