Messagelib

attachmentfrompublickeyjob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5 */
6 
7 #pragma once
8 
9 #include <MessageCore/AttachmentLoadJob>
10 
11 #include "messagecomposer_export.h"
12 
13 namespace MessageComposer
14 {
15 // TODO I have no idea how to test this. Have a fake keyring???
16 /**
17  * @brief The AttachmentFromPublicKeyJob class
18  */
19 class MESSAGECOMPOSER_EXPORT AttachmentFromPublicKeyJob : public MessageCore::AttachmentLoadJob
20 {
21  Q_OBJECT
22 
23 public:
24  explicit AttachmentFromPublicKeyJob(const QString &fingerprint, QObject *parent = nullptr);
25  ~AttachmentFromPublicKeyJob() override;
26 
27  Q_REQUIRED_RESULT QString fingerprint() const;
28  void setFingerprint(const QString &fingerprint);
29 
30 protected Q_SLOTS:
31  void doStart() override;
32 
33 private:
34  class AttachmentFromPublicKeyJobPrivate;
35  friend class AttachmentFromPublicKeyJobPrivate;
36  std::unique_ptr<AttachmentFromPublicKeyJobPrivate> const d;
37 };
38 } //
39 
A base class for jobs to load attachments from different sources.
The AttachmentFromPublicKeyJob class.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.