QXmpp::Mam::ArchiveMetadata Struct

struct QXmpp::Mam::ArchiveMetadata

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

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

Public Variables

std::optional<QXmpp::Mam::ArchiveEntry> end
std::optional<QXmpp::Mam::ArchiveEntry> start

Detailed Description

An empty payload is sent in an IQ of type get to request the metadata. The archive responds with the first and the last message it contains:

client->sendIq(QXmpp::Iq::Get<QXmpp::Mam::ArchiveMetadata> {})
    .then(this, [](QXmpp::Result<QXmpp::Mam::ArchiveMetadata> &&result) { ... });

Usually QXmppMamManager::requestMetadata() is used instead.

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

Member Variable Documentation

std::optional<QXmpp::Mam::ArchiveEntry> ArchiveMetadata::end

The last message of the archive, empty if the archive is empty.

std::optional<QXmpp::Mam::ArchiveEntry> ArchiveMetadata::start

The first message of the archive, empty if the archive is empty.