QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
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
12namespace QXmpp {
13
19enum class SendError : uint8_t {
26};
27
34{
36 bool acknowledged = false;
37};
38
44using SendResult = std::variant<SendSuccess, QXmppError>;
45
46} // namespace QXmpp
47
48#endif // QXMPPSENDRESULT_H
std::variant< SendSuccess, QXmppError > SendResult
Definition QXmppSendResult.h:44
SendError
Definition QXmppSendResult.h:19
@ EncryptionError
The packet couldn't be sent because prior encryption failed.
@ SocketWriteError
The packet was written to the socket with no success (only happens when Stream Management is disabled...
@ Disconnected
The packet couldn't be sent because the connection hasn't been (re)established.
Definition QXmppSendResult.h:34
bool acknowledged
Indicates whether the packet has been acknowledged by the other peer.
Definition QXmppSendResult.h:36