QXmpp  Version: 1.5.3
QXmppSendResult.h
1 // SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 
5 #ifndef QXMPPSENDRESULT_H
6 #define QXMPPSENDRESULT_H
7 
8 #include "QXmppError.h"
9 
10 #include <variant>
11 
12 namespace QXmpp {
13 
19 enum class SendError : uint8_t {
26 };
27 
34 {
36  bool acknowledged = false;
37 };
38 
44 using SendResult = std::variant<SendSuccess, QXmppError>;
45 
46 } // namespace QXmpp
47 
48 #endif // QXMPPSENDRESULT_H
bool acknowledged
Indicates whether the packet has been acknowledged by the other peer.
Definition: QXmppSendResult.h:36
The packet couldn&#39;t be sent because the connection hasn&#39;t been (re)established.
The packet was written to the socket with no success (only happens when Stream Management is disabled...
std::variant< SendSuccess, QXmppError > SendResult
Definition: QXmppSendResult.h:44
SendError
Definition: QXmppSendResult.h:19
Definition: QXmppSendResult.h:33
The packet couldn&#39;t be sent because prior encryption failed.