QXmpp
Version: 1.6.0
src
client
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
}
// namespace QXmpp
42
44
// Scoped enums (enum class) are not implicitly converted to int
45
inline
uint qHash(
QXmpp::TrustLevel
key, uint seed) noexcept {
return
qHash(std::underlying_type_t<QXmpp::TrustLevel>(key), seed); }
47
48
#endif // QXMPPTRUSTLEVEL_H
QXmpp::TrustLevel::Undecided
The key's trust is not decided.
QXmpp::TrustLevel
TrustLevel
Definition:
QXmppTrustLevel.h:19
QXmpp
QXmpp::TrustLevel::ManuallyDistrusted
QXmpp::TrustLevel::AutomaticallyTrusted
QXmpp::TrustLevel::ManuallyTrusted
The key is manually trusted (e.g., by clicking a button).
QXmpp::TrustLevel::Authenticated
QXmpp::TrustLevel::AutomaticallyDistrusted
Generated by
1.8.14