diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-08-09 11:19:54 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-06-27 20:12:26 +0200 |
| commit | 41e00fd8a82cae585a797c2f9d24ca1463a2f53f (patch) | |
| tree | 1e61cbb0764b4b2966d99cc855c16811dfc790bd /src/base/QXmppGlobal.h.in | |
| parent | 953d8588b94fec779bdf667c024150c9690470c4 (diff) | |
| download | qxmpp-41e00fd8a82cae585a797c2f9d24ca1463a2f53f.tar.gz | |
QXmppStream: Report packet sending result using QFutures
Diffstat (limited to 'src/base/QXmppGlobal.h.in')
| -rw-r--r-- | src/base/QXmppGlobal.h.in | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/base/QXmppGlobal.h.in b/src/base/QXmppGlobal.h.in index 5f94196d..ac249558 100644 --- a/src/base/QXmppGlobal.h.in +++ b/src/base/QXmppGlobal.h.in @@ -23,7 +23,6 @@ * */ - #ifndef QXMPPGLOBAL_H #define QXMPPGLOBAL_H @@ -77,5 +76,22 @@ inline QLatin1String QXmppVersion() #define QT_WARNING_DISABLE_DEPRECATED #endif -#endif // QXMPPGLOBAL_H +/// +/// \namespace QXmpp +/// +/// Contains global functions and enumerations. +/// +namespace QXmpp { + +/// +/// The state of an outgoing packet. +/// +enum PacketState : quint8 { + Sent, ///< The packet has been written to the socket. + Acknowledged, ///< The packet has been acknowledged by the other peer using Stream Management. + NotSent, ///< The packet could not be sent (e.g. connection broke or user disconnected). +}; + +} +#endif // QXMPPGLOBAL_H |
