Loading...
Searching...
No Matches
QXmppTrustLevel.h
// SPDX-FileCopyrightText: 2021 Melvin Keskin <melvo@olomono.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPTRUSTLEVEL_H
#define QXMPPTRUSTLEVEL_H
#include <QFlags>
#include <QHashFunctions>
namespace QXmpp {
enum class TrustLevel {
Undecided = 1,
AutomaticallyDistrusted = 2,
ManuallyDistrusted = 4,
AutomaticallyTrusted = 8,
ManuallyTrusted = 16,
Authenticated = 32,
};
Q_DECLARE_FLAGS(TrustLevels, TrustLevel)
Q_DECLARE_OPERATORS_FOR_FLAGS(TrustLevels)
// Scoped enums (enum class) are not implicitly converted to int
inline auto qHash(QXmpp::TrustLevel key, uint seed) noexcept { return ::qHash(std::underlying_type_t<QXmpp::TrustLevel>(key), seed); }
} // namespace QXmpp
#endif // QXMPPTRUSTLEVEL_H
QXmpp
Definition Algorithms.h:12
QXmpp::TrustLevel
TrustLevel
Definition QXmppTrustLevel.h:19
QXmpp::TrustLevel::ManuallyTrusted
@ ManuallyTrusted
The key is manually trusted (e.g., by clicking a button).
QXmpp::TrustLevel::Authenticated
@ Authenticated
QXmpp::TrustLevel::ManuallyDistrusted
@ ManuallyDistrusted
QXmpp::TrustLevel::AutomaticallyTrusted
@ AutomaticallyTrusted
QXmpp::TrustLevel::Undecided
@ Undecided
The key's trust is not decided.
QXmpp::TrustLevel::AutomaticallyDistrusted
@ AutomaticallyDistrusted