QXmpp::Messages::Sent Class

class QXmpp::Messages::Sent
Header: #include <QXmppMessages.h>
Since: QXmpp 1.18

Detailed Description

Result of a message sent via QXmppClient::sendMessage(): the state of its delivery and how it has been processed by the pipeline.

message() is the message as prepared by the pipeline without end-to-end encryption. archiveId() is the ID of the message in the archive of the recipient (XEP-0313: Message Archive Management) if a handler of ConfirmDelivery has reported it, e.g. the stanza ID (XEP-0359: Unique and Stable Stanza IDs) assigned by a MUC room to the reflected message. It can be used to refer to the message, e.g. for replies or reactions in groupchats.

encryption() is the namespace of the encryption actually used, e.g. OMEMO 0 or OMEMO 2 for QXmpp::Omemo::Automatic, empty if the message has been sent unencrypted. It is the namespace announced via XEP-0380: Explicit Message Encryption. If a provider combines several encryptions in one stanza, e.g. OMEMO 2 and OMEMO 0 for devices of both versions, it is the one chosen by the provider (see its documentation), encryptionInfo() may contain the details. contentEncryption() tells whether all sensitive elements or only the body have been encrypted; it is QXmpp::E2ee::ContentEncryption::BodyOnly if some recipients only got the body. encryptionInfo() contains information of the encryption provider (QXmpp::E2ee::Encrypted::info()), its type depends on the encryption.