This class is used to specify information that is required to setup an HService.
More...
#include <HServiceSetup>
List of all members.
Public Member Functions |
| | HServiceSetup () |
| | HServiceSetup (const HServiceId &id, const HResourceType &serviceType, HInclusionRequirement incReq=InclusionMandatory) |
| | HServiceSetup (const HServiceId &id, const HResourceType &serviceType, qint32 version, HInclusionRequirement incReq=InclusionMandatory) |
| | HServiceSetup (const HServiceId &id, const HResourceType &serviceType, HService *service, HInclusionRequirement incReq=InclusionMandatory) |
| | HServiceSetup (const HServiceId &id, const HResourceType &serviceType, HService *service, qint32 version, HInclusionRequirement incReq=InclusionMandatory) |
| | ~HServiceSetup () |
| HInclusionRequirement | inclusionRequirement () const |
| bool | isValid (HValidityCheckLevel checkLevel) const |
| HService * | service () const |
| const HServiceId & | serviceId () const |
| const HResourceType & | serviceType () const |
| qint32 | version () const |
| void | setInclusionRequirement (HInclusionRequirement arg) |
| void | setServiceId (const HServiceId &arg) |
| void | setServiceType (const HResourceType &arg) |
| void | setService (HService *arg) |
| void | setVersion (qint32 version) |
| HService * | takeService () |
Detailed Description
- See also:
- HServicesSetupData, HService
Constructor & Destructor Documentation
Creates a new, invalid instance.
- See also:
- isValid()
Creates a new instance.
- Parameters:
-
| id | specifies the service ID. |
| serviceType | specifies the service type. |
| incReq | specifies the inclusion requirement of the service. |
- See also:
- isValid()
Creates a new instance.
- Parameters:
-
| id | specifies the service ID. |
| serviceType | specifies the service type. |
| version | specifies the version of the UPnP device, which first specified the service. |
| incReq | specifies the inclusion requirement of the service. |
- See also:
- isValid()
Creates a new instance.
- Parameters:
-
| id | specifies the service ID. |
| serviceType | specifies the service type. |
| service | specifies a pointer to a heap-allocated HService. This instance takes the ownership of the object. |
| incReq | specifies the inclusion requirement of the service. |
- See also:
- isValid()
Creates a new instance.
- Parameters:
-
| id | specifies the service ID. |
| serviceType | specifies the service type. |
| service | specifies a pointer to a heap-allocated HService. This instance takes the ownership of the object. |
| version | specifies the version of the UPnP device, which first specified the service. |
| incReq | specifies the inclusion requirement of the service. |
- See also:
- isValid()
Member Function Documentation
Indicates if the object is valid.
- Parameters:
-
| checkLevel | specifies whether the validity of the object should be checked strictly according to the UDA specification. |
- Returns:
- true in case the object is valid, that is, the service ID, service type, version and inclusion requirement are all properly defined in respect to the specified
checkLevel.
Returns the service ID.
- Returns:
- the service ID.
- See also:
- setServiceId()
Returns the version of the UPnP device, which first specified the service.
- Returns:
- the version of the UPnP device, which first specified the service.
- See also:
- setVersion()
Sets the the inclusion requirement.
- Parameters:
-
| arg | specifies the inclusion requirement. |
- See also:
- inclusionRequirement()
Sets the service ID.
- Parameters:
-
| arg | specifies the service ID. |
- See also:
- serviceId()
Sets the service type.
- Parameters:
-
| arg | specifies the service type. |
- See also:
- serviceType()
Associates an HService pointer with this instance.
- Parameters:
-
| arg | specifies the HService pointer to be associated with this instance. The instance takes the ownership of the provided HService. |
- See also:
- service()
| void setVersion |
( |
qint32 |
version |
) |
|
Sets the version of the UPnP device, which first specified the service.
- Parameters:
-
| version | defines the version of the UPnP device, which first specifies the service. |
- See also:
- version()
Returns the HService pointer associated with the instance and passes the ownership of the object to the caller.
- Returns:
- the HService pointer associated with the instance and passes the ownership of the object to the caller.
- See also:
- service()