Messagelib

dkimstoreresultjob.h
1 /*
2  SPDX-FileCopyrightText: 2019-2023 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 }
Q_SCRIPTABLE Q_NOREPLY void start()
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.