Class representing the device update (ssdp:update) message. More...
#include <HResourceUpdate>
Public Member Functions | |
HResourceUpdate () | |
HResourceUpdate (const QUrl &location, const HDiscoveryType &usn, qint32 bootId=-1, qint32 configId=-1, qint32 nextBootId=-1, qint32 searchPort=-1) | |
~HResourceUpdate () | |
HResourceUpdate (const HResourceUpdate &) | |
HResourceUpdate & | operator= (const HResourceUpdate &) |
bool | isValid (HValidityCheckLevel level) const |
QUrl | location () const |
const HDiscoveryType & | usn () const |
qint32 | bootId () const |
qint32 | configId () const |
qint32 | nextBootId () const |
qint32 | searchPort () const |
Friends | |
H_UPNP_CORE_EXPORT bool | operator== (const HResourceUpdate &, const HResourceUpdate &) |
Related Functions | |
(Note that these are not member functions.) | |
H_UPNP_CORE_EXPORT bool | operator!= (const HResourceUpdate &, const HResourceUpdate &) |
Usually, you create instances of this class to be sent by the Herqq::Upnp::HSsdp, or you receive instances of this class from the Herqq::Upnp::HSsdp.
HResourceUpdate | ( | ) |
HResourceUpdate | ( | const QUrl & | location, |
const HDiscoveryType & | usn, | ||
qint32 | bootId = -1 , |
||
qint32 | configId = -1 , |
||
qint32 | nextBootId = -1 , |
||
qint32 | searchPort = -1 |
||
) |
Constructs a new instance using the specified parameters.
location | specifies the URL to the UPnP description of the root device. If the location is invalid or empty the created object will be invalid. |
usn | specifies the Unique Service Name. The created object is invalid if the provided USN is invalid. |
bootId | specifies the BOOTID.UPNP.ORG header value. Note that this is mandatory in UDA v1.1, whereas it is not specified at all in UDA v1.0. |
configId | specifies the CONFIGID.UPNP.ORG header value. Note that this is mandatory in UDA v1.1, whereas it is not specified at all in UDA v1.0 |
nextBootId | |
searchPort | specifies the SEARCHPORT.UPNP.ORG header value. Note that this is optional in UDA v1.1, whereas it is not specified at all in UDA v1.0. If specified, this is the port at which the device must listen for unicast M-SEARCH messages. Otherwise the port is by default 1900 . This parameter is optional. |
~HResourceUpdate | ( | ) |
Destroys the instance.
HResourceUpdate | ( | const HResourceUpdate & | other ) |
Copy constructor.
Copies the contents of the other to this.
HResourceUpdate & operator= | ( | const HResourceUpdate & | other ) |
Assigns the contents of the other to this.
bool isValid | ( | HValidityCheckLevel | level ) | const |
Indicates whether or not the object contains valid announcement information.
level | indicates whether the check should be strictly according to the UDA specification. If set to false some checks are omitted that are known to be poorly implemented in some UPnP software. |
QUrl location | ( | ) | const |
Returns the location of the announced device.
const HDiscoveryType & usn | ( | ) | const |
Returns the Unique Service Name.
qint32 bootId | ( | ) | const |
Returns the value of BOOTID.UPNP.ORG
.
BOOTID.UPNP.ORG
. If the value is not specified -1 is returned. qint32 configId | ( | ) | const |
Returns the value of CONFIGID.UPNP.ORG
.
CONFIGID.UPNP.ORG
. If the value is not specified -1 is returned. qint32 nextBootId | ( | ) | const |
qint32 searchPort | ( | ) | const |
Returns the value of SEARCHPORT.UPNP.ORG
header field.
SEARCHPORT.UPNP.ORG
header field. If the value is not specified -1 is returned. H_UPNP_CORE_EXPORT bool operator== | ( | const HResourceUpdate & | , |
const HResourceUpdate & | |||
) | [friend] |
Compares the two objects for equality.
H_UPNP_CORE_EXPORT bool operator!= | ( | const HResourceUpdate & | , |
const HResourceUpdate & | |||
) | [related] |
Compares the two objects for inequality.