Class that represents the device unavailable (ssdp:byebye) message. More...
#include <HResourceUnavailable>
Public Member Functions | |
HResourceUnavailable () | |
HResourceUnavailable (const HDiscoveryType &usn, qint32 bootId=-1, qint32 configId=-1) | |
~HResourceUnavailable () | |
HResourceUnavailable (const HResourceUnavailable &) | |
HResourceUnavailable & | operator= (const HResourceUnavailable &) |
bool | isValid (HValidityCheckLevel level) const |
const HDiscoveryType & | usn () const |
qint32 | bootId () const |
qint32 | configId () const |
HEndpoint | location () const |
Friends | |
H_UPNP_CORE_EXPORT bool | operator== (const HResourceUnavailable &, const HResourceUnavailable &) |
Related Functions | |
(Note that these are not member functions.) | |
H_UPNP_CORE_EXPORT bool | operator!= (const HResourceUnavailable &, const HResourceUnavailable &) |
According to the UDA, When a device and its services are going to be removed from the network, the device SHOULD multicast an ssdp:byebye message corresponding to each of the ssdp:alive messages it multicasted that have not already expired. In HUPnP this class represents such a message.
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.
HResourceUnavailable | ( | const HDiscoveryType & | usn, |
qint32 | bootId = -1 , |
||
qint32 | configId = -1 |
||
) |
Creates a new instance.
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. |
~HResourceUnavailable | ( | ) |
Destroys the instance.
HResourceUnavailable | ( | const HResourceUnavailable & | other ) |
Copy constructor.
Copies the contents of the other to this object.
HResourceUnavailable & operator= | ( | const HResourceUnavailable & | 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. |
const HDiscoveryType & usn | ( | ) | const |
Returns the Unique Service Name.
The Unique Service Name identifies a unique device or service instance.
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. HEndpoint location | ( | ) | const |
Returns the IP endpoint of the device that went offline.
H_UPNP_CORE_EXPORT bool operator== | ( | const HResourceUnavailable & | , |
const HResourceUnavailable & | |||
) | [friend] |
Compares the two objects for equality.
H_UPNP_CORE_EXPORT bool operator!= | ( | const HResourceUnavailable & | , |
const HResourceUnavailable & | |||
) | [related] |
Compares the two objects for inequality.