QXmpp::Iq::ResponseTraits Struct

struct QXmpp::Iq::ResponseTraits

Defines the payload of the response to the IQ request Request. More...

Header: #include <Ping.h>
Since: QXmpp 1.18

Detailed Description

The member type Payload is the payload of the IQ result, void stands for an empty result. By default, the result of a get request contains the same payload as the request and the result of a set request is empty.

Specialize the traits for requests with different responses:

template<>
struct QXmpp::Iq::ResponseTraits<QXmpp::Iq::Get<MyQuery>> {
    using Payload = MyQueryResult;
};

See also QXmppClient::sendIq().