Messagelib

dkimgeneraterulejob.h
1 /*
2  SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "dkimchecksignaturejob.h"
10 #include "messageviewer_private_export.h"
11 #include <QObject>
12 namespace MessageViewer
13 {
14 class MESSAGEVIEWER_TESTS_EXPORT DKIMGenerateRuleJob : public QObject
15 {
16  Q_OBJECT
17 public:
18  explicit DKIMGenerateRuleJob(QObject *parent = nullptr);
19  ~DKIMGenerateRuleJob() override;
20 
21  [[nodiscard]] bool canStart() const;
22  [[nodiscard]] bool start();
23 
24  [[nodiscard]] DKIMCheckSignatureJob::CheckSignatureResult result() const;
25  void setResult(const DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
26 
27 private:
28  void verifyAndGenerateRule();
29  DKIMCheckSignatureJob::CheckSignatureResult mResult;
30 };
31 }
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.