Messagelib

attachmentfrompublickeyjob.h
1/*
2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
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
13namespace MessageComposer
14{
15// TODO I have no idea how to test this. Have a fake keyring???
16/**
17 * @brief The AttachmentFromPublicKeyJob class
18 */
20{
21 Q_OBJECT
22
23public:
24 explicit AttachmentFromPublicKeyJob(const QString &fingerprint, QObject *parent = nullptr);
26
27 [[nodiscard]] QString fingerprint() const;
28 void setFingerprint(const QString &fingerprint);
29
30protected Q_SLOTS:
31 void doStart() override;
32
33private:
34 class AttachmentFromPublicKeyJobPrivate;
35 friend class AttachmentFromPublicKeyJobPrivate;
36 std::unique_ptr<AttachmentFromPublicKeyJobPrivate> const d;
37};
38} //
A base class for jobs to load attachments from different sources.
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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.