QXmpp::Mam::QueryRequest Struct

struct QXmpp::Mam::QueryRequest

IQ payload of an archive query (XEP-0313: Message Archive Management). More...

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

Public Variables

bool flipPage
QXmppDataForm form
QString node
QString queryId
QXmppResultSetQuery resultSetQuery

Detailed Description

It is sent in an IQ of type set and answered with QXmpp::Mam::QueryResult:

client->sendIq(QXmpp::Iq::Set<QXmpp::Mam::QueryRequest> { .payload = { .queryId = queryId, .form = form } })
    .then(this, [](QXmpp::Result<QXmpp::Mam::QueryResult> &&result) { ... });

Usually QXmppMamManager::retrieve() is used instead, it also processes the retrieved messages.

Member Variable Documentation

bool QueryRequest::flipPage

Whether the archive should send the messages of the page in reverse order, i.e. the newest message first. This does not change which messages are returned.

This requires the archive to support QXmpp::Namespace::Mam2Extended.

QXmppDataForm QueryRequest::form

Data form with the filters of the query (XEP-0313: Message Archive Management ยง4.1).

QString QueryRequest::node

The PubSub node to query, usually empty.

QString QueryRequest::queryId

ID of the query, the archive includes it in the messages of the results.

QXmppResultSetQuery QueryRequest::resultSetQuery

Limits the number of results and pages through the archive (XEP-0059: Result Set Management).