Messagelib
9#include "messageviewer_private_export.h"
12namespace MessageViewer
14class MESSAGEVIEWER_TESTS_EXPORT DKIMAuthenticationStatusInfo
17 DKIMAuthenticationStatusInfo();
19 struct AuthStatusInfo {
23 [[nodiscard]]
bool isValid()
const
25 return !type.isEmpty() && !value.
isEmpty();
28 [[nodiscard]]
bool operator==(
const Property &other)
const
30 return other.type == type && other.value == value;
37 int methodVersion = -1;
41 QList<Property> header;
43 QList<Property> policy;
45 [[nodiscard]]
bool operator==(
const AuthStatusInfo &other)
const;
46 [[nodiscard]]
bool isValid()
const;
49 [[nodiscard]] QString authservId()
const;
50 void setAuthservId(
const QString &authservId);
52 [[nodiscard]]
bool parseAuthenticationStatus(
const QString &key,
bool relaxingParsing);
54 [[nodiscard]]
int authVersion()
const;
55 void setAuthVersion(
int authVersion);
57 [[nodiscard]] QString reasonSpec()
const;
58 void setReasonSpec(
const QString &reasonSpec);
60 [[nodiscard]]
bool operator==(
const DKIMAuthenticationStatusInfo &other)
const;
62 [[nodiscard]] QList<AuthStatusInfo> listAuthStatusInfo()
const;
63 void setListAuthStatusInfo(
const QList<AuthStatusInfo> &listAuthStatusInfo);
65 [[nodiscard]]
bool checkResultKeyword(
const QString &value,
const QString &resultKeyword)
const;
68 [[nodiscard]] AuthStatusInfo parseAuthResultInfo(QString &valueKey,
bool relaxingParsing);
69 QList<AuthStatusInfo> mListAuthStatusInfo;
72 int mAuthVersion = -1;
75Q_DECLARE_METATYPE(MessageViewer::DKIMAuthenticationStatusInfo)
76Q_DECLARE_TYPEINFO(MessageViewer::DKIMAuthenticationStatusInfo::AuthStatusInfo, Q_RELOCATABLE_TYPE);
77MESSAGEVIEWER_EXPORT
QDebug operator<<(
QDebug d,
const MessageViewer::DKIMAuthenticationStatusInfo &t);
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
bool isValid(QStringView ifopt)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 11:50:07 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.