Messagelib

dkimstoreresultjob.h
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_private_export.h"
10 #include <Akonadi/Item>
11 #include <MessageViewer/DKIMCheckSignatureJob>
12 #include <QObject>
13 class KJob;
14 namespace MessageViewer
15 {
16 class MESSAGEVIEWER_TESTS_EXPORT DKIMStoreResultJob : public QObject
17 {
18  Q_OBJECT
19 public:
20  explicit DKIMStoreResultJob(QObject *parent = nullptr);
21  ~DKIMStoreResultJob() override;
22 
23  void start();
24  Q_REQUIRED_RESULT bool canStart() const;
25 
26  void setResult(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
27  void setItem(const Akonadi::Item &item);
28 
29 private:
30  void slotModifyItemDone(KJob *job);
31  MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult mResult;
32  Akonadi::Item mItem;
33 };
34 }
35 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.