11#include "qxmpp_export.h"
15#define QXMPP_AUTOTEST_EXPORT
26#define QXMPP_VERSION QT_VERSION_CHECK(QXMPP_VERSION_MAJOR, QXMPP_VERSION_MINOR, QXMPP_VERSION_PATCH)
31inline QLatin1String QXmppVersion()
34 QT_STRINGIFY(QXMPP_VERSION_MAJOR)
"." QT_STRINGIFY(QXMPP_VERSION_MINOR)
"." QT_STRINGIFY(QXMPP_VERSION_PATCH));
39#ifndef QXMPP_DISABLE_DEPRECATED_BEFORE
40#define QXMPP_DISABLE_DEPRECATED_BEFORE 0x0
44#define QXMPP_DEPRECATED_SINCE(major, minor) (QT_VERSION_CHECK(major, minor, 0) > QXMPP_DISABLE_DEPRECATED_BEFORE)
47#ifndef Q_DECL_ENUMERATOR_DEPRECATED_X
48#define Q_DECL_ENUMERATOR_DEPRECATED_X(msg)
51#ifndef QT_WARNING_DISABLE_DEPRECATED
52#define QT_WARNING_DISABLE_DEPRECATED
57#define QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(name) \
59 name(name &&) noexcept; \
61 name &operator=(const name &); \
62 name &operator=(name &&) noexcept;
66#define QXMPP_PRIVATE_DEFINE_RULE_OF_SIX(name) \
67 name::name(const name &) = default; \
68 name::name(name &&) noexcept = default; \
69 name::~name() = default; \
70 name &name::operator=(const name &) = default; \
71 name &name::operator=(name &&) noexcept = default;
109#if QXMPP_DEPRECATED_SINCE(1, 5)
152 return mode1 ==
SceAll || mode1 == mode2;
Definition: Algorithms.h:12
Cipher
Definition: QXmppGlobal.h:160
constexpr bool operator&(SceMode mode1, SceMode mode2)
Definition: QXmppGlobal.h:150
SceMode
Definition: QXmppGlobal.h:136
@ SceSensitive
Only processes sensitive elements that should be encrypted.
Definition: QXmppGlobal.h:139
@ SceAll
Processes all known elements.
Definition: QXmppGlobal.h:137
@ ScePublic
Only processes 'public' elements (e.g. needed for routing).
Definition: QXmppGlobal.h:138
EncryptionMethod
Definition: QXmppGlobal.h:89
@ LegacyOpenPgp
XEP-0027: Current Jabber OpenPGP Usage
Definition: QXmppGlobal.h:97
@ OMEMO
Definition: QXmppGlobal.h:125
@ Omemo0
XEP-0384: OMEMO Encryption
Definition: QXmppGlobal.h:101
@ Ox
XEP-0373: OpenPGP for XMPP
Definition: QXmppGlobal.h:99
@ Omemo2
XEP-0384: OMEMO Encryption since version 0.8
Definition: QXmppGlobal.h:105
@ OTR
Definition: QXmppGlobal.h:113
@ Otr
XEP-0364: Current Off-the-Record Messaging Usage
Definition: QXmppGlobal.h:95
@ NoEncryption
No encryption.
Definition: QXmppGlobal.h:91
@ OX
Definition: QXmppGlobal.h:121
@ LegacyOpenPGP
Definition: QXmppGlobal.h:117
@ Omemo1
XEP-0384: OMEMO Encryption since version 0.4
Definition: QXmppGlobal.h:103
@ UnknownEncryption
Unknown encryption.
Definition: QXmppGlobal.h:93
Definition: QXmppGlobal.h:178
Definition: QXmppGlobal.h:171
Definition: QXmppGlobal.h:187