diff --git a/messageviewer/src/dkim-verify/dkimauthenticationstatusinfo.h b/messageviewer/src/dkim-verify/dkimauthenticationstatusinfo.h index fa42e12c..b7d85970 100644 --- a/messageviewer/src/dkim-verify/dkimauthenticationstatusinfo.h +++ b/messageviewer/src/dkim-verify/dkimauthenticationstatusinfo.h @@ -1,55 +1,62 @@ /* Copyright (C) 2018-2019 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DKIMAUTHENTICATIONSTATUSINFO_H #define DKIMAUTHENTICATIONSTATUSINFO_H #include "messageviewer_private_export.h" #include #include namespace MessageViewer { class MESSAGEVIEWER_TESTS_EXPORT DKIMAuthenticationStatusInfo { public: DKIMAuthenticationStatusInfo(); + struct AuthStatusInfo { + QString method; + QString result; + //TODO add more + }; + Q_REQUIRED_RESULT QString authservId() const; void setAuthservId(const QString &authservId); Q_REQUIRED_RESULT bool parseAuthenticationStatus(const QString &key); Q_REQUIRED_RESULT int authVersion() const; void setAuthVersion(int authVersion); Q_REQUIRED_RESULT QString reasonSpec() const; void setReasonSpec(const QString &reasonSpec); Q_REQUIRED_RESULT bool operator==(const DKIMAuthenticationStatusInfo &other) const; private: + QList mListAuthStatusInfo; QString mAuthservId; QString mReasonSpec; int mAuthVersion = -1; }; } Q_DECLARE_METATYPE(MessageViewer::DKIMAuthenticationStatusInfo) MESSAGEVIEWER_EXPORT QDebug operator <<(QDebug d, const MessageViewer::DKIMAuthenticationStatusInfo &t); #endif // DKIMAUTHENTICATIONSTATUSINFO_H