Commit a7b5bfd7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add enum

parent 073a8d39
Pipeline #93027 canceled with stage
......@@ -61,7 +61,14 @@ public:
};
Q_ENUM(DKIMWarning)
enum class AuthenticationMethod : int { Unknown = 0, Dkim = 1, Spf = 2, Dmarc = 3, Dkimatps = 4, Auth = 5 };
enum class AuthenticationMethod : int {
Unknown = 0,
Dkim = 1,
Spf = 2,
Dmarc = 3,
Dkimatps = 4,
Auth = 5,
};
Q_ENUM(AuthenticationMethod)
struct MESSAGEVIEWER_EXPORT DKIMCheckSignatureAuthenticationResult {
......
......@@ -5,7 +5,7 @@
*/
#pragma once
#include "messageviewer_private_export.h"
#include "messageviewer_export.h"
#include <QDebug>
namespace MessageViewer
{
......@@ -13,9 +13,18 @@ namespace MessageViewer
* @brief The ScamDetectionInfo class
* @author Laurent Montel <montel@kde.org>
*/
class MESSAGEVIEWER_TESTS_EXPORT ScamDetectionInfo
class MESSAGEVIEWER_EXPORT ScamDetectionInfo
{
public:
enum ScamDetectionField {
None = 0,
DisableAll = 1,
RedirectUrl = 2,
HasIp = 4,
};
Q_ENUMS(ScamDetectionField)
Q_DECLARE_FLAGS(ScamDetectionFields, ScamDetectionField)
ScamDetectionInfo();
~ScamDetectionInfo();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment