QXmpp: QXmppGlobal_p.h Source File

QXmpp Version: 1.14.4

Loading...
Searching...
No Matches
QXmppGlobal_p.h
1// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPGLOBAL_P_H
6#define QXMPPGLOBAL_P_H
7
8#include "QXmppConstants_p.h"
9#include "QXmppGlobal.h"
10
11#include "Enums.h"
12
13namespace QXmpp::Private {
14
15template<>
16struct Enums::Data<EncryptionMethod> {
17 using enum EncryptionMethod;
18 static constexpr auto Values = makeValues<EncryptionMethod>({
19 { NoEncryption, {} },
20 { UnknownEncryption, {} },
21 { Otr, ns_otr },
22 { LegacyOpenPGP, ns_legacy_openpgp },
23 { Ox, ns_ox },
24 { Omemo0, ns_omemo },
25 { Omemo1, ns_omemo_1 },
26 { Omemo2, ns_omemo_2 },
27 });
28};
29
30} // namespace QXmpp::Private
31
32#endif // QXMPPGLOBAL_P_H
QXmpp::EncryptionMethod
EncryptionMethod
Definition QXmppGlobal.h:101
QXmpp::Omemo0
@ Omemo0
XEP-0384: OMEMO Encryption
Definition QXmppGlobal.h:113
QXmpp::Ox
@ Ox
XEP-0373: OpenPGP for XMPP
Definition QXmppGlobal.h:111
QXmpp::Omemo2
@ Omemo2
XEP-0384: OMEMO Encryption since version 0.8
Definition QXmppGlobal.h:117
QXmpp::Otr
@ Otr
XEP-0364: Current Off-the-Record Messaging Usage
Definition QXmppGlobal.h:107
QXmpp::NoEncryption
@ NoEncryption
No encryption.
Definition QXmppGlobal.h:103
QXmpp::LegacyOpenPGP
@ LegacyOpenPGP
Definition QXmppGlobal.h:129
QXmpp::Omemo1
@ Omemo1
XEP-0384: OMEMO Encryption since version 0.4
Definition QXmppGlobal.h:115
QXmpp::UnknownEncryption
@ UnknownEncryption
Unknown encryption.
Definition QXmppGlobal.h:105