Messagelib
9 #include "messageviewer_export.h"
12 #include <QStringList>
13 namespace MessageViewer
25 enum CanonicalizationType {
30 enum class HashingAlgorithmType {
36 Q_ENUM(HashingAlgorithmType)
38 Q_REQUIRED_RESULT
bool parseDKIM(
const QString &header);
40 Q_REQUIRED_RESULT
int version()
const;
43 Q_REQUIRED_RESULT HashingAlgorithmType hashingAlgorithm()
const;
44 void setHashingAlgorithm(DKIMInfo::HashingAlgorithmType type);
46 Q_REQUIRED_RESULT
QString domain()
const;
47 void setDomain(
const QString &domain);
49 Q_REQUIRED_RESULT
QString selector()
const;
50 void setSelector(
const QString &selector);
52 Q_REQUIRED_RESULT
QString bodyHash()
const;
53 void setBodyHash(
const QString &bodyHash);
55 Q_REQUIRED_RESULT
bool isValid()
const;
57 Q_REQUIRED_RESULT
QStringList listSignedHeader()
const;
58 void setListSignedHeader(
const QStringList &listSignedHeader);
60 Q_REQUIRED_RESULT
QString signingAlgorithm()
const;
61 void setSigningAlgorithm(
const QString &signingAlgorithm);
63 Q_REQUIRED_RESULT qint64 signatureTimeStamp()
const;
64 void setSignatureTimeStamp(qint64 signatureTimeStamp);
66 Q_REQUIRED_RESULT
QString query()
const;
67 void setQuery(
const QString &query);
69 Q_REQUIRED_RESULT qint64 expireTime()
const;
70 void setExpireTime(qint64 expireTime);
72 Q_REQUIRED_RESULT
QString signature()
const;
73 void setSignature(
const QString &signature);
75 Q_REQUIRED_RESULT
QString agentOrUserIdentifier()
const;
76 void setAgentOrUserIdentifier(
const QString &agentOrUserIdentifier);
78 Q_REQUIRED_RESULT
int bodyLengthCount()
const;
79 void setBodyLengthCount(
int bodyLengthCount);
81 Q_REQUIRED_RESULT CanonicalizationType headerCanonization()
const;
82 void setHeaderCanonization(CanonicalizationType headerCanonization);
84 Q_REQUIRED_RESULT CanonicalizationType bodyCanonization()
const;
85 void setBodyCanonization(CanonicalizationType bodyCanonization);
87 Q_REQUIRED_RESULT
bool operator==(
const DKIMInfo &other)
const;
89 Q_REQUIRED_RESULT
QStringList copiedHeaderField()
const;
90 void setCopiedHeaderField(
const QStringList &copiedHeaderField);
92 Q_REQUIRED_RESULT
QString iDomain()
const;
93 void setIDomain(
const QString &iDomain);
96 void parseCanonicalization(
const QString &str);
97 void parseAlgorithm(
const QString &str);
98 HashingAlgorithmType mHashingAlgorithm = HashingAlgorithmType::Any;
105 QString mAgentOrUserIdentifier;
109 qint64 mSignatureTimeStamp = -1;
110 qint64 mExpireTime = -1;
112 int mBodyLengthCount = -1;
113 CanonicalizationType mHeaderCanonization = Unknown;
114 CanonicalizationType mBodyCanonization = Unknown;
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:31 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.