QXmpp
Version: 1.15.1
Toggle main menu visibility
Loading...
Searching...
No Matches
QXmppTrustLevel.h
1
// SPDX-FileCopyrightText: 2021 Melvin Keskin <melvo@olomono.de>
2
//
3
// SPDX-License-Identifier: LGPL-2.1-or-later
4
5
#ifndef QXMPPTRUSTLEVEL_H
6
#define QXMPPTRUSTLEVEL_H
7
8
#include <QFlags>
9
#include <QHashFunctions>
10
11
namespace
QXmpp
{
12
19
enum class
TrustLevel
{
21
Undecided
= 1,
24
AutomaticallyDistrusted
= 2,
27
ManuallyDistrusted
= 4,
30
AutomaticallyTrusted
= 8,
32
ManuallyTrusted
= 16,
35
Authenticated
= 32,
36
};
37
38
Q_DECLARE_FLAGS(TrustLevels,
TrustLevel
)
39
Q_DECLARE_OPERATORS_FOR_FLAGS(TrustLevels)
40
41
42
// Scoped enums (enum class) are not implicitly converted to int
43
inline
auto
qHash(
QXmpp::TrustLevel
key, uint seed)
noexcept
{ return ::qHash(std::underlying_type_t<QXmpp::TrustLevel>(key), seed); }
45
46
}
// namespace QXmpp
47
48
#endif
// QXMPPTRUSTLEVEL_H
QXmpp
Definition
Algorithms.h:14
QXmpp::TrustLevel
TrustLevel
Definition
QXmppTrustLevel.h:19
QXmpp::TrustLevel::ManuallyTrusted
@ ManuallyTrusted
The key is manually trusted (e.g., by clicking a button).
Definition
QXmppTrustLevel.h:32
QXmpp::TrustLevel::Authenticated
@ Authenticated
Definition
QXmppTrustLevel.h:35
QXmpp::TrustLevel::ManuallyDistrusted
@ ManuallyDistrusted
Definition
QXmppTrustLevel.h:27
QXmpp::TrustLevel::AutomaticallyTrusted
@ AutomaticallyTrusted
Definition
QXmppTrustLevel.h:30
QXmpp::TrustLevel::Undecided
@ Undecided
The key's trust is not decided.
Definition
QXmppTrustLevel.h:21
QXmpp::TrustLevel::AutomaticallyDistrusted
@ AutomaticallyDistrusted
Definition
QXmppTrustLevel.h:24
src
client
QXmppTrustLevel.h
Generated by
1.17.0